Click
Window > Open Perspective > Other... > Java
to change to the Java perspective.
Click
File > New > Other... > Java Project
to open the New Java Project wizard.
Immettere "Product1" nel campo Nome progetto. Fare clic su Avanti.
Nella pagina successiva, selezionare la cartella di origine "Product1".
Click Link additional source link in Details pane or button in view bar.
In Link Source click Browse.... e selezionare
la directory D:\Product1\JavaSourceFiles
.
Immettere "src" nel campo Nome cartella.
Click Finish to validate and close the dialog.
Again, Select "Product1" and click Link additional source link in Details pane or button in view bar.
In Link Source click Browse.... e selezionare
la directory D:\Framework\JavaSourceFiles
.
Type "src-common" in the Folder name field.
Click Finish to validate and close the dialog.
L'impostazione di origine del progetto avrà il seguente aspetto:
Create project "Product2" repeating steps 2 to 5 choosing D:\Product2\JavaSourceFiles
directory for source folder instead.
Click on Finish to create the project immediately.
Now, we'll see how to add a linked source folder when project is already created in workspace...
Edit project "Product2" properties and select Java Builder Path page.
On Source tab, click Link Source....
In Link Source click Browse.... e selezionare
la directory D:\Framework\JavaSourceFiles
.
Type "src-common" in the Folder name field.
Click Finish to validate and close the dialog.
Click OK to apply project "Product2" properties changes.
Procedura guidata Nuovo progetto Java
Vista Esplora pacchetti