After importing a standard .java file into Eclipse using Git, I tried to compile and run the file. Eclipse gave me this error:
"Unable to launch: The selection cannot be launched, and there are no recent launches."
What do I do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You must make sure your java code is in a java project. If the git source builds from ant, there is a “File>New>Other..>Java project from ant build file”.
Otherwise you need to create a java project in eclipse and then 1) import the source into the proj/src directory or 2) create a linked folder in eclipse that points to the source location on the file system.
Then you need to set up the classpath (add any jars that are needed for the compile).