Skip to main content

Running NetBeans 6 on SoyLatte (follow up)

Posted by fabriziogiudici on November 28, 2007 at 12:12 PM PST

Landon Fuller has released the R3 version of his preview of the Java 6 port for Mac OS X. This simplifies the setup of NetBeans 6 and I've fixed a final problem with it.

Now, to run NetBeans 6 with SoyLatte, you just need:

  1. run setenv DISPLAY :0.0 (or similar commands for other shells)
  2. launch X11 from /Application/Utilities
  3. patch $NETBEANS_HOME/etc/netbeans.conf with the appropriate L&F settings: netbeans_default_options="... other options ... <b>--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel</b>"
  4. patch $NETBEANS_HOME/harness/run.xml with:
    &lt;target name="run" depends="-prepare-as-app,-prepare-as-platform"&gt;<br />&nbsp;&nbsp;&nbsp; ...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;exec os="Linux SunOS Solaris <b>Darwin</b> Mac OS X" dir="." executable="sh" failonerror="yes"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/exec&gt;<br />&lt;/target&gt;<br />
  5. If you're developing a NetBeans RCP application, add this property to your nbproject/project.properties:
    run.args.extra=... other settings ... <b>--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel</b><br />

Technorati Tags: , , ,