There are several way to import an existing code, folder as a java project to Eclipse.
These are very useful solutions if your project is built by not maven:
These are very useful solutions if your project is built by not maven:
- create a new Eclipse project with a same source folder. Sometimes you get an overlapping error.
- create a new Eclipse project from an existing ant build file. Specially the Eclipse try to parse and figure out which ant target is the best to compile your project during the import. Unfortunately the Eclipse try to find "javac" ant calls in your build script.
- try import only the java folders of the projects
- try to import as an existing project, and maybe the Eclipse will recognize
- create a .project file and enjoy
to create a .project file is very easy, you can copy an old one. Or create a file like this:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Pecunia</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

No comments:
Post a Comment