setting java classpath

trickie

Registered
hello,
can anybody tell me how to set the classpath variable in osx.
if i try setenv the jvm doesn't work. I just want to add a directory.
cheers
 
Hi,

I use the java -cp <directory> <class> command to do this. It works well for me

I do not use the project builder to make it an application. I just create a .command (and made it executable chmod +x )

Good luck.

Kees
 
hi,
that works well for a single command, but how do you set an an environmental variable. If i "setenv CLASSPATH <path>" then java can't find anything. Even if i put the different paths to all the java libs etc it still doesn't find anything. The reason that i need to set a varaiable is that i want to use jython, which must be added to the classpath. You can't run this using the java command.
cheers nick.
 
Back
Top