无法加载jar文件的主类 [英] Unable to load main-class for jar file
本文介绍了无法加载jar文件的主类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用Eclipse IDE开发了一个应用程序.创建应用程序后,我以jar格式导出了项目.当我尝试运行此jar文件时,出现错误:无法加载主类.请帮忙.
解决方案
将项目导出为jar时(请参见
I have developed an application using Eclipse IDE. After creating the application I exported the project in jar format. When I am trying to run this jar file, I get the error: Unable to load main class. Please Help.
解决方案
When you are exporting your project as a jar (see this SO question), you must specify your main class in the export Jar wizard.
这篇关于无法加载jar文件的主类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文