How do you install a java library?
This should be an easy question answer, I just have very little experience with java.
I'm on Solaris, and I just downloaded the SNMPJ4 http://www.snmp4j.org/ java library, but it has absolutely no installation instructions. There's a .jar file in the package, so I tried Code:
java -jar /dist/lib/SNMP4J.jar Code:
Failed to load Main-Class manifest attribute from SNMP4J.jar |
With java .jar files no installation is really necessary. It needs to be put in the CLASSPATH of what ever needs to call into it.
The build.xml file is an ant build script. if you have ant installed you can type ant in the directory where the build.xml is and it will run it. |
Thank you very much! I just set my classpath to the directory with the .jar file and it worked like a charm.
|
All times are GMT -5. The time now is 10:44 PM. |