Wrong project is being run in Eclipse

Trying to guess your problem: When you press the Run as button (White arrow in green circle), Eclipse doesn’t run the program you’re editing. Instead, it runs again the last program you executed. That’s the reason why you see the output of another project: You’re telling Eclipse to repeat its execution.

So, to run your new app, right click over the code and select Run as/Java application.

Leave a Comment