Monday, 9 September 2013

how to include external jar files while creating a jar file in linux?

how to include external jar files while creating a jar file in linux?

I have an external jar file mysql-connector-java-5.1.26 under
/Users/remy/Downloads/mysql-connector-java-5.1.26/mysql-connector-java-5.1.26.jar
. I want to create a jar file hello.java which should include the external
jar file as well, where hello.java is dependent on the external jar file.
Users
-->remy
-->Downloads
-->mysql-connector-java-5.1.26
-->mysql-connector-java-5.1.26.jar
Users
-->remy
-->Documents
How to create the myManifest.txt and include the external jar file so as
to compile and run them together?

No comments:

Post a Comment