File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes How to import source files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to import source files." Watch "How to import source files." New topic

How to import source files.

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
Just downloaded and installed NetBeans IDE 7.1.1 for the first time and am looking forward to trying it out.
Until now I have been typing out source files using a regular text editor and compiling using the command line.
I want to get the content of my source files into a NetBeans project and use the IDE to work on it, but I don't know how.
The most straightforward way would be to start a new NetBeans project and then open the source files and copy the text from the source files into the IDE. But I'm pretty sure there is a better, faster way.
PLEASE tell me there is a faster way!! Otherwise I will die of old age before I finish.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

One way:

Create a project in NetBeans of the type that you want.

Using an OS tool (e.g. Explorer on Windows), copy your sources into the project's directory structure. NetBeans will automatically include the files in your project.

Another way:
Use the various import functions available. Under File | New Project, select the various Categories and you will see Projects that let you import existign stuff. For example, under Java there is Project With Existing Sources/

JBoss In Action
Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
It worked! Thank you.
I agree. Here's the link:
subject: How to import source files.
It's not a secret anymore!