• Advertisement
Sign in to follow this  

Java, custom libraries. how do?

This topic is 2692 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I make classes that i can REFERENCE from any java program i'm making? I'm using NetBeans. That is all.

Share this post


Link to post
Share on other sites
Advertisement
You package it in a JAR file, possibly with other classes, and then include the JAR in any consuming projects' classpaths.

Share this post


Link to post
Share on other sites
When using netbeans u can also create one projekt with all ur "libary" classes and then u can easily add the hole libary project to ur main project as a libary

properties(project)->libarys->add project

or add in the same dialog a jar as a libary

Share this post


Link to post
Share on other sites
If your using eclipse you can also include a jar file to be regarded as a library.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement