存档

文章标签 ‘Could not find the main class’

jar文件Could not find the main class解决办法

2010年11月6日 admin 没有评论

可能原因。
1.myeclipse中 没有指定main函数直接export.
解决办法:
1.把lib目录里的jar文件一一解压,把解压后的类文件连同目录添加到Mycipher.JAR文件中,很easy的搞定。
2.修改MANIFEST.MF文件的Class-Path属性的值(目录路径用/或者.代替,jar之间用空格分开)如:Class-Path: ../lib/miglayout-3.5.5.jar ../lib/TableLayout.jar ../lib/swing-layout-1.0.jar,同时把用到的jar文件放到指定的路径下。