[英]while creating JAR from eclipse?How to set class path in manifest file ,
I am done trying with all the solutions provided. 我尝试使用提供的所有解决方案。 Please help with this:
请对此提供帮助:
I am trying to create an executable jar for my project with manifest file. 我正在尝试使用清单文件为我的项目创建一个可执行jar。 But I keep on get the error no class found.
但我继续得到找不到类的错误。
My manifest file looks like below and it is in project level. 我的清单文件如下所示,它处于项目级别。 I create a jar from eclipse through export.
我从日食到出口创建了一个罐子。
Manifest-Version: 1.0
Main-Class: com.tn.gov.runParser.RunParser
Class-Path: commons-logging-1.1.1.jar s.jar t.jar 3.jar j.jar o.jar s.jar util.jar xml.jar xml.jar
将项目导出到JAR时,在prefrences / config页面上的“启动配置”下,将所有可能的类放入Main-Class:
此外,您可以在Main-Class:
行上手动编辑MANIFEST.MF
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.