Version 1.3 of the Java Development Kit (JDK) is installed on the computers running linux. To use Java you need the directory
/APPS/jdk1.3/bin
in your path.
You can tell if this directory is in your path by saying
which java
You should get the reply
/APPS/jdk1.3/bin/java
If not, add this directory to your path with the command (in bash)
PATH=/APPS/jdk1.3/bin:$PATH
Documentation that comes with this implementation is found at the URL
file:/APPS/jdk1.3/docs/index.htmlBookmark it.
All of this documentation and lots more can be found at http://java.sun.com.
Recommended (by me) reading for Java programmers are the following
This is like K & R for C, the one book every Java programmer must have, the right introduction to Java.
A very helpful and easy going introduction to many topics in java with lots of good examples.
An introduction to Object-Oriented Programming (OOP) and Object-Oriented Design (OOD) using Java for examples. Because it uses Java it stresses some topics not covered adequately in most OOP/OOD books, in particular interfaces and threads. If you want to know what the point of interfaces is, read this book.
To make and use Java applets using new features of Java, you need to use the java plug-in for netscape.
These installation instructions are copied from http://java.sun.com/j2se/1.3/install-linux-sdk.html.
rm -fr $HOME/.netscape/java rm $HOME/.netscape/plugins/javaplugin.so(You shouldn't need to do this. SuSE 6.4, at least didn't come with the plug-in installed).
export NPX_PLUGIN_PATH=/APPS/jdk1.3/jre/plugin/i386 netscape(in order for this environment variable to effect netscape, you must run netscape from the command line, not by clicking on some icon somewhere on your desktop).
http://java.sun.com/docs/books/tutorial/uiswing/start/swingApplet.htmland clicking on the HelloSwingApplet.html link.
You should see a box that looks like
JPython 1.1 is installed on the computers running linux. To use JPython you need the directory
/APPS/JPython11
in your path.
You can tell if this directory is in your path by saying
which jpython
You should get the reply
/APPS/JPython11/jpython
If not, add this directory to your path with the command (in bash)
PATH=/APPS/JPython11:$PATH
The top-level page of the documentation that comes with this installation is
file:/APPS/JPython11/docs/index.htmlBookmark it.
Python is an object-oriented scripting language. JPython is a complete Python implementation in 100% pure Java in which it is easy to use Java objects. In case it isn't obvious what the example on that page does. It creates a JPython object that is really just a Java object, an instance of the class java.util.Random. Then it calls some of the object's methods. In case that still isn't obvious, this object is written in Java and no different from any object written in Java, for example, one you might write yourself. It just works!