如何在NetBeans IDE 6.9.1中创建可执行jar [英] How to create executable jar in NetBeans IDE 6.9.1

查看:120
本文介绍了如何在NetBeans IDE 6.9.1中创建可执行jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我,我在netbeans IDE 6.9.1中创建.jar文件时遇到问题.我尝试双击dist中的.jar文件以查看它是否可以运行,但给出了结果无法从...加载Main-Class清单属性.
谁能帮助我,谢谢.

Help me please, i have problem creating .jar file in netbeans IDE 6.9.1. I tried double clicking the .jar file in dist to see it could run but it give out result Failed to load Main-Class manifest attribute from....
Could anyone help me, thank you.

推荐答案

您尝试使用
在命令提示符下运行它吗?
Did you try running it from the Command prompt using

java -jar filename.jar




而且,如果您要使用在移动设备上开发的此应用程序,则运行它的方式是错误的. MIDP应用程序既不包含主类,也不能在Java SE上运行.

看一下这个链接.这可能会有所帮助.

创建可执行Jar [ ^ ]




And if you want to use this application you have developed in a mobile then the way you are running it is wrong. MIDP application neither contains main class nor can can be run on Java SE.

Take a look at this link. This might help.

Creating Executable Jar[^]


这篇关于如何在NetBeans IDE 6.9.1中创建可执行jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆