[英]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 . 我在/Users/remy/Downloads/mysql-connector-java-5.1.26/mysql-connector-java-5.1.26.jar下有一个外部jar文件mysql-connector-java-5.1.26。 I want to create a jar file from hello.java which should include the external jar file as specified as well, where hello.java is dependent on the external jar file. 我想从hello.java创建一个jar文件,该文件还应包括指定的外部jar文件,其中hello.java依赖于外部jar文件。
Users
-->remy
-->Downloads
-->mysql-connector-java-5.1.26
-->mysql-connector-java-5.1.26.jar
Users
-->remy
-->Documents
-->Hello.java
How to create the myManifest.txt and include the external jar file so as to compile and run them together? 如何创建myManifest.txt并包括外部jar文件,以便一起编译和运行它们?
There are two ways. 有两种方法。
That said, I think you should go back and read a tutorial because you've made a few mistakes in your question. 就是说,我认为您应该返回并阅读教程,因为您在问题中犯了一些错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.