|
hi,all
i ijust installed gl4java in j2sdk1.4.1 under my Manfrake8.2.Then i want to test it by a program that is work fine in windows system.I type javac *.java,everything is ok,no error(succeeed in windows).Then I type java *.the exception message as below:
----------------------------------------------------
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
X11DrawableFactory.glXChooseVisual: no visual
java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException: Unknown Visual Specified
at sun.awt.X11GraphicsConfig.init(Native Method)
at sun.awt.X11GraphicsConfig.<init>(X11GraphicsConfig.java:69)
at sun.awt.X11GraphicsConfig.getConfig(X11GraphicsConfig.java:44)
at java.lang.reflect.Method.invoke(Native Method)
at gl4java.drawable.X11SunJDK13GLDrawableFactory.getGraphicsConfiguration(X11SunJDK13GLDrawableFactory.java:99)
at gl4java.drawable.SunJDK13GLDrawableFactory.getGraphicsConfiguration(SunJDK13GLDrawableFactory.java:61)
at gl4java.drawable.SunJDK13GLDrawableFactory.createGLCanvas(SunJDK13GLDrawableFactory.java:41)
at gl4java.drawable.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:165)
at TEDCanvas.<init>(TEDCanvas.java:63)
at TEDEdit.<init>(TEDEdit.java:236)
at TEDEdit.main(TEDEdit.java:50)
Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException
at gl4java.drawable.X11SunJDK13GLDrawableFactory.getGraphicsConfiguration(X11SunJDK13GLDrawableFactory.java:109)
at gl4java.drawable.SunJDK13GLDrawableFactory.getGraphicsConfiguration(SunJDK13GLDrawableFactory.java:61)
at gl4java.drawable.SunJDK13GLDrawableFactory.createGLCanvas(SunJDK13GLDrawableFactory.java:41)
at gl4java.drawable.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:165)
at TEDCanvas.<init>(TEDCanvas.java:63)
at TEDEdit.<init>(TEDEdit.java:236)
at TEDEdit.main(TEDEdit.java:50)
-----------------------------
the program stoped.i really don,t understand the meaning of"Xlib: extension "GLX" missing on display ":0.0"." The programe TEDCanvas.java and TEDEdit.java is mine.the others exception occured in the gl4java lib's program.But this program is work fine under windows.
by the way dir of GL4java installation is as below:
-------------------------------------
./install.sh
Java-Classes Path:/usr/local/jdk1.4.1/jre/lib/ext
java Native-lib's-Path's: /usr/local/jdk1.4.1/jre/lib/i386
os native-lib's -Path's:/usr/lib
The GL4Java libraries have been
successfully installed on your
system.
Please restart your browser!
You should now be able to run 3D web
applets which use GL4Java.
ROOT may have to run 'ldconfig' !
---------------------------------------------------
that means installed succeefully.
I really don't know where the problem is.if you have any idea or suggestion.pls tell me.Thank you very much!!!!
waiting for your help!!!
P.S:because the origin program is about 20 files,so i can not attach here.And i think it's not problem of program files,it must happend in the system configuration.(the file is woke fine under windows system)
Xlib: extension "GLX" missing on display ":0.0"." |
|