tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:  Configuring Java Dev Kit
@ 1997-01-25  1:02 Chester Liu
  0 siblings, 0 replies; only message in thread
From: Chester Liu @ 1997-01-25  1:02 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-01-25  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-25  1:02 SUMMARY: Configuring Java Dev Kit Chester Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox