[3142] in java-interest

home help back first fref pref prev next nref lref last post

Help with $CLASPATH?

daemon@ATHENA.MIT.EDU (Gary Joseph Bowdridge)
Wed Nov 1 16:51:15 1995

From: grover@ra.isisnet.com (Gary Joseph Bowdridge)
To: java-interest@java.Eng.Sun.COM
Date: Tue, 31 Oct 1995 23:33:51 +2000 (AST)

Manditory Intro:
  Ok.. Maybe a silly question.. i'm just now getting into trying out
some stand alone java applications, and i'm having a problem
with the $CLASSPATH variable...  Either i'm doing something
desperetly wrong, or my problem is heavily documented some place
in which i am missing it.. Either way, help me, i'm a nice person.

Just:
   (when i say "java" i'm talking about the interpreter).
my system classes dir is in /keep/java/classes
if i set $CLASSPATH to  "/keep/java/classes" i can
do:
java browser.hotjava 
with no problems..
(for the sake of argument, lets say i'm not running "java" the
front end script that came with the dist, but runnign "java" the
bin for solaris 2.x.... Lets say my libpath and such is set fine as well).

now.. if i move the broswer directoy from the classes directory,
say to: "/home/grover/classes"
i should be able to set my $CLASSPATH to: 

/keep/java/classes:/home/grover/classes

shouldn't I?

Yet in that case java complains that it cant find browser.hotjava

and if i then just set $CLASSPATH to "/home/grover/classes", 
of course java can't find many required classes (it fails on a Thread
class...)

This makes sence if there is a silly little problem with having
multiple class path (as is documented)... 

But this is where it gets really silly:

if i simply make a new directory in /keep/hotjava/classes (called webit)
and COPY the contents of /keep/hotjava/classes/browser into
/keep/hotjava/classes/webit
AND set $CLASSPATH to "/keep/hotjava/classes"

i can do the following just fine:
java browser.hotjava

yet:

java webit.hotjava

fails with the message:

Can't find class webit.hotjava



Some things: I am NOT using the script front end for java, which
goes off and changes variables.. so what i am setting are staying.
the permissions, and ownerships on the two directorys, and
contents. are identical. (webit and browser)


  This basically leaves me unable to execute a modified version of
hotjava...   Bummer. I changed a whole line.


Ideas? Flames? Anything?


_Gary Bowdridge_
grover@ra.isisnet.com
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post