|
How to install Javis (standalone) on Windows based Machine? |
|
|
|
|
|
1. JDK for Windows version 1.1.7 or version 1.1.8
2. Swing version 1.0.3
Instructions for setting JDK and Swing on Windows based Machine:
1. Download JDK 1.1.8(Windows) and Swing 1.0.3 into the directories named "c:\jdk" and "c:\swing" respectively. Then, unzip and extract them.
Note! Other names and drives are acceptable. However, the drive c:, the names "jdk" and "swing" will be used in this page for reference to these 2 files.
2. For convenience, JDK can be called from any directories by setting PATH environment variable as follow:
2.1 open file "autoexec.bat" in c:\, then append the following lines:
2.1.1 SET JAVA_HOME=<JAVA DIRECTORY>
SET PAHT=%JAVA_HOME%\bin;%PATH%
Example SET JAVA_HOME=c:\jdk\jdk1.1.8
SET PATH=%JAVA_HOME%\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! we assume that Javis has been installed in the directory "c:\javis\javis-0.2".
3.1 open file "autoexec.bat" in c:\, then append the following lines:
3.1.1 SET SWING_HOME=<SWING_DIRECTORY>
Example SET SWING_HOME=c:\swing\swing1.0.3
3.1.2 SET JAVIS_HOME=<JAVIS_DIRECTORY>
Example SET JAVIS_HOME=c:\javis\javis-0.2
3.1.3 SET CLASSPATH=%JAVA_HOME%\lib\classes.zip;%JAVIS_HOME%; %SWING_HOME%\swing.jar;%SWING_HOME%\swingall.jar;%SWING_HOME%\windows.jar[;%CLASSPATH%]
Note! the string ";%CLASSPATH%" is optional. It is not necessary if the CLASSPATH variable never been set in "autoexec.bat" file before.
4. Any questions about setting JDK and Swing for WindowsNT based machine, please refer to the link pointing to a web page containing instructions for install JDK and Swing on WindowsNT based machine.
Instructions for setting Javis on Windows based Machine:
1. Download a file named "javis-windows-solaris-0.2.tar.gz" from here.
2. After you unzip and extract the downloaded file, you get a newly created directory named "javis-0.2".
3. Under the newly created directory, the main file of Javis is "Main.java".
4. Open dos prompt window, 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
5. After apply the command "java Main" for a while, there will be a javis screen showing up as follow:
1. The instructions above have been tested under Windows95. However, all of instructions can be applied under Windows98.