开发者

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

开发者 https://www.devze.com 2022-12-23 07:02 出处:网络
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 notic

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/Versio开发者_如何转开发ns/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.


Since you have the same problem with Eclipse as well, the problem is probably not specific to NetBeans. I would start by using Disk Utility to repair your hard drive's permissions, then reinstalling those applications.


Need to create a command called "netbeans" that points to my install location for NetBeans 6.8? If so how do I do that?

Not sure this would solve your problem but you can create a netbeans command by writing on the terminal

sudo ln -s /absolute/path/to/netbeans/bin/netbeans /usr/local/bin/netbeans


The fact that the system console consistently indicated that the executable could not be found did not by itself indicate the need to reinstall the OS. When X11 failed on my MacBook, I then decided to reinstall because X11 was an "out-of-the-box" installation which worked perfectly in the beginning. No indications were found explicitly demonstrating a virus was present, so I began the reinstallation process. Now that the reinstall is done, NetBeans, X11 et al are running perfectly.

0

精彩评论

暂无评论...
验证码 换一张
取 消