70 likes | 370 Vues
Tool Install. How to download & install Java 6 & Eclipse 4. 3.1 updated version based on Dr. G. L. Ray ’ s slides. Tools Install. Java 6 can be downloaded from http://java.sun.com/javase/downloads/index.jsp Follow download links to: JDK 6 Get the complete JDK! Java SE 6 Documentation
E N D
Tool Install How to download & install Java 6 & Eclipse 4.3.1 updated version based on Dr. G. L. Ray’s slides
Tools Install • Java 6 can be downloaded from • http://java.sun.com/javase/downloads/index.jsp • Follow download links to: • JDK 6 • Get the complete JDK! • Java SE 6 Documentation • Follow the installation instructions for each load • Accept install defaults • Optionally, you can set PATH & JAVA_HOME environment variables • Open DOS window, type C:\> java –version • System displays version of Java installed
Tools Install • Java SE 6 Documentation • You can install this wherever you want on your machine • Make a desktop shortcut for docs/index.html
Tools Install • Eclipse for Java EE Developers • http://www.eclipse.org/downloads/ • Eclipse Classic 4.3.1 • Unzip it into C: • You should see the following top-level directory: • Eclipse • Create desktop shortcut of Eclipse application file (The one with the eclipse icon) • Double click on shortcut to start Eclipse
Tools Install • Create a Java Project • File -> New -> Project -> Java Project -> Next button -> Type your project name; accept other defaults -> Finish button • Add a Java class to your project • Right-click on Project in Package View -> New -> Class -> Type your class name; accept defaults; Check box if you want auto-generated main method -> Finish button
Tools Install • Eclipse setup • Turn-on line numbering • Right-click in Java editor • Select Preferences->General->Editors->Text Editors • Check ‘Show line numbers’ box • Change your font or font size • Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Java Editor Text Font -> Change button -> Select new font and/or size -> OK button
Tools Install • Assignment: Eclipse IDE • Read the following eclipse tutorials • Help -> Help contents -> Workbench User Guide • Basic tutorial thru Deleting Resources Java Development User Guide • Basic tutorial thru Running Your Program • Don’t worry about understanding details of JUnit sample project