The JAVA 2 Platform Standard Edition
(J2SE) Run
Environment (JRE) is provided free of charge by Oracle Corporation(SunMicrosystems).
Oracle has a version available for every operating system
platform.
The installation of the JRE is simple, straightforward and painless. It
takes only a few minutes of your time.
The safe and reliable JAVA Platform code does not change any other
vendor's software on your computer system.
Upon completion of these steps your computer will be JAVA enabled for any JAVA language program.
Steps
Windows Users
Ensure that your JAVA environment is setup by adding it to the beginning of your CLASSPATH and PATH system environmental variables. This is usually performed automatically upon installation of the JAVA product. The JAVA product is normally installed under "Program Files/JAVA". The Windows library concatenation logic should be able to locate all necessary product code. You can check that your CLASSPATH and PATH has been updated by issuing the following command from a Command Window:
SET
Now check the lines showing CLASSPATH and PATH.
Normally, you can find the "java.exe" file at:
C:/"Program Files"/java/j2re1.x.y.z_r/bin/java.exe
and the run-time archive file at:
C:/"Program Files"/java/j2re1.x.y.z_r/lib/rt.jar
To update your Windows System Environment variables go to
Settings --> Control Panel --> System --> Advanced --> Environment Variables.
Then select the PATH and CLASSPATH to edit and add your changes.
Linux Users
Ensure that your JAVA environment is setup by adding the "bin" files to the beginning of your PATH system environmental variables, and the "lib" files to the beginning of your CLASSPATH system environmental variables. This can be done in either the system "profile" or the user ".bash_profile" files. Note that the example below of the .bash_profile uses a former SunMicrosystems JAVA JRE version. You will have to change this to match the version number that you are using. The JRE is nomally placed by the SunMicrosystems installer into the /usr/java/... directory or folder.
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
JAVADIR="j2re1.6.2_xx" (note you must ensure that the proper version and release number are coded here)
export JAVADIR
PATH=/usr/java/$JAVADIR/bin:$PATH:$HOME/bin:/sbin
export PATH
CLASSPATH=/usr/java/$JAVADIR/lib:/usr/NetRexx/runlib/NetRexxR.jar
export CLASSPATH
This will take effect the next time
that you logon
to the system.
To have it take effect immediately enter the following command:
source .bash_profile
Optionally you can manually build the variables and "export" them to the system.
JAVADIR="j2re1.6.2_xx" (note same as above)
export JAVADIR
PATH=/usr/java/$JAVADIR/bin:$PATH:$HOME/bin:/sbin
export PATH
CLASSPATH=/usr/java/$JAVADIR/lib:/usr/NetRexx/runlib/NetRexxR.jar
export CLASSPATH
You can check the settings by typing on a Terminal Command Window the following:
echo $PATH
echo $CLASSPATH
Congratulations, Your machine is now JAVA Enabled.
You are now ready to install Cullen Programming JAVA based software applications,
as well as
running JAVA Applets on your favorite browser.
Please use you browser's Return button to return to Product
Installation.
[Return to Cullen Programming Home Page]
Copyright © Cullen Programming 1987, 2012 All Rights Reserved |