Remote access to Netbeans
Using Netbeans remotely with FreeNX, I had some trouble with the display not refreshing very well.
The solution is simply to uses sun.java2d.pmoffscreen, i.e. add the option -J-Dsun.java2d.pmoffscreen=false in etc/netbeans.conf.
There should be a way to detect if the display is local or not reading the DISPLAY env variable :
…j2se/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java , see _isDisplayLocal method …
I have to try with the J2D_PIXMAPS=shared/server env variable too.
- Ref :
- performance.netbeans.org/howto/jvmswitches
- java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html#ix
- forums.java.net/jive/thread.jspa?messageID=237183
- java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/gdhqt.html I admit I didn’t really understand his one.