Login  Register

Exception: com.jogamp.opengl.GLException: Profile GL4 is not available

classic Classic list List threaded Threaded
5 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Exception: com.jogamp.opengl.GLException: Profile GL4 is not available

fmorat
33 posts
This post was updated on Aug 09, 2023; 9:41pm.
I built an macos image of my application but when I try to run it I get this exception: Exception: com.jogamp.opengl.GLException: Profile GL4 is not available on null: but: []


The same application runs find when I run it within eclipse. I've included the jar files gluegen-rt-natives-macosx-universal.jar and jogl-all-natives-macosx-universal.jar.

Any ideas on what I should be checking?


Any ideas are extremely helpful!
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Exception: com.jogamp.opengl.GLException: Profile GL4 is not available

gouessej
Administrator
6035 posts
Hello

Why not using jogamp-fat.jar? Please indicate the whole classpath. How do you run your program in command line?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Exception: com.jogamp.opengl.GLException: Profile GL4 is not available

fmorat
33 posts
So I used the java command jlink to build a self contained java application. I include all the necessary jar apps. It builds a self contained java app in MacOs. It produces a folder with a native macos executables. Then I simple click on the executable to launch the app and I get that error.

I will try your suggestion and use the fat jar to see if that helps.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Exception: com.jogamp.opengl.GLException: Profile GL4 is not available

fmorat
33 posts
In reply to this post by gouessej
I added jogamp-fat.jar and that solved the problem! Thanks!
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Exception: com.jogamp.opengl.GLException: Profile GL4 is not available

gouessej
Administrator
6035 posts
You're welcome :)
Julien Gouesse | Personal blog | Website