3. First Hello World Program Using BlueJ IDE
First Hello World Program using BlueJ When you open BlueJ IDE you will see that README.TXT text file, it has already created by IDE. This file contains only some information you can straight away delete this file. To delete this file select the file goto edit menu-- select delete. To create new Java Code goto Project--New Project, it will ask you for the project Name and Location, Location is the directory where you would like to store your Java Code. Once you create a new project you need to create a new class inside that project to do this click on New Class.... Button on left most corner. It will create a class with pre-generated code for you. To open class in Editor right click on class template and select open Editor. To compile your Java code press the button Compile or right click on class and select compile. Before compile the class your project contains only three file .Java file, package and readme file and as soon as you compile the .java file or your Java Code it will generate .class file inside the project directory. .class file is a Java class file which contain Java bytecode and having .class extension. If the java code compile successfully (without error) java compiler create the .class file and this .class file can be executed by Java Virtual Machine (JVM).
First Hello World Program using BlueJ When you open BlueJ IDE you will see that README.TXT text file, it has already created by IDE. This file contains only some information you can straight away delete this file. To delete this file select the file goto edit menu-- select delete. To create new Java Code goto Project--New Project, it will ask you for the project Name and Location, Location is the directory where you would like to store your Java Code. Once you create a new project you need to create a new class inside that project to do this click on New Class.... Button on left most corner. It will create a class with pre-generated code for you. To open class in Editor right click on class template and select open Editor. To compile your Java code press the button Compile or right click on class and select compile. Before compile the class your project contains only three file .Java file, package and readme file and as soon as you compile the .java file or your Java Code it will generate .class file inside the project directory. .class file is a Java class file which contain Java bytecode and having .class extension. If the java code compile successfully (without error) java compiler create the .class file and this .class file can be executed by Java Virtual Machine (JVM).