1

I have a program which uses the JFreeChart, and it works perfectly fine on NetBeans. However, when I clean and build it into an executable JAR file and open it, I get the following error: error message

I have the option to copy dependent libraries when building the program checked, and the required libraries have been copied onto the classpath: enter image description here

Is there anything obvious that I've forgotten to do? How can I fix this?

  • 1
    Check the [JAR's manifest and content](https://docs.oracle.com/javase/tutorial/deployment/jar/index.html) as built, for [example](https://stackoverflow.com/q/2198525/230513). – trashgod Apr 04 '20 at 03:00
  • I did, and I've added the required JARs to the classpath in the manifest, using help from https://docs.oracle.com/javase/tutorial/deployment/jar/downman.html but it still doesn't work? – dhanya narayanan Apr 04 '20 at 08:39
  • I just found two dozen working examples in my library, e.g. Apache POI and JFreeChart; you might search for a working example and compare your approach. – trashgod Apr 04 '20 at 18:38

0 Answers0