我是用RCP导出的aix(UNIX)环境。JDK是1.4.2 在WINDOWS上运行是正常的,但是导出的文件移动到UNIX环境后就出现下面的错误。
错误代码:
java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2171)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1975)
at java.lang.Runtime.load0(Runtime.java:773)
at java.lang.Runtime.load(Runtime.java:761)
at org.eclipse.equinox.launcher.JNIBridge.loadLibrary(JNIBridge.java:49)
at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:114)
at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863)
at org.eclipse.equinox.launcher.Main.run(Main.java:1262)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2171)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1975)
at java.lang.Runtime.load0(Runtime.java:773)
at java.lang.Runtime.load(Runtime.java:761)
at org.eclipse.equinox.launcher.JNIBridge.loadLibrary(JNIBridge.java:49)
at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:114)
at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863)
at org.eclipse.equinox.launcher.Main$SplashHandler.run(Main.java:106)
错误代码:
java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2171)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1975)
at java.lang.Runtime.load0(Runtime.java:773)
at java.lang.Runtime.load(Runtime.java:761)
at org.eclipse.equinox.launcher.JNIBridge.loadLibrary(JNIBridge.java:49)
at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:114)
at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863)
at org.eclipse.equinox.launcher.Main.run(Main.java:1262)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2171)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1975)
at java.lang.Runtime.load0(Runtime.java:773)
at java.lang.Runtime.load(Runtime.java:761)
at org.eclipse.equinox.launcher.JNIBridge.loadLibrary(JNIBridge.java:49)
at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:114)
at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863)
at org.eclipse.equinox.launcher.Main$SplashHandler.run(Main.java:106)
再百度一下看看你的jdk环境配置ok了没有。^_^_^_^
是不是使用了windows下的jni库?
你在终端输入JAVAC和JAVA.看有提示吗?
你这个类库有问题吧。
export PATH="..."