How to add a JAR library in a Java project without IDE? [closed]

2

Save. I'm having difficulty adding the JFreeChart library to my Java project (I use Windows 8). I have already unzipped JfreeChart, but I do not know what to do from there. As I am an old school programmer and still use Notepad, I could not find anything on Google to help me.

Thank you very much.

    
asked by anonymous 28.06.2015 / 00:41

2 answers

2

You must have forgotten a dependency, specifically:
jcommon-1.0.23.jar

You can find dependency information on the JFreeChart download page :

  

JCommon Dependency JFreeChart requires the JCommon class library. The   JCommon runtime jar file is included in the JFreeChart download --- if   you require the source code for JCommon (recommended), you need to   download this separately.


javac -classpath jfreechart.jar;jcommon-1.0.23 CompileMe.java


I recommend using some IDE Java to make your work easier.

    
28.06.2015 / 02:42
1

You need to pass classpath when executing javac

javac -classpath jfreechart.jar minhaClasse.java
    
28.06.2015 / 00:52