我正在尝试将jar文件包装到一个“ .exe”文件中。为此,我正在使用“ launch4j”应用程序。但是,当我运行包装好的.exe时,它会返回错误。
错误:
Caused by: java.lang.NoClassDefFoundError: com/cloakware/cspm/client/CSPMClient
at controller.CommandController.a2aClient(CommandController.java:285)
at controller.CommandController.createModifiedList(CommandController.java:263)
at controller.CommandController.esxSetupProcess(CommandController.java:59)
at controller.SubmitController.runEmcGrab(SubmitController.java:151)
... 62 more
Caused by: java.lang.ClassNotFoundException: com.cloakware.cspm.client.CSPMClient
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 66 more
我尝试将其添加到所有内容所在的文件夹中,但仍然无法正常工作。另外,要在“设置环境变量”选项卡中写入PATH。请帮助
仅供参考:
Launch4j v3.12
JDK 10.0.1