Re: classpath
- From: Frances <fdr58@xxxxxxxxx>
- Date: Fri, 31 Mar 2006 13:50:51 -0500
Frances wrote:
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
same thing w/trying to connect to db; copied mysql-connector-java-3.1.6-bin.jar from Tomcat/common/lib to jre/lib and put it in the classpath at compile time, thus:
javac -classpath c:\j2sdk1.4.2_11\jre\lib\mysql-connector-java-3.1.6-bin.jar;. conn.java
compiles fine but at runtime get ClassNotFoundException: com.mysql.jdbc.Driver
isn't com.mysql.jdbc.Driver inside the connector jar I put in the classpath?
WHAT'S MY CLASSPATH PROBLEM...:( pls help.. thank you very much..
Frances
.
- References:
- classpath
- From: Frances
- classpath
- Prev by Date: classpath
- Next by Date: Web Service for playing audio
- Previous by thread: classpath
- Next by thread: Web Service for playing audio
- Index(es):
Relevant Pages
|