QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1196|回复: 0

question about GL4Java in linux

[复制链接]
发表于 2002-10-20 22:45:27 | 显示全部楼层 |阅读模式
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"."
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 19:29 , Processed in 0.045960 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表