

I will save it in C:\KnowledgeBoat\CompApps\BlueJ. For location, navigate to the folder where you want to save your project. Give the name of the project as FirstJavaProgram. To create a project, you go to the project menu and select new project. While at the same time if you are building a cool game using Java then that will be a separate project. So, if you are building a student’s marks management application to record the marks of all the students in your class, that will be one project.


A project is a collection of Java classes that constituent your software application. You start by creating a new project in BlueJ. In subsequent launches, it will open the project that you were working on previously. This is how it will look when you open it for the first time. You can do the same thing using an executable JAR, so the window will stay open you open a console window and type "javaw -jar Shelf.jar" provided your executable JAR file is called Shelf.jar or just double click on the JAR file from file browser and it's going, but like I said it will close the window as soon as your program is done.This is the BlueJ main window. Also you will need to be in the folder where your Shelf.class file is located. You can run the class file by itself "javaw Shelf" or possibly "javaw Shelf.class" this has to be done at a console window and javaw.exe has to be in the path statement of the local machine. This is probably an option in BluJ, but be advised if you make an executable JAR and he has the JRE installed locally, he will run the file alright, but when the program is done, it will exit and close the console window immediately, so he will not be able to sit and look at the result of your program. Your program looks fine at a glance, as you have never said it does not run I will assume that it does. I have never used BluJ, but use NetBeans all the time-at this point many of the IDE's have executable JAR options.
