我在 Eclipse 3.7 (Indigo) 上有这个项目,并计划构建 *.jar。我将通过文件 > 导出 > Java.Runnable JAR 文件 > 命名 jar 文件的文件名 > 完成来构建项目。运行 jar 文件时总是返回错误。
Could not find the main class: [package nmame].[Class name of Main class (PSVM) is located].
Program will exit.
此外,MySQL 连接器 5.1 作为 JDBC 使用的引用库包含在内。
如何解决并能够构建一个 jar 文件,该 jar 文件在 Eclipse 上作为 Java 应用程序运行?
提前致谢。