Ab 1.5.1 Organizing Folders and Exploring The Installation of The SDK and Other Tools
Ab 1.5.1 Organizing Folders and Exploring The Installation of The SDK and Other Tools
1 Organizing folders and exploring the installation of the SDK and other
tools
Estimated Time
30 minutes
Learning Objective
In this lab activity, students will locate the resources required to complete all the labs in the course.
Description/Scenario
This lab describes three different platforms for lab work. The Windows platform, the Mac OS and the Unix/Linux platforms. The student completes the activities specific to the platform in which they will primarily be completing the labs. There are three Parts to this lab. Part I describes tasks and activities for the Windows platform. Part II describes tasks and activities for the MacOS platform, and Part III describes tasks and activities for the Unix/Linux platforms. Labs for each of the platforms begins first with the verification of required files, installation of files that are missing. This is a required lab. Successful completion of this lab ensures that the student has all the resources to complete subsequent labs.
Installed BlueJ files BlueJ.exe BlueJ Launcher Select VM examples folder lib folder uninst folder
1-8
JavaCourse files and folders. A zip file labeled javacourse.zip should be provided by the instructor. The zip file will extract to create folders for each chapter labeled Chap1.. Chap13 folder for resources Printout or electronic copy of the Case Study JBANK Computer Lab usage policies
Additional files and folders that are provided, but not essential to completing the labs are: UML tool Installation instructions for the SDK Installation instructions for Courselab files
The following sections describe the activates to be conducted for three different platform. The student is not required to complete all three parts. The student should complete the part that matches the Computer System/ OS platform they will be using most frequently for this course.
PART I
a. In a windows environment, if the Java2 SDK has been installed properly, the folder for the SDK should be located on Drive C. Instructors may choose to install different versions of the Java2 SDK. If the version number for the SDK is different than that referenced in this lab, use the version installed on your machine. The version should be newer, with a higher number.
2-8 Fundamentals of Java Programming Lab 1.5.1 Copyright 2004, Cisco Systems, Inc.
Locate the JDK1.4.1_02 folder and click on it. If the Java2 SDK has not been installed, ask your instructor for additional information. b. Locate the bin folder and click on it. c. Locate javac.exe. Do not click on this, as this will execute the javac compiler. d. Locate java.exe. Do not click on this as this will execute the java.exe application launcher. e. Locate the docs folder. When the SDK was installed, the documentation that you will be using to access the Java API should be installed in this folder. These are the files you should locate: Folder api, guide, images, relnotes, tooldocs. Inside the api folder should be index-files, java, javax, org folders. You have now verified all of the files required for using the Java2 SDK.
a. BlueJ can be installed in any directory. Check with your instructor to verify the location of the Bluej application. If BlueJ has not been installed, ask you instructor to provide further information. b. Locate the folder for the BlueJ application. c. Verify the folders using the checklist from Step 1.
d. Verify the folders for each of the chapters e. Verify the content of the resources folder.
3-8
PART II
f.
In a Linux environment, if the Java2 SDK has been installed properly, the folder for the SDK should be located in users home directory. A common home directory path is /home/username. Instructors may choose to install different versions of the Java2 SDK. If the version number for the SDK is different than that referenced in this lab, use the version installed on your machine. The version should be newer (with a higher number). Locate the JDK1.4.1_02 folder and click on it. If the Java2 SDK has not been installed, ask your instructor for additional information.
g. Locate bin folder and click on it. h. Locate javac.exe. Do not click on this, as this will execute the javac compiler. i. j. Locate java.exe. Do not click on this as this will execute the java.exe application launcher. Locate the docs folder. When the SDK was installed, the documentation that you will be using to access the Java API should be installed in this folder. These are the files you should locate: Folder api, guide, images, relnotes, tooldocs. Inside the api folder should be index-files, java, javax, org folders.
You have now verified all of the files required for using the Java2 SDK.
4-8
d. BlueJ can be installed in any directory. Check with your instructor to verify the location of the Bluej application. If BlueJ has not been installed, ask you instructor to provide further information. e. Locate the folder for the BlueJ application. f. Verify the folders using the checklist from Step 1.
5-8
PART III
a. In a Mac environment, if the Java2 JDK has been installed properly, the folder for the jdk should be located on the hard drive of your Mac. Instructors may choose to install different versions of the Java2 SDK. If the version number for the JDK is different than that referenced in this lab, use the version installed on your machine. The version should be newer, with a higher number. Locate the JDK Tools folder and click on it. If the Java2 JDK has not been installed, ask your instructor for additional information. b. Locate JDK Tools folder and double-click on it.
c.
Locate javac.exe. Do not click on this, as this will execute the javac compiler.
d. Locate javah.exe. Do not click on this as this will execute the java.exe application launcher. e. Locate javadoc.exe. Do not click on this as this will execute the javadoc application. You have now verified all of the files required for using the Java2 SDK.
6-8
g. BlueJ can be installed in any folder. Check with your instructor to verify the location of the BlueJ application. If BlueJ has not been installed, ask you instructor to provide further information. h. Locate the folder for the BlueJ application. i. Verify the folders using the checklist from Step 1.
7-8
8-8