There are many ways to run java program in fedora but the simplest is to run this in eclipce. now i am going to tell how to run a simple hello word program in eclipce.
1 first start eclipse
2 then go to the file menu and click to new and then java project
in project name give the project name u want to give in my case it is HelloWorld
3 now go to the new class menu and create a new main class
and now cheq the box public static void main(String{}args)
this will create a main class name the class HelloWord
4. now at the left side u will see a window and u will see your projects name
expand this and go to the HelloWord calss and double click it and and u will see a java editor in the middle
5 now to run the program run the program as java program .
No comments:
Post a Comment