Questions tagged «optaplanner»

7
IntelliJ IDEA中错误的Manifest.mf创建了.jar
我正在尝试通过IntelliJ IDEA的jar工件将使用OptaPlanner 6.0.1库的项目打包到.jar中,而不是将我的manifest.mf包含标准 Manifest-Version: 1.0 Main-Class: a.b.c.app jar使用ecj-3.7.2.jar中提供的一个,这是OptaPlanner的支持库之一: Manifest-Version: 1.0 Build-Jdk: 1.6.0_26 Built-By: ibrandt Created-By: Apache Maven Archiver-Version: Plexus Archiver 因此,"no main manifest attribute, in appname.jar"尝试运行该应用程序时会发生错误。如果我手动将.jar文件中的清单替换为我的清单,则一切正常。有什么我可以解决的吗? 我将这些库保存在单独的/ lib目录中,并将它们作为提取目录添加到jar工件的根目录中,IntelliJ IDEA是v13.0.1。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.