classpath



with Tomcat I have no problems using third-party API's, I just put them in Tomcat/common/lib and include them in the classpath when compiling..

but with a stand-alone I can't get it to work.. I put the two packages in jre/lib and have put command for compiling in a batch file, thus:

javac -classpath c:\j2sdk1.4.2_11\jre\lib\jfreechart-1.0.1.jar;c:\j2sdk1.4.2_11\jre\lib\jcommon-1.0.0.jar;. %1 %2 %3 %4 %5

then to compile I do '<runBatch> myFile.java'

but still java can't find the packages... I don't understand what I'm doing wrong.. I AM importing right packages.. am trying to compile src file I copied verbatim from here:
http://tools.devchannel.org/devtoolschannel/04/03/12/1634222.shtml

would appreciate any help.. thank you..

Frances
.



Relevant Pages

  • Apache axis on Tomcat 5.59, Java 1.5.0_01
    ... I am a newbie in Webservices and try to install one on Tomcat 5.5.9. ... Fault - Error while compiling: C:\Programme\Apache Group\Tomcat ...
    (comp.lang.java.programmer)
  • Re: Servlet
    ... the compiling batch - it is the same as for the previous one. ... Are you trying to learn servlet programming? ... works fine in an older version of Tomcat to a newer version of Tomcat? ...
    (comp.lang.java.programmer)
  • Re: cant find a class...
    ... Add the library to the classpath when compiling with ANT. ... >> No, but these classes are in the system API, which is always present. ... >> I have never used Tomcat with classes in the default package. ... >> The first constraint is the important one. ...
    (comp.lang.java.help)
  • Re: Tomcat 5.0.28 problem - My servlet doesnt work
    ... >I have a problem with getting a Java Servlet work within Tomcat 5.0.28. ... where the compiling went right: ...
    (comp.lang.java.programmer)
  • Re: get Tomcat 5 to compile at startup?
    ... run at a server very often and it is crucial that we compile all the ... IE hangs every time Tomcat ... starts compiling a page. ...
    (comp.lang.java.programmer)