简体   繁体   中英

How do I run a project in Eclipse?

Working 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?

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.

If you have a downloaded project, first you have to import it:

  1. Go to project explorer
  2. Right click
  3. Select import
  4. 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM