Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing source between two Netbeans projects

Tags:

java

netbeans

I have an existing Java project in Netbeans (a JSF web application). I'd like to experiment with GWT in a separate project - put pull in source from the original project. Is there any way to share source between two Netbeans projects.

When I attempt to add the source directory from the original project into the new the IDE complains that the source is already part of another project.

like image 606
user14636 Avatar asked Dec 04 '25 20:12

user14636


1 Answers

If you're only experimenting then copy the necessary part of the existing project to a different directory. Of course changes won't be synchronized later.

If you'd like to keep both projects alive then create a separate project with the common code, and use it as a library.

like image 172
asalamon74 Avatar answered Dec 06 '25 10:12

asalamon74



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!