• Now to run the application right click on HelloWorld.java and select "Run As/Java Application" option.

Eclipse image showing the way to run HelloWorld.java file

 

  • On successful run you will see output as "Hello World" in console as shown below

Image showing the final result of HelloWorld.java

  • Wow! That's a magic. I got the output even without a class file.
  • No! This is not a magic. Behind the scenes eclipse compile the source java file and creates a class file in bin directory of your project workspace . Don't you believe? Check "C:\Documents and Settings\HelloWorld\workspace1\bin\"

So here is your entry to IDE world!

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.