How do I run a project in Eclipse?
Wor开发者_开发技巧king on a project in Eclipse 3.6, I used the subeclipse subversion stuff to download my file and now whenever I try to run it I get the following error:
The selection cannot be launched, and there are no recent launches
Any ideas guys?
If you have a downloaded project, first you have to import it:
- Go to project explorer
- Right click
- Select import
- If it is a war file choose as it or import as file system. There are many choices there. After that you have to add REQUIRED JAR on its class path, or if its a web project you have to add REQUIRED JAR in
WEB_INF/lib folder
.
Depends a bit on what kind of project this is..... Eclipse supports different kinds of launchers for different kinds of projects.
But assuming it's a relatively standard Java project, just right click on the main class and do "Run As... / Java Application".
This should launch your application, and Eclipse will remember this configuration the next time you try to run.
精彩评论