Reputation: 225
How can I add an external folder into a Netbeans project? In my case I need to add an images folder from an network drive. In Eclipse I do this by adding a Linked Folder. What is the similar procedure in Netbeans?
Currently I'm using Netbeans 8 and created a web java project (Ant).
I can do this by adding the folder content on the build ant script or by creating a symbolic link to the specific path. Both operation are time consuming... Probably there is a (hidden) easy way to do this on Netbeans. Help please
Thanks
Upvotes: 2
Views: 8155
Reputation: 239
I created a folder with the same name and the same path as the one I needed from the remote server, then right click and Download.
Upvotes: 0
Reputation: 225
The only way that I found it was by creating a symbolic link...
To create a symbolic link on windows I followed this tutorial: http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Thanks all!
Upvotes: 2
Reputation: 3386
I would recommend simply making a Resources
folder in the same directory as your src
folder. Place your images in that folder, and ensure you specify the filepath accordingly when using the images in your Java project, and you should be fine.
If in your Java project you intend on iterating over images or something like that and the images will be changing on the network drive, you can always use some kind of folder synchronization method like using a briefcase. Then you can create a briefcase folder for your external folder within your Netbeans directory, and use something like auto-scanning of resources to ensure your application continues to use the updated folder.
There may be a much simpler way but this method seems feasible IMO.
Upvotes: 2
Reputation: 320
I guess you can go to Project Properties --> Sources --> Add Folder here you can select your folder to add..
Upvotes: 0