Eclipse running previous program

后端 未结 2 913
轮回少年
轮回少年 2020-12-30 17:16

It is a new problem. I copy paste a program and try to run it in eclipse. But the eclipse keeps running an older program. I have no idea what is going on. ( I saved the prog

相关标签:
2条回答
  • 2020-12-30 17:37

    What is going on here is how Eclipse decides what to Run when you press the Run button. My suspicion is you have settings which are causing it to launch the last launched item, rather than something new that does not have a launch configuration. If you hover over the Run icon, it will show the name of the launch configuration that Eclipse will launch.

    For a new program, you want to do a Run As -> Java Application (From Run menu).

    To configure the default launching behaviour, see Preferences -> Run/Debug -> Launching, and then set the options you want in the Launch Operation group.

    0 讨论(0)
  • 2020-12-30 17:42

    Exit out of eclipse, then open Eclipse in a new Workspace and create a new Project. This is a quick solution if you are willing to have multiple workspaces.

    0 讨论(0)
提交回复
热议问题