How
to setup the Java DOS Environment via AUTOEXEC.BAT
- Write
the following codes in your AUTOEXEC.BAT. Do not forget to
write the period (.) at the end of the
CLASSPATH.
SET JAVA_HOME=C:\J2SDK1.4.0
SET CLASSPATH=%JAVA_HOME%\LIB;.
SET PATH=%JAVA_HOME%\BIN;%PATH%
WARNING!
The location and version of your jdk may be different. Do not forget
to write the period (.) at the end of the CLASSPATH.
- Restart
your computer to activate settings.
How
to setup the Java DOS Environment via JAVASTART.BAT
- Create
a new file using a text editor (e.g. notepad or edit)
- Write
following codes. Do not forget to write the period (.) at the end
of the CLASSPATH
SET JAVA_HOME=C:\J2SDK1.4.0
SET CLASSPATH=%JAVA_HOME%\LIB;.
SET PATH=%JAVA_HOME%\BIN;%PATH%
WARNING!
The location and version of your jdk may be different.
- Save
file as JAVASTART.BAT. It would be best to save the file on
your Java work folder (e.g. u:\idnumber\java).
- run
JAVASTART everytime you start working on your Java programs.
How
to install TerminalIO.jar and BreezySwing.jar in the ext folder
- Open
the ext folder. On my computer this folder is contain with the folder
in which I installed the JDK -- c:\j2sdk1.4.0\jre\lib\ext
(this will vary depending on the version of the JDK being used).
WARNING!
The location and version of your jdk may be different.
- Copy
TerminalIO.jar
and BreezySwing.jar
to this folder.
How
to configure TerminalIO.jar and BreezySwing.jar in JCreator
- Select
Configure-Options on the main menu bar.
- Select
JDK Profiles in the Options dialogue box.
- Select
the default JDK profile (the first profile on the list box, most likely
j2sdk1.4.0)
- Click
on the Edit button found on the left side of the profile list
box. You will see the JDK Profile dialogue box.
- Select
the Classes tab and click on the Add button and Add
Archive. You will see the Open dialogue box.
- Go to
the ext folder (most likely c:\j2sdk1.4.0\jre\lib\ext)
and select TerminalIO.jar and BreezySwing.jar. Click
Open.
- Click
Ok on the Options dialogue box.
How
to perform SOP#1 in CSci103 in the LAB
- Open
DOS Prompt.
- u:
- If you
get the "Invalid drive specification" error
do the following:
- net
use u: \\server3\users
- u:
- cd\idnumber\CSci103
- javastart
Request
a "HOWTO"
|