Adding Classpath

Hello Guys,

I'm trying to get a few small java script up and running, but i'm getting errors when trying to run the file like.

java myfile

The error i get is "Problem: java.lang.NoClassDefFoundError:

com/appliancestudio/jbluez/BlueZException" which the documentation suggests is caused because the class path is not set correctly.

The documentation for jBlueZ at the begining told me to do the following:

export CLASSPATH=$CLASSPATH:/home/user/jbluez/bin/jbluez.jar

and

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/jbluez/bin/

both of which i have done, they -appear- to run, it doesnt give me any feedback, but i also get no error. Is there a better way to set these files into the class and ld library paths?

I'm running slackware linux with the latest java sdk package installed.

Thanks guys,

Rob

[888 byte] By [Maulina] at [2007-11-26 22:47:27]
# 1
I take it you've used the actual paths where you installed jbluez, rather than /home/user/... (unless that's where you've put it)?
YAT_Archivista at 2007-7-10 12:06:25 > top of Java-index,Java Essentials,Java Programming...