This content has been marked as final. Show 1 reply
Using Class-Path manifest entry is one way to deal with this problem. Do the following:
It should contain the following:
Class-Path: 1.jar 2.jar 3.jar ...
jar cvf cvfm all_jars.jar manifest
Copy this all_jars.jar to c:\jars dir.
Now you can run your app using only c:\jars\all_jars.jar in classpath.
For more info on this, refer to http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Main%20Attributes