当前时区 GMT+8, 现在时间是 2008-8-29 03:28 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: question about GL4Java in linux
passion
新手上路
Rank: 1


UID 3736
精华 0
积分 25
帖子 10
阅读权限 10
注册 2002-10-17
来自 China
状态 离线
发表于 2002-10-20 22:45  资料  短消息  加为好友 
question about GL4Java in linux

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"."





keep your passion RH8.0
顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP