I'v installed NetBeans 6.8 on my MacOS X MacBook and the logs say it cannot be run, any ideas?

Posted by codezealot on Stack Overflow See other posts from Stack Overflow or by codezealot
Published on 2010-03-20T03:28:44Z Indexed on 2010/03/20 3:31 UTC
Read the original article Hit count: 385

Filed under:
|
|

I've installed NetBeans 6.8 on my MacBook, and the installation results indicated success. However, every single time I attempt to run the application is shuts down. I monitored the process and noticed the following entries in the console that imply the application cannot be found?

3/19/10 10:20:20 PM [0x0-0x22022].org.netbeans.ide.baseide.200912041610[22168] /Applications/NetBeans/NetBeans 6.8.app/Contents/MacOS/netbeans: line 57: dirname: command not found

3/19/10 10:20:20 PM [0x0-0x22022].org.netbeans.ide.baseide.200912041610[22168] Cannot read cluster file: /../etc/netbeans.clusters

3/19/10 10:20:20 PM com.apple.launchd.peruser.501[77] ([0x0-0x22022].org.netbeans.ide.baseide.200912041610[22168]) Exited with exit code: 1

I started researching how to set the default JDK for use by NetBeans, and found repeated use of the following command line entry;

netbeans --jdkhome /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

-- from http://wiki.netbeans.org/JDKVersionAndMacOS

When I attempt the command line above, I receive "netbeans command not found".

So do I ...

1.) Need to create a command called "netbeans" that points to my install location for NetBeans 6.8? If so how do I do that?
2.) How do I get to the netbeans.conf file for NetBeans 6.8, does one even exist for it?

It gets even more interesting, the above happens with Eclipse as well. Yippie.

© Stack Overflow or respective owner

Related posts about netbeans

Related posts about macosx