using netscape to compile java
Netscape Navigator version 3.01 for UNIX has an undocumented feature
that allows you to run
non-graphical java code files without
starting the browser.
The reason that java class files which make use of graphics can not be run
with this feature is down to the way in which the AWT
(Graphics
part of Java) makes use of peers
that are dependant on
the underlying machine architecture and implementation of the java. Or more simply
Netscape provides the AWT
layer, but uses different peers.
This is what you need to need to do in order to run java
-
Get hold of the Sun supplied JDK
- Copy the file
classes.zip
from the JDK
into the same place where the Netscape
data files are kept (something like /usr/local/lib/netcape
).
The file names are different
(You might like to check, just in case) so theres no likelyhood
of overwriting essential files.
- You need to set up a few environment variables to make sure
netscape knows where the java compiler can be found. In straight
forward bourne shell this looks like
NETSCAPE_DATA_DIR=/usr/local/lib/netscape
NCLASSPATH=.:$NETSCAPE_DATA_DIR/java_30:$NETSCAPE_DATA_DIR/classes.zip
export NCLASSPATH
- You're ready to run java class files
- And to compile java, you need to utter
netscape -java sun.tools.javac.Main -verbose java source files
Now thats sorted, there's nothing to stop you writing and
compiling java on virtually any architecture.
file: /Techref/language/java/nosugar/coding/net_java.htm,
2KB, , updated: 1997年1月10日 18:48, local time: 2025年9月13日 04:26,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/techref/language/java/nosugar/coding/net_java.htm"> Learning Java [using netscape to compile java]</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.