Instructions for Installing JDK 6 and Eclipse, and Running the FirstProgram.java - Prof. S, Assignments of Computer Science

Instructions for installing jdk 6 on windows and linux systems, checking the installation, and installing eclipse. It also explains how to create a new java project in eclipse, download and replace the default firstprogram.java file, and run the program. Mac users are instructed to check their java version and do not need to install jdk or eclipse.

Typology: Assignments

Pre 2010

Uploaded on 03/16/2009

koofers-user-chu
koofers-user-chu 🇺🇸

10 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COMP 110
Spring 2007
Instructor: Christine Xu
Instructions of how to install JDK 6
1. Go to http://java.sun.com/javase/downloads/index.jsp and download JDK 6.
Don’t worry about the JDK 6 with Java EE or JDK 6 with NetBeans 5.5.
2. Accept License Agreement
For Windows users: click Windows Offline Installation, Multi-language.
Download jdk-6-windows-i586.exe.
For Linux users: click Linux RPM in self-extracting file.
Download jdk-6-linux-i586-rpm.bin.
3. After the download finishes, run the executable file. Follow the steps and
install JDK 6.
4. After the installation, we should check whether the installation is successful.
Open a console (for Windows users, go to Start->Run, type cmd and
ENTER; for Linux users, choose Terminal; for Mac users, click Spotlight,
type terminal).
In the console window, type java –version. Following information should be
able to show:
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing).
5. For Mac users: Mac OS X is the only mass-market operating system that
comes with a fully configured Java Development Kit, so you don’t need to do
the JDK installation. Follow step 4, and find out the java version you have. As
long as it’s higher than version 1.4, you should be fine.
Instructions of how to install Eclipse
1. Go to http://www.eclipse.org/downloads/.
Click Eclipse SDK 3.2.1, choose a mirror site, and save the compressed
file (For Windows, it’s eclipse-SDK-3.2.1-win32.zip; for Mac users, it’s
eclipse-SDK-3.2.1-macosx-carbon.tar.gz).
2. After the download finishes, uncompress the file to a location where you
want Eclipse to locate.
3. After the uncompress, there will be a folder called eclipse. Enter it you
will see an executable file called eclipse.exe (or Eclipse.app in Mac).
Double click it and launch Eclipse.
pf3
pf4
pf5

Partial preview of the text

Download Instructions for Installing JDK 6 and Eclipse, and Running the FirstProgram.java - Prof. S and more Assignments Computer Science in PDF only on Docsity!

COMP 110

Spring 2007 Instructor: Christine Xu

Instructions of how to install JDK 6

  1. Go to http://java.sun.com/javase/downloads/index.jsp and download JDK 6. Don’t worry about the JDK 6 with Java EE or JDK 6 with NetBeans 5.5.
  2. Accept License Agreement For Windows users: click Windows Offline Installation, Multi-language. Download jdk-6-windows-i586.exe. For Linux users: click Linux RPM in self-extracting file. Download jdk-6-linux-i586-rpm.bin.
  3. After the download finishes, run the executable file. Follow the steps and install JDK 6.
  4. After the installation, we should check whether the installation is successful. Open a console (for Windows users, go to Start->Run, type cmd and ENTER; for Linux users, choose Terminal; for Mac users, click Spotlight, type terminal). In the console window, type java –version. Following information should be able to show: java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing).
  5. For Mac users: Mac OS X is the only mass-market operating system that comes with a fully configured Java Development Kit, so you don’t need to do the JDK installation. Follow step 4, and find out the java version you have. As long as it’s higher than version 1.4, you should be fine.

Instructions of how to install Eclipse

  1. Go to http://www.eclipse.org/downloads/. Click Eclipse SDK 3.2.1, choose a mirror site, and save the compressed file (For Windows, it’s eclipse-SDK-3.2.1-win32.zip; for Mac users, it’s eclipse-SDK-3.2.1-macosx-carbon.tar.gz).
  2. After the download finishes, uncompress the file to a location where you want Eclipse to locate.
  3. After the uncompress, there will be a folder called eclipse. Enter it you will see an executable file called eclipse.exe (or Eclipse.app in Mac). Double click it and launch Eclipse.

Instructions of how to run FirstProgram.java

  1. After you launch Eclipse, it asks you for a workspace (that’s where it puts your files). Choose a location for your workspace and click OK.

Then you will see a Eclipse window:

  1. Use the file menu to make a new project:

A New Java Class window will pop up. You only need to worry about the name of the new class, also call it “FirstProgram”. Then click Finish. Eclipse will create a file named FirstProgram.java under the workspace folder you specified when you started Eclipse.

  1. Download file from http://www.cs.unc.edu/~xushun/teaching/COMP110- S07/assignments/FirstProgram.java and replace the FirstProgram.java that Eclipse generated in the previous step (or you can do copy and paste to replace the content its content with the downloaded file). After it’s done, it should look like this:
  2. Then click the Run icon
  3. The first time you run something, you have to create a run configuration: Right click Java Application, choose New, then click Run. If you click the Run icon again, you don’t need to do all this.