Skip to main content

Installation problems with NetBeans 6.0 on Mac? Sharing the tip I learnt.

Posted by ramapulavarthi on December 17, 2007 at 3:21 PM PST

I have installed NetBean 6.0 RC2 earlier and wanted to update with NetBeans 6.0 lately.
My installation experience was not good and I had to open a thread on NetBeans User mailing list to know what is happening and get it finally working.
You can find the thread here

I use mutiple versions of JDK as part of testing and I might have mistakenly removed some things that Netbeans instalaltion expects, that was causing the installation problems.
But the lack of proper error reporting made it really difficult to nail down the problem. All it says is something like "There is an error during installation, Please try installing again".
It needs lot of improvements in that aspect. But the good thing is the user forum is very responsive and gave me these tips to find out the issue.

Incase you run into something like that. These steps will be helpful for uninstalling Netbeans on Mac as well.

  • Uninstall the partially installed NetBeans or Previous installation.

    • To unistall,. just right-click on /Applications/NetBeans in Finder and select "Move to Trash".
    • Become super user and go to /Library/Receipts and remove NetBeans*.pkg if there is any. (Also, remove openesb*.pkg, glassfish*.pkg and apache-tomcat*.pkg if available).
    • Remove ~/.netbeans, (needed when Netbeans says the user directory is corrupted)
  • Check the installation log at /var/log/install.log (/private/var/log/install.log) for any information.

In mycase I had to problems, It could n't find /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/unpack200 . I might have removed the sym link /System/Library/Frameworks/JavaVM.framework/Versions/1.5 pointing to /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0. and hence the problem. After creating the sym link, I got it working. Without this, I also had to change netbeans.conf to point Netbeans to the right JDK.
I am not sure where Netbeans is picking /System/Library/Frameworks/JavaVM.framework/Versions/1.5/ up from.

But, Can't NetBeans use the /System/Library/Frameworks/JavaVM.framework/Versions/Current or /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK as default JDK?
BTW, If you want to use a different version of JDK, you can modify
/Applications/NetBeans/NetBeans 6.0.app/Contents/Resources/NetBeans/etc/netbeans.conf and set the property "netbeans_jdkhome" to the JDK you want or use --jdkhome at the start. NetBeans installation should prompt the User for the JDK to be used by NetBeans. Also, at the minimal it should show the errors or point to the installation log incase of installation errors.

Thanks for all the guys who helped me resolve the problem.

Related Topics >>