我有一台 Windows 2003 64 位终端服务器,我们从中运行 Java 应用程序。该应用程序一直运行到 2 天前。在此期间,服务器没有安装任何新更新。我尝试重新安装 Java 64 位,但仍然出现以下错误。
Unexpected exception: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
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.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
**Caused by: java.lang.UnsatisfiedLinkError: C:\Documents and Settings\administrator\Application Data\Sun\Java\Deployment\cache\6.0\19\625835d3-5826d302-n\swt-win32-3116.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform**
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.graphics.Device.init(Device.java:563)
at org.eclipse.swt.widgets.Display.init(Display.java:1784)
at org.eclipse.swt.graphics.Device.<init>(Device.java:99)
at org.eclipse.swt.widgets.Display.<init>(Display.java:363)
at org.eclipse.swt.widgets.Display.<init>(Display.java:359)
at com.ko.StartKO.main(StartKO.java:57)
... 9 more
答案1
答案2
“无法在 AMD 64 位平台上加载 IA 32 位 .dll”
有些事情已经改变。
尝试:
- 清除缓存
- 找到该 DLL 的 64 位版本
- 从备份中恢复以查看更改的内容