开发者

Why can't I open my JAR outside NetBeans?

开发者 https://www.devze.com 2023-02-10 15:40 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消