I have used add as link option available in Visual Studio 2010 (Screen
shot attached below).
https://dl.dropbox.com/u/70687768/link.png
Same thing I want to achieve in Java using NetBeans IDE.
When try to attach file it gives below ErrorAddAsLink.JPG.
https://dl.dropbox.com/u/70687768/ErrorAddAsLink.JPG
In brief I want to have a common code (Ex methods :
readFileAsString(path) , LoadXML(path) ) which will be kept at a
location and should be able to accessed by multiple projects (Not as
jar because I want to give access to everybody to see and alter those
methods too)I referred below link , but not helpfull,
Just in case, I’m posting the steps on how you do what I describe in comments to the question (I’d consider this a viable alternative).
Projects > [main-project-name] > Librariesand select “Add Project…”Now your main project depends on another project’s JAR, so this JAR will be rebuilt whenever it’s code is updated and before main is built. You don’t have to build it individually.
Each team member may now edit the common code and commit it to SVN (can be done through Netbeans IDE without any external clients such as Tortoise). Others just need to check for updates often enough and update when necessary.
This has the same effect as having an external file as a link but it’s much more organized. I don’t think Netbeans has the exact feature you described.
I’m assuming Netbeans is being used for Java coding in this case.