I am having a problem running java programs in Eclipse,
When i Click on Run button to Run the Project i get error until i manually Add that project in Run Configurations ,
Why do i have to add Evey project in Run configurations before running it ?
If i have a single .java file i couldn’t be able to run this file as i cannot add this File in Run Configurations because it is just a single file not a complete project having a package.
Last time when i was using eclipse and whenever i click on Run the project i selected automatically runs without adding it inside the Run configurations but since i Deleted and Eclipse and Re-Install it i am facing these kind of troubles ,
could somebody help me out ?
If its a single java file then you can right click on the file and select the “run as java application” option to allow you to run the program.
The Run Configurations option is used to make sure that you save some project specific run setings and use that shortcut each time to run the project.
For single programs i think the first option is better.