Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add more existing sources to Java project

Tags:

java

netbeans

In Netbeans I can create a project using existing sources of Java files. If I want to add additional sources to a project how can I do so?

like image 350
Xolve Avatar asked Sep 29 '11 12:09

Xolve


People also ask

What is .project file Java?

project file holds the project nature and builders and for a typical Java project holds a single nature and builder corresponding a Java project.

What is source package in Netbeans?

Source packages contain your Java class, interface, enumeration, and annotation type files. That is, anything with a . java extension. This package contains your application logic. Test packages contain your Java test class files.

How do I upload a file in Netbeans?

You can add existing files to your project in two ways: Right-click the Source Files folder and choose Add Existing Item. You can point to an existing file on disk using the Select Item dialog box and add the file to the project. Right-click the Source Files folder and choose Add Existing Items from Folders.


1 Answers

  • right click on project
  • "Properties"
  • "Sources" (top left in the tree)
  • "Source Package Folders:" on the left side of the dialog
  • "Add Folder"
like image 77
ollins Avatar answered Nov 02 '22 19:11

ollins