Common Java "How Tos"

How to setup the Java DOS Environment via AUTOEXEC.BAT

    1. 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.

    2. Restart your computer to activate settings.

How to setup the Java DOS Environment via JAVASTART.BAT

    1. Create a new file using a text editor (e.g. notepad or edit)
    2. 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.

    3. Save file as JAVASTART.BAT. It would be best to save the file on your Java work folder (e.g. u:\idnumber\java).
    4. run JAVASTART everytime you start working on your Java programs.

How to install TerminalIO.jar and BreezySwing.jar in the ext folder

  1. 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.

  2. Copy TerminalIO.jar and BreezySwing.jar to this folder.

How to configure TerminalIO.jar and BreezySwing.jar in JCreator

  1. Select Configure-Options on the main menu bar.
  2. Select JDK Profiles in the Options dialogue box.
  3. Select the default JDK profile (the first profile on the list box, most likely j2sdk1.4.0)
  4. Click on the Edit button found on the left side of the profile list box. You will see the JDK Profile dialogue box.
  5. Select the Classes tab and click on the Add button and Add Archive. You will see the Open dialogue box.
  6. Go to the ext folder (most likely c:\j2sdk1.4.0\jre\lib\ext) and select TerminalIO.jar and BreezySwing.jar. Click Open.
  7. Click Ok on the Options dialogue box.

How to perform SOP#1 in CSci103 in the LAB

    1. Open DOS Prompt.
    2. u:
    3. If you get the "Invalid drive specification" error do the following:
      • net use u: \\server3\users
      • u:
    4. cd\idnumber\CSci103
    5. javastart

Request a "HOWTO"

© 2003. All rights reserved.