|
How to install Javis (standalone) on Linux based Machine? |
|
|
|
|
|
1. JDK for Linux version 1.2.2
2. Swing version 1.0.3
Instructions for setting JDK and Swing on Linux based Machine:
1. Download JDK 1.2.2 (Linux) and Swing 1.0.3 into the directory named "~/jdk" and "~/swing" respectively. Then, unzip and extract them.
Note! Other names are acceptable. However, the names "jdk" and "swing" will be used in this page for referencing to these 2 files.
2. For conveniences, JDK can be called from any directories by setting PATH environment variable as follow:
2.1 csh: open file ".cshrc" in the home directory, then append the following line:
setenv PATH ~/jdk/jdk1.2.2/bin:$PATH
2.2 bash: open file ".bash_profile" in the home directory, then append the following line:
export PATH = ~jdk/jdk1.2.2/bin:$PATH
3. Set up an environment variable called "CLASSPATH". This variable keeps the directory(s)'s name(s) where JDK can find all user-defined classes.
Note! For easy referencing in this step, Javis is assumed to be installed in the directory "~/public_html/javis-0.2".
3.1 csh: open file ".cshrc" in the home directory, then append the following line:
setenv CLASSPATH ~/public_html/javis-0.2[:$CLASSPATH]
3.2 bash: open file ".bash_profile" in the home directory, then append the following line:
export CLASSPATH = ~/public_html/javis-0.2[:$CLASSPATH]
Note! the string ":$CLASSPATH" is optional. It is not necessary if the CLASSPATH variable never been set in ".cshrc" or ".bash_profile" file before.
4. Any questions about setting JDK for Linux based machine, please refer to the link pointing to a web page containing instructions for installing JDK on Linux based machine.
Instructions for setting Javis on Linux based Machine:
Note! If users have already set up Javis (Applet version) by using the instructions in the page Javis&Browsers, users do not have to do instr#1 and instr#2.
1. Download a file named "javis-0.2.tar.gz" from here.
Note! If you want to set up both Javis Standalone version and Javis Applet version at the same time, it is necessary to extract this tar file into the directory "~/public_html/".
2. After unzip and extract the downloaded file, a new directory named "javis-0.2" will be created.
3. Under the newly created directory, the main file of Javis is "Main.java".
4. Apply the commands below:
$ javac Main.java
After applying the command "javac", you get a file containing byte codes of Javis called "Main.class".
$ java Main
Note! Since Javis was developed under JDK1.1.7, users might get some warnings from this step due to the built-in classes incompatibilities between different JDK versions. However, Javis still works well.
5. After apply the command "$ java Main" for a while, there will be a javis screen showing up as follow:
1. The above instructions have been tested on Linux - Mandrake (kernel 2.2.13-7mdk and 2.2.9-19mdk) and Linux - Redhat (kernel 2.2.12-20smp). Therefore, they may or may not work on other environments.
2. Users can use JDK1.1.7 for Linux to compile and execute Javis on Linux based machine. However, environment setting may be slightly different.