[4875] in java-interest
Re: CLASSPATH
daemon@ATHENA.MIT.EDU (brian sharon)
Wed Jan 17 09:56:08 1996
Date: Wed, 17 Jan 1996 07:27:19 -0600 (CST)
From: brian sharon <brian@jjt.com>
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>
Try not setting CLASSPATH (unset it). Then appletviewer, javac, etc.
will set it to a reasonable value. For Netscape, make sure you specify
the codebase in your APPLET tag.
Also, Netscape wants the moz*.zip file to be in
$NETSCAPE_ROOT/java/classes. You have to make those subdirectories and
move it down. Then Netscape will find it without using CLASSPATH.
On my system, if no classpath is specified, the wrapper program that
calls appletviewer, javac, etc. sets classpath to this: classpath =
.:/disk6/java/classes:/disk6/java/classes.zip (/disk6/java is my root
directory). So it picks up the current directory, and the standard JDK
classes.
Good luck...
--brian
On Tue, 16 Jan 1996, Ralph Krause wrote:
> Sorry, but it makes me crazy.
>
> 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
> 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"
> Every combination fails ...
>
> Thanks for answers.
>
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> >>>Ralph Krause>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> >>>University Karlsruhe / Germany>>>>>>>>>>>>>>>>>>>>>
> >>>krause@iswws1.bau-verm.uni-karlsruhe.de>>>>>>>>>>>>
> >>>http://iswws3.bau-verm.uni-karlsruhe.de/~krause/>>>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
>
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com