Jeremy Russell & Associates Jeremy Russell & Associates

Efficient, effective training services
for database, programming &
web services

spacer

Home > Java Class Setup

Java Programming Class Setup

Java Development Environment

Printer Friendly 

For a Java Programming class, please follow all instructions below. For an Enterprise Java Programming class, complete the iinstructions below, then continue with the Enterprise Java class instructions. For all downloads listed below, please right click on the link and select 'Save Target As...' [Internet Explorer] or 'Save As...' [Netscape].

A) Download and install Java SDK & Documentation

  1. Download the JSDK from j2sdk-1_4_2_06-windows-i586-p.exe [51.5 Mb] - store the file in a temporary directory.
  2. Download the Java documentation from j2sdk-1_4_2-doc.zip [32.8 Mb] - store the file in a temporary directory.
  3. Close any browser windows, to avoid JVM in use error messages. Install the J2SDK by executing the downloaded .exe file. Accept all defaults. This should install the developer kit into the directory 'c:\j2sdk1.4.2_06'.
  4. Unzip the documentation file into a 'docs' subdirectory beneath 'c:\j2sdk1.4.2_06'. The master page for the documentation should have been installed as the file 'C:\j2sdk1.4.2_06\docs\index.html'.

B) Setup the Java environment

  1. Create a new directory for delegate work.

    mkdir C:\Course
  2. Set the following environment variables for all users. Right-click on 'My Computer', select 'Properties > Advanced Tab > Environment Variables'

    CLASSPATH=.;C:\Course
    JAVA_HOME=C:\j2sdk1.4.2_06
  3. Add the following to the PATH environment variable:

    PATH=.;C:\j2sdk1.4.2_06\bin

  4. Download the class examples, exercises and solutions from Java Programming.zip [465 Kb] - store the file in a temporary directory. Unzip the file to the 'C:\Course' directory created earlier.

C) Test the installation of the software kit

  1. Download and save the file called InstallTest.java [325 bytes] to the directory C:\Course. In the download dialog, ensure that you select the 'Save as type' to 'All files', to avoid appending '.txt' to the end of the saved file name.
  2. Open a command window and change to 'C:\Course', the directory where the file was saved.
  3. Compile the file using the command 'javac InstallTest.java'.
  4. Execute the file using the command 'java InstallTest'.

    The response should be :

    Installation Test Confirmation Message

If you are setting up an Enterprise Java Programming class, please continue with the setup.

This page last updated on
January 6, 2009 2:11 PM
 

 Search this site...
       
 
Web Hosting by Lunarpages

This page last updated on
January 6, 2009 2:11 PM