karikari
karikari

Reputation: 6817

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.

Upvotes: 1

Views: 98

Answers (2)

artgon
artgon

Reputation: 714

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

Upvotes: 1

bakkal
bakkal

Reputation: 55448

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.

Upvotes: 7

Related Questions