Earlier when i am creating a new class for practicing programs in Eclipse. I use to create in same project and it used to run well. But lately i have to specially go to Run>Run Configuration> I have to manually select the project and main class.
Is there any configuration im missing as this is time consuming to every time go and change the main class.
Can anyone help?
You can press the black arrow near the Run button to select what to run, usually you will find your classes with public static void main(String[] args)
there. That's how it works for me.
The problem can be due to new class files not being generated due to errors. I have seen the same results as you (new changes not picked up) due to one or both of the following.
1) Look for red-! or red-X next to a project and fix the problem(s) in that project.
2) Check the Problems tab and fix all red-X errors.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.