Home
| | Sitemap
||Page number :3
Using an IDE---
IDE stands for integrated development Environment. It is a software that uses jdk as its base and contains its own text editor. So you can write, run, compile your programs by only using that software. In a simple line “An IDE makes our lives easier, providing extra features.” Some popular IDEs also mentioned previously are BlueJ, Jcreator etc.
Following the syllabus we will only deal with BlueJ. It needs a minimum of jdk1.3 version installed. Download this software from www.bluej.org. You will really appreciate its interface which is well designed and is user friendly for the novice programmers. Yet it is a really powerful and a platform independent tool.
A BlueJ window with a project opened is shown in the following figure --- You will first need to create a project. For this click on Project and then New Project. The complete menu looks like this-
After creating a project you have to create a class. Cick on the “New Class” button for creating a new one. Once you have created a class and specified its name, double click on the class icon to open the editor where you can write your program.
This is a screen shot of BlueJ editor.
For compilation, right click on the class icon and click Compile.
Now you will be shown the ‘first’ program written in BlueJ. The key fact is that BlueJ makes our work easier by making us write less. A person who is new to Java might think that the two codes are different but as we will discuss later, there is no difference.
/*This the first java program hence named first.java*/
class first { public void main () { System.out.println(“This is a java program”); } }
After compilation, executing a program is simple. Right click on the class icon and click on new first. Here we are automatically creating an object of class. After reading a few more chapters you will come to know about the significance of these steps.
In the next step specify the name of object. Now you will see an object created in the BlueJ window.
At last, right click on the object icon and then click “void main”.
You will see the output in BlueJ terminal window.

page 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29