ImageIO found in Launcher but not elsewhere

I have a software that was setup in a way that the different plugins have their own build files and can be compiled independently from other parts. I could call ImageIO.read() in the main method in Launcher.java, but when I used it in one of the plugins, I got the NoSuchMethodError.

I suspected it to be a classpath issue, but I couldn't really figure it out because I don't know how to print class path in Java 10 (casting URLClassLoader that's widely suggested isn't an option for 9 or above). But...

Read More »

By: StackOverFlow - 5 days ago

Related Posts