when do I need to set JAVA_HOME?

Till Oliver Knoll till.oliver.knoll at gmail.com
Mon Apr 4 20:16:42 UTC 2016



> Am 04.04.2016 um 13:04 schrieb Anton Shterenlikht <mexas at bris.ac.uk>:
> 
> I'm having troubles running an openGL
> 3D visualisation over ssh -Y:
> 
> javax.media.opengl.GLException: Error making context current
>        at com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java:141)
>        at com.sun.opengl.impl.x11.X11OnscreenGLContext.makeCurrentImpl(X11OnscreenGLContext.java:69)
>        at 

Hello list,

The exception above sais that "OpenGL cannot activate ("make current") the desired (requested) graphic context". That is usually the case when the GPU (graphic card) does not provide the requested features such as bit depth or features such as double-buffering (actually that would fail already at OpenGL context /creation/ time, but let's skip over the details here, shall ww ;)).

The point is to me it doesn't look like a class is missing, which would hint at a missing CLASSPATH. It is really an error at runtime, after all classes have been loaded.

It could still be that some (non-mandatory) OpenGL driver is not found (in the JAVA CLASSPATH), but my suspicion goes towards SSH: we are talking about a remote connection, right? Could well be that your remote X client (or was it the X Server? IIRC those X11 people have a weitd notion of "server" and "client" - but never mind ;)), that is the display "where you eventually show the app", claims to have features (for the created GL context) which it doesn't (or the "X Server" on the remote display is simply buggy).

All that said: does the application run locally (without SSH)? Do other OpenGL applications run over SSH (with a comparable feature set, that is, do they make use of the same OpenGL version features, e.g. "OpenGL 3.3" or even 4.x)?

Cheers,
  Oliver




More information about the freebsd-questions mailing list