开发者

How to put Java source inside IDE

I have a Java program source files, complete with its subdirectories. My problem is, how can I put all of this inside an IDE (ie. Netbeans, Eclipse) , so that I can easily, modify, compile 开发者_开发技巧and package it to become a *.jar file.


Eclipse: File->New->Java Project, then check "Create project from existing source" instead of "Create new project in workspace"

Netbeans has similar way to do it.


If you happen to be using Maven as your build tool there are some nice plugins for creating a project file that you can open in your IDE.

For example:

Eclipse: mvn eclipse:eclipse

Intellij IDA: mvn idea:idea

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜