黑马程序员技术交流社区

标题: 用exe4j打包jar出错? [打印本页]

作者: qiangziwwq    时间: 2014-7-25 09:08
标题: 用exe4j打包jar出错?

用exe4j打包了一个jar文件,jar是用eclipse的export功能打包的,程序和jar包都能正常运行,但是我用exe4j打包成exe的时候就报错了。本人是新手,懂得不多java.lang.NoClassDefFoundError: Decoder/BASE64Encoder

at TestImageBinary.<clinit>(TestImageBinary.java:29)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Decoder.BASE64Encoder

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

... 7 mor





欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2