SUMMARY: Configuring Java Dev Kit

From: Chester Liu <cht_at_rati.pse.umass.edu>
Date: Fri, 24 Jan 1997 20:02:01 -0500 (EST)

Thanks to Keith A. Scollick for his quick reply! My original question
concerned what to do with the Java Dev Kit after I download it.

First of all, the JDK cam be found at:

http://www.unix.digital.com/products/internet/


After downloading it, unpack it somewhere in /usr/local, /usr/local/JDK
for example. Then:

>
> setenv CLASSPATH .:/usr/local/JDK/classes
> setenv JAVA_HOME /usr/local/JDK
>
> I also added /usr/local/JDK/bin to my PATH
>

to run Java programs (compiled Java bytecode programs always have the
.class suffix) just type:

java programname

DON'T type the '.class' after programname. That's what tripped me!

>
> The other problem is, I use Netscape 3.01 with Java enabled and the Java
> classes are installed in /usr/local/lib/netscape. Now I can't use the JDK
> and Netscape without having to change CLASSPATH each time. Is there a
> workaround?
>


I decided to make a simple shell script and call that instead of netscape.
The LD_LIBRARY_PATH stuff is because I'm running on DU 4.0A and needed
netscape to use the 3.2 libraries in order to run java.


#!/bin/sh
LD_LIBRARY_PATH="/usr/local/shlib/OSF3.2"
export LD_LIBRARY_PATH
CLASSPATH="/usr/local/lib/netscape"
export CLASSPATH
/usr/local/bin/netscape




Chester Liu
Received on Sat Jan 25 1997 - 02:11:14 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT