简体   繁体   English

从Eclipse创建JAR时如何在清单文件中设置类路径,

[英]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.

相关问题 如何在清除文件中设置类路径,同时从eclipse创建JAR? - How to set classpath in manifest file , while creating JAR from eclipse? eclipse indigo的链接资源中的jar文件给出“无法从中加载Main-Class清单属性 <jar file path> ” - jar file in linked resources of eclipse indigo give “Failed to load Main-Class manifest attribute from <jar file path>” 使用 Eclipse 为 JAR 文件自动创建清单文件 - Automatically Creating Manifest File with Eclipse for JAR Files 如何将 PostgreSQL 驱动程序 jar 文件放在 eclipse 的类路径上? - How to place PostgreSQL driver jar file on class path in eclipse? [TestNG][Jar] Set Classpath in Manifest (Class-Path) — 忽略类路径? - [TestNG][Jar] Set Classpath in Manifest (Class-Path) — classpath is ignored? 如何找到jar文件的清单类? - How to find the manifest class of a jar file? 在jar文件中的manifest.mf中设置类路径的问题 - problem with setting the class path in manifest.mf within jar file Java忽略jar文件清单中的Class-Path条目 - Java ignoring Class-Path entry in jar file's manifest 如何从Ant构建文件设置Eclipse构建路径和类路径? - How do I set the Eclipse build path and class path from an Ant build file? 如何在Linux中设置servlet-api.jar文件的类路径 - How to set class path for servlet-api.jar file in linux
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM