I'm running LWJGL app on Ubuntu virtual machine with no phisical graphic card. I set up Xvfb and Mesa3D but it fails with exception
java.lang.ExceptionInInitializerError: null
at org.lwjgl.opengl.Pbuffer.createPbuffer(Pbuffer.java:234) ~[lwjgl.jar:na]
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:219) ~[lwjgl.jar:na]
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:190) ~[lwjgl.jar:na]
...
Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No display mode extension is available
at org.lwjgl.opengl.Display.<clinit>(Display.java:141) ~[lwjgl.jar:na]
... 7 common frames omitted
Caused by: org.lwjgl.LWJGLException: No display mode extension is available
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:724) ~[lwjgl.jar:na]
at org.lwjgl.opengl.Display.<clinit>(Display.java:138) ~[lwjgl.jar:na]
App is running from cron using script
export DISPLAY=localhost:1.0
export XAUTHORITY=/home/ubuntu/.Xauthority
xauth add localhost:1 . 11111111111111111111111111111111
Xvfb :1 -screen 0 1024x768x16 -nolisten tcp
/home/username/start.sh
Most of steps above were adopted from here but I'm not sure I did it correctly. Any help would be appreciated!