Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Nesting resources in output directory

Layout on file system

  • The Java source files for a product are laid out both in sources and deliverables directories.
  • All Java class files are laid out in deliverables directory.
  • Project needs to use some libraries located in deliverables/libraries directory:

    Layout on file system

Steps for defining a corresponding project

  1. Click Opens the Java perspective Window > Open Perspective > Other... > Java to change to the Java perspective.

  2. Click Opens the New Java Project wizard File > New > Other... > Java Project to open the New Java Project wizard.

  3. Type "Product" in the Project name field. Click Next.

    New Java Project wizard

  4. On the next page, Type "Product/deliverables" in Default output folder field.

    Select "Product" source folder.

    Click Link additional source link in Details pane or button Link Additional Source to Project in view bar.

    Java Project Source setup

  5. In Link Source click Browse.... and choose the D:\Product\sources directory.

    Link Source dialog

  6. Click Finish to validate and close the dialog.

  7. Again, Select "Product" and click Link additional source link in Details pane or button Link Additional Source to Project in view bar.

    Java Project Source setup

  8. In Link Source click Browse.... and choose the D:\Product\deliverables directory.

    Link Source dialog

  9. Expand the "Product/deliverables" source folder. Select the "libraries" package and exclude it from build path using either Exclude 'libraries' from build path link or Exclude popup-menu item.

    Exclude 'libraries' from build path

  10. Your project source setup now looks as follows:

    Java Project Source final setup

  11. Select Libraries tab.

    Click on Add JARs....

    Java Project Libraries setup

  12. Expand "Product" hierarchy to select jar files in "libraries" directory

    Click OK.

    JAR Selection dialog

  13. Click Finish to finalize project creation.

    Java Project Libraries final setup

  14. You now have a Java project with a "sources" folder and an output folder which contains nested library resources.

    Created Java projects in Workspace

Related concepts

Java projects
Java views

Related reference

New Java Project Wizard
Package Explorer View


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire