Monday, August 17, 2015

Hello World Program With Geany IDE

Hi All...!

Today I'm going to show you how to create a simple "Hello World...!" program using Geany IDE.

Following is the video of the hello world code.


Step 1 (Open Geany IDE)


Open your Geany IDE it will look like the following picture as you open your Geany IDE for the first time.





Step 2 (Create a new file on Geany)


Click On "New" and open a new file




Step 3 (Save created file)


Save newly open "Untitled" file as "Demo.java"



Go to desktop, create a new folder, name it as "My Java Program"



Go inside that folder, Type name as "Demo.java" and click "save"


Step 4


Then it will look like this




Step 5 (Write "Hello World...!" on Geany)


Now you can start writing your Java program on "Demo.java" file,




Write actually same code as I have shown above  


Step 6 (Compile and Run "Hello World...!" using Geany)


To compile our code we can click on the "Compile" button or you can press "F8" key







 After you compile your code, Geany IDE will show you a message,

If your code compiles correctly,



If your code has some errors,




( If you guys can find the error please comment it below ).

If your code compiles successfully, now you can run your program, to run your program again you can click on the "Run" button or you can press the "F5" key.





After you run your compiled code Terminal will open and run your code,


13 comments:

  1. It is a well known fact that Java as a programming language set off a new paradigm in the software industry. Suddenly, every software programmer worth his salt was amidst software jargons like 'Platform-Independence', 'Cross-Platform-Deployment' and 'The Java Virtual Machine'.
    java

    ReplyDelete
  2. 21:51:40: Cannot execute terminal command "C:\Program Files\Java\jdk1.8.0_91\bin\java” “-classpath” “%d” “%e”": The system cannot find the file specified. Check the path setting in Preferences.

    ReplyDelete
    Replies
    1. Please read http://javaseeeedu.blogspot.com/2015/08/how-to-install-java.html

      Delete
  3. Replies
    1. What happens when you run the code is there any error message ?

      Delete
  4. I'm using geany from Ubuntu (not Windows) and whenever I try to build the file it says"Compilation finished successfully " even when I know that I am missing semicolons. Whenever I try to play/view it, the terminal opens and says this:

    /tmp/geany_run_script_O5NJ8Y.sh: 7: /tmp/geany_run_script_O5NJ8Y.sh: C:\Program Files\Java\jdkl.8.0_45\bin\java-classpath: not found
    ------------------
    (program exited with code: 127)
    Press return to continue


    Help please??

    ReplyDelete
    Replies
    1. Sorry for late reply this post will help you https://askubuntu.com/questions/175514/how-to-set-java-home-for-java

      Delete
  5. I’ve been browsing on-line greater than three hours nowadays, yet I by no means discovered any attention-grabbing article like yours. It is beautiful price sufficient for me. In my view, if all webmasters and bloggers made just right content as you did, the web will be a lot more useful than ever before. php blogging platform

    ReplyDelete
  6. Without difficulty, the post is really the greatest on this precious topic. I harmonise with your conclusions and also will certainly thirstily look forward to your incoming updates. Just saying thanks will certainly not simply just be sufficient, for the extraordinary lucidity in your writing. I will certainly promptly grab your rss feed to stay abreast of any kind of updates. Genuine work and much success in your business endeavors! python string comparison

    ReplyDelete
  7. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    AWS Training in Bangalore
    AWS training in sholinganallur
    AWS training in Tambaram
    AWS training in Velachery

    ReplyDelete
  8. I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    thank you sir.
    Python Training in Chennai

    Python Training in Bangalore

    Python Training in Hyderabad

    Python Training in Coimbatore

    Python Training

    python online training

    python flask training

    python flask online training


    ReplyDelete