Default CLASSPATH for Mac OS X

B

Batman4050

I have Mac OS X 10.3 Panther, with Java VM included. Since I do not
know where the default classpath is, I cannot add any packages (e.g.
..jar files).

I tried placing a classpath in my env (i.e. by using the command
'env'), but I still get the error "ClassDefNotFound".

If I could place the class files in the default CLASSPATH, it would be
much easier.

Does anyone know the location of the default CLASSPATH for Mac OS X?
 
R

Rob Shepherd

Batman4050 said:
I have Mac OS X 10.3 Panther, with Java VM included. Since I do not
know where the default classpath is, I cannot add any packages (e.g.
.jar files).

I tried placing a classpath in my env (i.e. by using the command
'env'), but I still get the error "ClassDefNotFound".

If I could place the class files in the default CLASSPATH, it would be
much easier.

Does anyone know the location of the default CLASSPATH for Mac OS X?

For the odd one or two try JAVA_HOME/jre/lib/ext/

But do not do this as part of your software distribution.

setenv CLASSPATH ${CLASSPATH}:/path/to/your.jar:path/2/another.jar should work however.

[ failing that try...

CLASSPATH=${CLASSPATH}:/path/to/your.jar:path/2/another.jar
export CLASSPATH

....]


I don't know what the default environment is on Panther.

Rob
 
C

Chad M

I have Mac OS X 10.3 Panther, with Java VM included. Since I do not
know where the default classpath is, I cannot add any packages (e.g.
.jar files).

I tried placing a classpath in my env (i.e. by using the command
'env'), but I still get the error "ClassDefNotFound".

If I could place the class files in the default CLASSPATH, it would be
much easier.

Does anyone know the location of the default CLASSPATH for Mac OS X?

I think the actual environment variable is not set. You can set it if
you want, but if you are just looking for a standard place to add
packages, you should put them in /Library/Java/Extensions (global) or
~/Library/Java/Extensions (per-user).

-Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,838
Latest member
KandiceChi

Latest Threads

Top