In this lab, you will explore the Eclipse IDE and use the main method as the starting point for your applications. You will also move the BlueJ Shop project into Eclipse format.
Eclipse can be downloaded from http://www.eclipse.org/downloads/eclipse-packages/. It is free.
Scroll down and choose the build...Eclipse IDE for Java Developers:
A zip file will start to download. When this file has downloaded:
Decide where you are going to store your Programming applications on your computer. It is a good idea to create a folder called dev on your C drive and store all your applications in there.
Unzip the downloaded zip file to your chosen location. Note: if you don’t have unzipping software, 7-zip is a good choice and can be downloaded from here: http://www.7-zip.org/.
You should now have a folder structure resembling this picture:
Navigate to the folder where you installed the Eclipse application.
You should see a list of files and folders similiar to the picture below:
Double click in the Eclipse application (highlighted).
Eclipse should launch and you will be asked to select the location of your workspace.
From here on in, you can manage your workspace folders without direction from us. On your own laptop, choose a location that you find convenient as your Eclipse workspace. It is important that you keep your workspace and the location where you installed the Eclipse software separate.
Eclipse will now open. Click x to close the welcome page. You will have a view similar to this:
Now that you have successfully launched Eclipse, we will write a basic "Hello World" app to test it.
Select the following options to create a new Java Project:
In this step, we will convert our BlueJ menu-driven console based app into Eclipse format.
In your file explorer, open the the folder where your existing BlueJ Shop project is stored. If you don't have a copy of it in your local file system, you can download it from here.
Your BlueJ Shop folder structure should look like this:
Select the three .java files in your BlueJ project (hold down the CTRL key and click on each file in turn).
Right click on one of the selected files and choose copy.
From the CRUD perspective, in relation to a product, the user can:
Re-familiarise yourself with the code behind the C, R and D operations.