/** * Eclipse in a nutshell * Version 0.1 * Author: Musard Balliu * It describes how to create an Eclipse project and * enable the use of I/O features. */ Here are the steps to create a new Eclipse project and import SimpleIO and Random libraries. I assume you have Eclipse and JDK 1.7 (or later version) installed 1. Open Eclipse 2. Click File -> New -> Java Project 3. Type a "Project name" in the menu that pops up, for example "exercises" and click Finish. The project name will appear on "Package Explores" on the left hand side of Eclipse. 4. Click once on the project name appearing on the left hand side of Eclipse, in this case "exercises" 5. Click File -> New -> Package 6. Type "Name" in the menu that pops up and click Finish. You must type "dit948" as "Name". 7. Copy the files SimpleIO.java and Random.java in package "dit948". This can be done either by using copy/paste of the files or just dragging the files. 8. Click again once on the project name appearing on the left hand side of Eclipse, in this case "exercises" 9. Click File -> New -> Class to create a Java class 10. Type a "Name" in the menu that pops up, for example "Exercise1" This will create a new Java file called Exercise1.java to write your program. 11. Open the file and import immediately the libraries you're going to use. This is done by: import static dit948.SimpleIO.*; import static dit948.Random.*; 12. Start having fun writing your program :)