Hello,
I need to execute an application that uses JFreeChart outside the IDE (Eclipse) in DOS command line.
This is the procedure I follow:
1- Export the project outside Eclipse with a .jar compression (OutsideExported.jar) to the destination folder (D:/temp/java).
2- Execute the single class of the project that contains the main method (OutsideClass.class) and is included in a package (outsidePackage):
D:/temp/java/java -classpath OutsideExported.jar outsidePackage.OutsideClass
It works in Eclipse but in command line I become this failure:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/data/general/PieDataSet
The application is a very simple example that i took from a tutorial:
http://www.screaming-penguin.com/node/4005
In case that this exporting weren´t possible, is it possible to compile java with JFreeChart in the DOS console?
Regards,
Raúl
JFreeChart in DOS console
Re: JFreeChart in DOS console
Just include the two jar files in your classpath
Re: JFreeChart in DOS console
It works!
Thankyou very much.
D:/temp/java/java -classpath OutsideExported.jar;jcommon-1.0.16.jar;jfreechart-1.0.13.jar outsidePackage.OutsideClass
Thankyou very much.
D:/temp/java/java -classpath OutsideExported.jar;jcommon-1.0.16.jar;jfreechart-1.0.13.jar outsidePackage.OutsideClass