Installation of the Java Software Kit (SDK) for Windows 95/98/ME


Users who need to import the JavaTM2 SDK Standard Edition, v 1.X.X as well as the serial port communication API, can follow steps listed here:

If you do NOT need a full Java Development Package and wish to simply operate the SRT, then the SRT Executable Software may be a better choice.


MS-Windows 95/98/Me - As of June 4, 2003


C:\ is used in this instruction as the normal MSDos default hard drive designation. Also the default directory for the Java Software Kit when Installed is j2sdk1.X.X_nn, hence the reference to C:\j2sdk1.X.X_nn.

1. Download the latest Java software package from java.sun.com

Latest version tested with the SRT j2sdk v 1.4.1_01
Newest version available from Sun j2sdk v 1.4.2 (beta)
Warning - Be Sure to Download the JDK (Java Development Kit), not the JRE (Java Runtime Environment)

Notes: It is recommended to create a subdirectory in which to download the JavaTM software package (typically a .EXE file ~40 mb in size) and the Java Communications API. When the Java download file is executed, the installation process will list a default directory that includes the SDK version number. It is also recommended to include this version number in the destination directory so that the user can identify updated downloads in the necessary PATH statements below.

2. Also from sun, retrieve the serial port Java Communications API. - presently, javacomm20-win32.zip version 2

3. Install Java by running the executable file j2sdk-1_X_X_nn-windows-i586.exe

Note: Clicking on the j2sdk-1_X_X_nn-windows-i586.exe file will open the Java SDK Install Shield which, like many windows install programs, will direct you through the installation process.
4. Unzip the javacomm20-win32.zip

Note: Use WinZip version 1.7 or later. Some older versions of Pkunzip will not create the java.comm.properties file.
5. Copy the comm.jar and the javax.comm.properties to the C:\j2sdk1.X.X_nn\jre\lib\ subdirectory

6. Copy the win32com.dll file (created when you unzipped the javacomm20-win32.zip file) to theC:\windows\system subdirectory

7. Include C:\j2sdk1.X.X_nn\bin in your PATH= line of the C:\autoexec.bat file.

8. Also include the line set CLASSPATH=.;C:\j2sdk1.X.X_nn\jre\lib\comm.jar in the C:\autoexec.bat file.

9. You may need to reboot after making changes to the autoexec.bat file.

Compile and Run:
It is recommended that you download the SRT Java control files, to a dedicated directory to avoid confusion with other program files. The SRT software-defaults will read and write files that are resident in the directory from which the SRT is run. The user is free to read and write to and from the directories of their choice, but if that choice is left to defaults, the usefulness of a dedicated SRT sub-directory will become obvious!

Open an MSDos Prompt Window and change to your selected SRT software directory.

cd \SRT directory
The syntax for compiling the SRT JAVA code is:

javac *.java

SRT users need to construct an ASCII file label srt.cat. This file contains the user sourcelist, the telescope station latitude and longitude, telescope azimuth and elevation limits, in addition to other optional parameter settings if "normal" SRT default settings are not optimum to the user. Information regarding the srt.cat file can be found in the Small Radio Telescope User's Guide which can be downloaded by clicking on the highlighted text below.

java srt 1 1 (simulator mode)

java srt 0 (operate mode)

Each of the above commands will open the SRT console window. Simulator mode will demonstrate the capabilities of the SRT console without the hardware. The compile and run commands are intended to be entered using an MS-Dos command line environment.