[4907] in java-interest

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

Re: CLASSPATH

daemon@ATHENA.MIT.EDU (Kok Kai Loon)
Thu Jan 18 21:40:37 1996

Date: Fri, 19 Jan 1996 09:16:09 +0800 (SST)
From: Kok Kai Loon <klkok@csam.com.MY>
To: Ralph Krause <krause@iswws1.bau-verm.uni-karlsruhe.de>
Cc: java-interest@java.sun.com
In-Reply-To: <9601161458.AA02872@iswws2.uni-karlsruhe.de>



On Tue, 16 Jan 1996, Ralph Krause wrote:

> My System: Solaris 2.3, JDK beta 2.
> 
> There are some problems handling the CLASSPATH environment variable.
> Who has a solution to combine the settings for
>   Netscape (moz2_0.zip)
>   JDK      (classes.zip)
>   user     (extra dir for user classes)
> 
> Just now, I have an awkward solution:
>   Netscape   setenv CLASSPATH <netscape-path>/moz2_0.zip
For Netscape, the sequence of the CLASSPATH should be
".:<netsape-path/moz2_0.zip:<java-path>/classes:<user-path>/classes"

>   JDK        unzip classes.zip
>              setenv CLASSPATH <java-path>/classes
>              ==> can't run own java application "can't find class MyApp"
>   user       setenv CLASSPATH <user-path>/classes
>              ==> can't compile my.java "super class java.applet.Applet not found"
As for both JDK and user, you can combine the two, which is
".:<java-path>/classes:<user-path>/classes"

There is a problem with the combination of Netscape and the other two
cause, Netscape have to use it own ms2_0.zip as the first/initial class
for searching, else it might just crash!

So, if you really want to combine execute Netscape with the same login as
you running JDK and etc. I would suggest you write a simple shell script
to reform the CLASSPATH before loading netscape viewer, this should solve
your problem.




-
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