According to [EMAIL PROTECTED]: While burning my CPU.
> 
> I seem to have trouble using the CLASSPATH in my environment. I'm running
> Red Hat 5.2, JDK 1.1.6.
> 
> I put the following into ~./bashrc:
>       CLASSPATH=.  (also tried CLASSPATH=.:$CLASSPATH)
>       export CLASSPATH
> Now when I run $ printenv I get:
>       CLASSPATH=.  (or CLASSPATH=.:)

I use;
export CLASSPATH="/usr/local/lib/netscape/java_301:."
in a script when starting netscape, now this is possably not what you are
looking for, however things to try would be;
export CLASSPATH=":."
export CLASSPATH="/:."

I rather think you are trying to achive the same results as i, why not
define the whole path.
 
> 
> I assumed this would let me run a JavaApp.class file anywhere:
>       $ java JavaApp
> But such is not the case. I can only run JavaApp if in the directory
>       $ java ./JavaApp
> If I try to supply a path
>       $ java /path/JavaApp
> I get "invalid class name." If I run from the JavaApp directory:
>       $ java JavaApp
> I get "Cannot find class JavaApp."
> 
> Haines Brown
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Happy New Year, and may all your troubles be small (ones).

Reply via email to