CONTENTS:
I. JAVA JDK ECLIPSE FOR WINDOWS INTRODUCTION
II. DOWNLOADING JAVA JDK
III. INSTALLING JAVA JDK
IV. DOWNLOADING ECLIPSE
V. INSTALLING ECLIPSE
VI. WRITING YOUR FIRST JAVA PROGRAM
YOU WILL LEARN HOW TO:
1. DOWNLOAD JAVA JDK
2. INSTALL JAVA JDK
3. DOWNLOAD ECLIPSE
4. INSTALL ECLIPSE
5. START WRITING JAVA PROGRAMS
I. JAVA JDK ECLIPSE FOR WINDOWS INTRODUCTION
Welcome to the “JAVA JDK ECLIPSE TUTORIAL.”
II. DOWNLOADING JAVA JDK
Start your browser then go to the following website:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Select the appropriate JAVA Standard Edition (SE) for your computer operating system.
I selected the Windows JDK7 +Java EE Bundle which includes the Java Platform, Enterprise Edition 6 Java Software Development Kit (SDK) Update 3 and the Java Development Kit (JDK) 7.
You need the Java Development Kit (JDK). The JDK lets you write and compile JAVA programs. You also need the Java Runtime Environment (JRE). Depending on what you select, the JRE might be included with the JDK. If the option you select is shown with two column headings, JDK and JRE, you should download both separately.
While you are downloading the Java JDK and JRE, which are appropriate for your computer, I recommend accepting all the defaults, to ensure you have the Java compiler properly downloaded.
Perform the following steps:
A. From your Start menu click on "My Computer."
B. From "My Computer" click on C:\ your main hard drive.
C. From C:\ click on "Program Files."
D. From "Program Files" open the "Java folder."
E. From the "Java folder" open the folder with the name that includes jdk.
F. From the jdk folder open the bin folder.
G. From the bin folder right click on appletviewer.
H. From the appletviewer click on properties.
I. From properties copy the location path.
J Return to your Start menu and click on My Computer.
K. From My Computer right click on properties.
L. From properties click Advanced System Settings.
M. From Advanced System Settings click "Environment Variables."
N. From "Environment Variables" go to the top section named "New User Variables" and for "Variable name:" type "path"
O. From "Environment Variables" underneath "Variable name:" for "Variable value:" paste the location path you copied in Step 9.
P. From "Environment Variables" click OK and keep clicking OK on each window until you exit out and return to your desk top.
To test to see if everything works properly, from your desk top, click Start then click Run, type cmd, press Enter, and from the command line type javac then press Enter.
If everything works you will be in the java compiler and ready to code your first java program using Notepad or a similar text editor.
I do not recommend using a Notepad type text editor.
I recommend Eclipse.
Start your browser then go to the following website:
http://www.eclipse.org/downloads/
From the Eclipse website click on downloads.
Download the Eclipse that fits your needs, I downloaded Eclipse Classic.
I recommend accepting all the defaults and you will have the Java Eclipse IDE downloaded.
The Eclipse download will be a zip file.
Use WinZip or a similar package to unzip and extract the download.
I recommend accepting all the extraction defaults.
A. From your Start menu click on "My Computer."
B. From My Computer click on C:\ your main hard drive.
C. From C:\ click on "Program Files."
D. From "Program Files" open the Eclipse folder.
E. Right click on the purple round Eclipse circle icon, the one with the three white horizontal lines and select "Create Shortcut."
F. Click and drag the shortcut to your desktop.
Click the Eclipse shortcut on your desktop. When Eclipse opens follow these steps:
A. Click File, then click New, then click "Java Project."
B. From the Project Name window, type is whatever name you prefer, and then press Finish.
C. You will be returned to the first Eclipse window.
D. On the left side of the window you will see the Project Name you entered. Click the icon to the left to the Project Name and the project will be expanded.
E. Click source the top option src, then click New, then click Class.
F. A new window will open requesting a class name. Type in whatever name you prefer then press Finish.
G. The next window will show the start of the class code. Eclipse will start the code for you. It will say public class {…}.
H. Copy and then paste the following code between the two {…}.
System.out.println("Hello World!");
}
Look at the toolbar at the top of the window. Under Refactor you will see an arrow icon pointing to the right. When you move your cursor over the icon it will say Run and your class name. Click the run icon and your first Java program will run. If everything is working properly, in the bottom pane, it will print “Hello World!”
Congratulations! You will soon see Java is easy to learn and fun to use. Have fun!
YOU HAVE LEARNED HOW TO:
1. DOWNLOAD JAVA JDK
2. INSTALL JAVA JDK
3. DOWNLOAD ECLIPSE
4. INSTALL ECLIPSE
5. START WRITING JAVA PROGRAMS
Elcric Otto Circle
-->
-->
-->
How to Link to My Home Page
It will appear on your website as:"Link to ELCRIC OTTO CIRCLE's Home Page"
No comments:
Post a Comment