Application Programming Hend Alkittawi Eclipse IDE Introduction to Eclipse IDE ECLIPSE IDE ● Eclipse is an integrated development environment (IDE) used in computer programming. ● It is a popular IDE for Java development. ● In Eclipse you can create new Java projects and import existing projects to the workspace. ● An Eclipse workspace is a folder on the disk where the project and application files are stored. ● Get eclipse here CREATING A PROJECT IN ECLIPSE 1. Open Eclipse and select/create a workspace > Launch 2. If the welcome window appears, choose to hide it 3. In the Package Explorer (top left area of IDE), right click and select New > Java Project 4. Name your project 5. Ensure that the create module-info.java file is unchecked 6. Click “finish” Open Eclipse and select/create a workspace > Launch If the welcome window appears, choose to hide it Create a new Java project using the new project wizard (multiple ways) Name your project (for labs, follow the lab guidelines!) Ensure that the create module-info.java file is unchecked CREATING A CLASS IN AN ECLIPSE PROJECT 1. Expand your project 2. Right-click on src > New > Class 3. Name your class following Java naming convention 4. To run your class, you need a main method. With that, you can click the green “run” button at the top of the IDE to run your program and see results in the console. Create a new Java class right-click on src > New > Class give the class a name > finish leave this as the default package optional, can be added later Edit and run your code IMPORTING A PROJECT IN ECLIPSE 1. If you have an Eclipse project in a zip file, unzip the file 2. Open Eclipse and select/create a workspace > Launch 3. If the welcome window appears, choose to hide it 4. In the Package Explorer (top left area of IDE), right click and select Import … 5. Select General > Existing Project Into Workspace > Next 6. Browse to find the unzipped project directory > Finish Import an existing project using the import project wizard (multiple ways) Select General > Existing Project Into Workspace > Next Browse to find the unzipped project directory > Finish CODE DEMO - Create a Java project and a Java class to demo concepts! DO YOU HAVE ANY QUESTIONS? THANK YOU! @ hend.alkittawi@utsa.edu By Appointment Online