4 replies to this topic
#1 Members - Reputation: 123
Posted 20 January 2012 - 02:19 PM
Hi,
I've written a few classes in java which are useful in multiple projects. Unfortunately, without copy/pasting them I haven't been able to figure out how to use the classes in multiple projects.
In C++ I would just include the .h file and make sure the compiler knew where to look for it.
However, using Netbeans for my Java, I receive a "Package Folder Already Used in Project" message. How can I have just one source file but use it in multiple projects?
Thanks
I've written a few classes in java which are useful in multiple projects. Unfortunately, without copy/pasting them I haven't been able to figure out how to use the classes in multiple projects.
In C++ I would just include the .h file and make sure the compiler knew where to look for it.
However, using Netbeans for my Java, I receive a "Package Folder Already Used in Project" message. How can I have just one source file but use it in multiple projects?
Thanks
Sponsor:
#2 Members - Reputation: 633
Posted 20 January 2012 - 03:43 PM
stick it in a jar.Hi,
I've written a few classes in java which are useful in multiple projects. Unfortunately, without copy/pasting them I haven't been able to figure out how to use the classes in multiple projects.
In C++ I would just include the .h file and make sure the compiler knew where to look for it.
However, using Netbeans for my Java, I receive a "Package Folder Already Used in Project" message. How can I have just one source file but use it in multiple projects?
Thanks






