To allow using software rendering (not D3D) w/ Mesa3D:
set LIBGL_ALWAYS_SOFTWARE=true
To disable Direct Draw usage within AWT’s Java2D:
"-Dsun.java2d.noddraw=true"
To disable OpenGL usage within AWT’s Java2D:
"-Dsun.java2d.opengl=false"
This is required if using the zero deployment method, i.e. avoiding having the JVM load a different OpenGL library.
To using software rendering (not D3D) w/ Mesa3D and Java’s AWT:
set LIBGL_ALWAYS_SOFTWARE=true
"-Dsun.java2d.noddraw=true"
PATH
environment variableTo pick up the custom library from its random path and using software rendering (not D3D) w/ Mesa3D and Java’s AWT:
set PATH=C:\Mesa3D\x64;%PATH%
set LIBGL_ALWAYS_SOFTWARE=true
"-Dsun.java2d.noddraw=true" "-Dsun.java2d.opengl=false"
See AWT's OpenGL Usage
remarks above.
jogamp.primary.library.path
property at runtimeThe OpenGL implementation can also be selected at runtime before the OpenGL library has loaded, i.e. before JOGL’s initialization.
One can set the new property jogamp.primary.library.path
containing the usual OS path-separated paths to search for a custom
OpenGL library.
System.setProperty("jogamp.primary.library.path", "C:\\Mesa3D\x64");
In this case, the PATH
can be left untouched.
See AWT's OpenGL Usage
remarks above.
Same as Zero Deployment
, but PATH
setting
can be skipped.