db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendleton.de...@gmail.com>
Subject Re: Unable to run a java file
Date Thu, 04 Aug 2011 00:57:01 GMT
On 08/03/2011 11:54 AM, siddharth srivastava wrote:
> Java classpath:  C:\Users\siddharth\workspace\derbytrunk\jars\sane\derby.jar;C:\
> Users\siddharth\workspace\derbytrunk\jars\sane\derbytools.jar;C:\Users\siddharth
> \workspace\derbytrunk\jars\sane\derbyTesting.jar;C:\Users\siddharth\workspace\de
> rbytrunk\jars\sane\derbyrun.jar;C:\Users\siddharth\workspace\derbytrunk\jars\san
> e\derbynet.jar;C:\Users\siddharth\workspace\derbytrunk\jars\sane\derbyclient.jar
> ;C:\Users\siddharth\workspace\derbytrunk\tools\java\junit.jar;C:\Users\siddharth
> \workspace\derbytrunk\tools\java\jakarta-oro-2.0.8

It doesn't look like you have "." in that classpath. If the class DerbyPreparedStatement.class
is the one that you got the ClassNotFoundException on, then I don't think it's in
any of those jars.

Try doing:

    set CLASSPATH=.;%CLASSPATH%

and then run

    java DerbyPreparedStatement

(this assumes that DerbyPreparedStatement.class is in your current directory).

thanks,

bryan

Mime
View raw message