View Single Post
  #8   Spotlight this post!  
Unread 02-06-2010, 18:33
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Porting to Java: enums, clocks, and multi-files

Quote:
Originally Posted by byteit101 View Post
Ok, how would one make a jar/zip/dll/whateverstaticlibrarysarecalledinjava to house multiple classes in netbeans then? I'm going for the fewest files possible
JAR - Java Archive. Really it's just a .zip file with a different file extension. It just contains all your compiled classes (same as .a libraries do your compiled objects on *nix). In concept, although, you also need a manifest file describing it's contents. Google `make java jar' for a list of tutorials, I can't personally recommend any of them.

Once you've got you're JAR file made, to `link' your program against it (in NetBeans, anyway) right-click on your project, select properties. From that window select the ``Java Sources Classpath'' category. You should see where the WPILIBJ JAR is already added. Click ``Add JAR/Folder...'', and find your jar.
Reply With Quote