jiapei100
June 1st, 2010, 11:18 AM
Hi, I changed my /etc/environment to
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin"
LD_LIBRARY_PATH="/usr/lib/jni"
JAVA_HOME="/usr/lib/jvm/java-6-sun"
CLASSPATH="/usr/lib/jvm/java-6-sun/lib:."
I hope my Eclipse should be able to find java3d, because
jiapei@jiapei-laptop:/usr/lib/jni$ ls
libgluegen-rt.so libjava-access-bridge-jni.so.0.0.0 libjogl.so libswt-pi-gtk-3555.so
libj3dcore-ogl.so libJavaEditline.so libswt-atk-gtk-3555.so
libjava-access-bridge-jni.so libJavaReadline.so libswt-awt-gtk-3555.so
libjava-access-bridge-jni.so.0 libjogl_awt.so libswt-gtk-3555.so
According to some instructions on the internet, if I set LD_LIBRARY+PATH in /etc/environment, java should be able to search the native code when required.
But, this never works any longer in Ubuntu 10.04 Lucid.
This is absolutely strange.
And, even after a fresh rebooting, Ubuntu Lucid won't be able to find "$LD_LIBRARY_PATH" at all
jiapei@jiapei-laptop:/etc$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin
jiapei@jiapei-laptop:/etc$ echo $CLASSPATH
/usr/lib/jvm/java-6-sun/lib:.
jiapei@jiapei-laptop:/etc$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
jiapei@jiapei-laptop:/etc$ echo $LD_LIBRARY_PATH
jiapei@jiapei-laptop:/etc$
As you may have noticed, there is an empty line after
echo $LD_LIBRARY_PATH
Did anybody else meet the same problem?
Does Ubuntu Lucid abandon the variable $LD_LIBRARY_PATH?
But, there must be something else as a replacement, right?
Can anybody give me a hand??
Best Regards
JIA
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin"
LD_LIBRARY_PATH="/usr/lib/jni"
JAVA_HOME="/usr/lib/jvm/java-6-sun"
CLASSPATH="/usr/lib/jvm/java-6-sun/lib:."
I hope my Eclipse should be able to find java3d, because
jiapei@jiapei-laptop:/usr/lib/jni$ ls
libgluegen-rt.so libjava-access-bridge-jni.so.0.0.0 libjogl.so libswt-pi-gtk-3555.so
libj3dcore-ogl.so libJavaEditline.so libswt-atk-gtk-3555.so
libjava-access-bridge-jni.so libJavaReadline.so libswt-awt-gtk-3555.so
libjava-access-bridge-jni.so.0 libjogl_awt.so libswt-gtk-3555.so
According to some instructions on the internet, if I set LD_LIBRARY+PATH in /etc/environment, java should be able to search the native code when required.
But, this never works any longer in Ubuntu 10.04 Lucid.
This is absolutely strange.
And, even after a fresh rebooting, Ubuntu Lucid won't be able to find "$LD_LIBRARY_PATH" at all
jiapei@jiapei-laptop:/etc$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin
jiapei@jiapei-laptop:/etc$ echo $CLASSPATH
/usr/lib/jvm/java-6-sun/lib:.
jiapei@jiapei-laptop:/etc$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
jiapei@jiapei-laptop:/etc$ echo $LD_LIBRARY_PATH
jiapei@jiapei-laptop:/etc$
As you may have noticed, there is an empty line after
echo $LD_LIBRARY_PATH
Did anybody else meet the same problem?
Does Ubuntu Lucid abandon the variable $LD_LIBRARY_PATH?
But, there must be something else as a replacement, right?
Can anybody give me a hand??
Best Regards
JIA