0

Each time I try to run a new program, an old program 'client.java' is run by eclipse. How do I change this setting? How do we tell eclipse which program to run? I tried using the arrow beside run button but it dosen't list out my new program.

asked Oct 21, 2015 at 18:06

3 Answers 3

1

You can change the default behavior by going to Window> Preferences> Run/Debug> Launching and in the 'Launch Operation' section, select the radio button for Launch the selected resource or active editor and then select Launch the associated project underneath.

enter image description here

answered Oct 21, 2015 at 19:56
Sign up to request clarification or add additional context in comments.

Comments

1

Right Click To the class -> Run As-> JAVA Application

answered Oct 21, 2015 at 18:08

Comments

0

Firs of all make sure that your program has a main class.

Then click in the black button next to the run button -> Run As-> JAVA Application.

If this doesn work make sure you have all this properly set up.

Run Configurations

answered Oct 21, 2015 at 22:15

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.