I have a hard time with a Java error. I get this by double-clicking on my compiled project Jar file to run it:
Could not find the main class: testPackage.testFrame. Program will exit.
However, my main class is clear, defined in the project properties. In addition, everything works fine when I run the project directly from NetBeans.
I use the third-party ip2c.jar library to identify countries by IP address. If I comment on a class that uses the ip2c.jar file, I do not get an error.
How can a third-party library prevent the JVM from finding my main class?
source share