db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dag.wan...@oracle.com (Dag H. Wanvik)
Subject Re: Activity 3: Run a JDBC program using the embedded driver
Date Sat, 19 May 2012 01:33:36 GMT
Bryan Pendleton <bpendleton.derby@gmail.com> writes:

>> and echo $CLASSPATH
>> /home/kb9agt/jdk1.7/db/lib/derby.jar:.
>> I see A : separated list of directories
>>
>> I think I need
>> java -cp $CLASSPATH WwdEmbedded
>> Yep. Did the trick. Please update the tutorial as soon as you can.

What does java -version say here, I wonder?  I seem to rememeber I saw
something similar using embedded VMs in th past..

Dag

>
> I'm glad you got it figured out, but I'm not sure what's wrong.
>
> The whole point of setting your CLASSPATH variable is that you do
> *not* need to say '-cp $CLASSPATH', since the 'java' executable
> will use the CLASSPATH environment variable when no '-cp' argument
> is present on the command line.
>
> I'm having trouble figuring out things you might have done where
> '-cp $CLASSPATH' is different from omitting the -cp argument entirely.
>
> Is it possible that you did
>
>   set CLASSPATH=...
>
> instead of doing
>
>   export CLASSPATH=...
>
> thanks,
>
> bryan

Mime
View raw message