Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置生成的战争文件的入口点?这是我的清单文件
Manifest-Version: 1.0 Main-Class: Test
包名:
Manifest-Version: 1.0 Main-Class: com.process.Test
当我部署它并尝试使用以下命令从 cmd 运行它时:java -jar myFile.war
我得到:
NoClassDefFoundError: Test
不管我是否用主类指定包名。
提前致谢 :)
你的班级没有包吗?尝试将其指定为:
Main-Class: com.maventest.Test