Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

[Tutorial] How to Compile a Java program in Eclipse

Step 1:

When you start eclipse, it asks your for the address of the workspace. Workspace is a folder where eclipse will store all your project files.
[img=http://i51.tinypic.com/15fise1.jpg]
Step 2:

To start a new project go to New->JAVA project.
[img=http://i56.tinypic.com/13ye4k.jpg]
Step 3:
Enter the details of your project i.e your project name.

[img=http://i53.tinypic.com/dzfmg0.jpg]

Step 4:

Create a new class. To do this right click on your project name which is "MyProject" in this case and select New->Class.

[img=http://i52.tinypic.com/73ntd5.jpg]

Step 5:

Enter the name of your class. Click finish.
[img=http://i53.tinypic.com/zu61qq.jpg]


Step 6: Compiling

To compile, just press the RUN button or the DEBUG button to the left of the run button.

[img=http://i54.tinypic.com/dnzxtz.jpg]

Source: http://www.mycoding.net/2011/02/compiling-a-java-program-in-eclipse/
My Programs can be found at www.mycoding.net
Sign In or Register to comment.