Topic: 求助,用javaw打开jar文件时总说找不到main class?

  Print this page

1.求助,用javaw打开jar文件时总说找不到main class? Copy to clipboard
Posted by: jdlwp
Posted on: 2003-07-21 11:05

应该如何设置阿

还有一个问题是,我的系统没有直接将jar文件和javaw关联,我必须手动关联,如何进行手动阿,谢谢!!

2.Re:求助,用javaw打开jar文件时总说找不到main class? [Re: jdlwp] Copy to clipboard
Posted by: errorter
Posted on: 2003-07-21 11:38

试试:工具——》文件夹选项——》文件类型
选中 JAR 更改 建立与 javaw 的关联

可以试试 :)

3.Re:求助,用javaw打开jar文件时总说找不到main class? [Re: jdlwp] Copy to clipboard
Posted by: aihua
Posted on: 2003-07-24 13:34

java -jar youjarfile.jar

4.Re:求助,用javaw打开jar文件时总说找不到main class? [Re: jdlwp] Copy to clipboard
Posted by: zhongyijie
Posted on: 2003-07-24 15:50

看看Jar包中MANIFEST.MF文件中的Main-Class:是否有问题

5.Re:求助,用javaw打开jar文件时总说找不到main class? [Re: jdlwp] Copy to clipboard
Posted by: stevendu
Posted on: 2003-07-24 17:14

你用的什么编程工具啊? 用JB在Project属性中设置一下mainclass就好了

6.Re:求助,用javaw打开jar文件时总说找不到main class? [Re: jdlwp] Copy to clipboard
Posted by: lemon2000
Posted on: 2003-09-29 12:48

MANIFEST.MF中加入一行
Main-Class: 包名.主程序名

7.Re:求助,用javaw打开jar文件时总说找不到main class? [Re: jdlwp] Copy to clipboard
Posted by: yb79528
Posted on: 2003-09-29 12:50

或者解开包,在目录下执行 java Main-class


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923