Why can't I open my JAR outside NetBeans?
I have built my 开发者_如何学编程project that has 5 JAR files including my project JAR file. I am unable to open the jar file of my project outside NetBeans. How can I run the jar file outside IDE and distribute to customers?
You can create a shell script (Linux/Mac) or batch file (Windows) with something like this to start your application:
java -cp jar1.jar:jar2.jar:etc YourMainClassName
精彩评论