Creating a JAR file which contains other library files
问题 I want to create one executable JAR file which contains other JAR libraries. But when I execute the JAR, it gives an error of class path problem. How do I solve the class-path problem? 回答1: I think you can try it like this; Here is a simple example for you question. First, we assume we have a project directory like D:\javademo . In this working directory we then create a main class HelloWorld.java and thtat contains our other JAR files, like commons-lang.jar . Now, we must archive our main