制作时出现问题.我的Java applet程序中的jar文件! [英] Problem when make . jar file from my java applet program !!!

查看:91
本文介绍了制作时出现问题.我的Java applet程序中的jar文件!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个Java applet程序,由于它没有主类,因此当我尝试运行.jar文件时出现错误.

我将此行添加到manifest.mf文件中:

主要类别:Pakagename.mainclassname

但是它给了我错误,并说发生致命异常,程序将退出

而我只写了类名:

主类:mainclassname

他说他找不到主类名


我该如何解决!! ????

Hay,

I have a java applet program, and since it does not have a main class i got error when i try to run the .jar file.

I add this line to manifest.mf file:

Main-Class: Pakagename.mainclassname

but it give me error and said that fatal exception occured, program will exit

and whe i write only the class name:

Main-Class: mainclassname

he saied that he could not find the mainclassname


How can i fix that!!???

推荐答案

先生. LOLO mohmadd right
该链接可能会对您有所帮助,但请仔细阅读此链接,
现在使用jar文件实现了Java小程序 [ ^ ]
是的
创建小程序的jar文件 [在sun.tools.jar.Main.main [
Mr. LOLO mohmadd right
This link may help you but read this link carefully,
implemented my java applet now using a jar file[^]
and yes
Creating jar file of applet[^]


READ THIS LINK
at sun.tools.jar.Main.main[^]


这篇关于制作时出现问题.我的Java applet程序中的jar文件!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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