Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Unable to Launch, the selection cannot be launched, and there are no recent launches

Tags:

eclipse

svn

I am getting the above error when i try to launch a Project which i checked out from SVN Repository. When i make my own Java Project on eclipse with a main class everything works fine, but when i try to run the main class from my repository project i get the above message.

I did not have such a problem before. Repository projects were running fine, i got suddenly this error yesterday and after searching the internet i still can't fix it.

I have now 3 Projects on eclipse, home which is a java project made by me and two projects from repository lech and kramerspitz.

Under Run-> Run Configuration->Java Application->Project Browse i see only the home Project which i made, although the two other repository projects are also in my workspace but they don't show up. (Run As is empty)

Does anyone know what i should do? Re-installing Eclipse does not help, cause the problem remains.

The only difference i see is that the two repository projects are missing a .classpath file. Please help!

Hear are some pics: eclipseRun ConfigurationProject Selectionworkspacehome Project made by mekramerspitz repository project (cannot run main)reversi repository project (cannot run main method)

like image 781
Devid Avatar asked Dec 20 '22 12:12

Devid


2 Answers

As it seems I can't just check out on the project from the SVN repository. I have to choose from the project a specific project to check out, then everything works fine.

like image 94
Devid Avatar answered May 11 '23 09:05

Devid


Sometimes it happens when you forget to write "String[] args" in the main parenthesis

public class Hello {
    public static void main(){
        System.out.println("Hello");
    }
}

Code above would cause a similar problem

like image 35
s.n Avatar answered May 11 '23 07:05

s.n