Search code examples
javaswingjava-8vnc

Java swing applications not rendering properly with VNC


Swing applications show a blank window when launched on a VNC desktop with Java 8. I don't have this problem with JRE 7 and non-swing applications (eg. Eclipse) runs properly with the same settings.

Are there some sort of default settings like 3D acceleration or something that have been enabled by default on JRE 8 ? How does i disable it ?


Solution

  • On a Linux system, I've found that using the -Dsun.java2d.xrender=false option solved the issue. I think that xrender is now enabled by default on Java 8.

    System Properties for Java 2D can be found here : http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html