NoMachine and Netbeans

21 Nov

NoMachine offers a fantastic remote desktop product. If you need to perform serious work remotely, this is the best option I’ve found.

Unfortunately, I’ve been bitten by this bug that corrupted text while using Netbeans. Emacs worked fine, so I’ve been happily hacking away for some months. But the siren call of Java 6u10 finally drew me in and I had to find a work around. They don’t seem to have a forum or mailing list that I could find so I’m posting this here.

Simply add this to your ~/netbeans-6.*/etc/netbeans.conf:

-J-Dsun.java2d.pmoffscreen=false

The reference page was helpful. This option disables offscreen pixmaps.

4 Responses to “NoMachine and Netbeans”

  1. Mscotto 14. Jun, 2009 at 12:37 am #

    Worked like a charm. Have a multi-user install of netbeans, used locate to find the global netbeans.conf file. To get it to work I had to append the option to the end of the default command line options line:
    netbeans_default_options=” … -J-Dsun.java2d.pmoffscreen=false”
    Thanks!

  2. Alekhan 23. Jul, 2009 at 10:18 am #

    Very useful information

  3. Mike Johnson 23. Jul, 2009 at 5:56 pm #

    Thanks!

    In case others find it helpful, I also add the option:

    -J-Dswing.aatext=false

    The anti aliased fonts give me a headache after a while. :-)

  4. Kuriyya 05. Aug, 2009 at 3:47 pm #

    Thanks for this. It really helped me out!

Leave a Reply