This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199399 - Cannot install on Mac OS X Lion Dev Preview 4 (10.7)
Summary: Cannot install on Mac OS X Lion Dev Preview 4 (10.7)
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 7.0
Hardware: Macintosh Mac OS X
: P3 normal with 2 votes (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
: 201108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-14 10:57 UTC by mikesi
Modified: 2011-08-22 10:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The mentioned error message (181.75 KB, image/png)
2011-06-14 10:57 UTC, mikesi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikesi 2011-06-14 10:57:02 UTC
Created attachment 108889 [details]
The mentioned error message

The Instaler displays a message stating the IDE can be installed only on a Java 6 capable machine...

I know that Lion is preview but i just tend to try the newer versions.. as I was also using Beta versions of Netbeans :)
Comment 1 snaebten 2011-07-13 07:56:41 UTC
For me symbolic link pointed to oblivion

sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk /System/Library/Java/JavaVirtualMachines/1.6.0.jdk

fixed things for me.

Don't know if its an netbeans installer specific problem.

Previously had 6.8 installed which stopped working after upgrade.
Comment 2 Yulia Novozhilova 2011-07-15 11:46:26 UTC
Could you please post here the output of the command:
> ls -la /System/Library/Frameworks/JavaVM.framework/Versions/
Thanks in advance.
Comment 3 jnaO 2011-07-23 10:47:57 UTC
I had the same problem, suggested fix in snaebten@netbeans.org's comment fixed it. posting the output of ls:
xxxxxx-MacBook-Pro:~ xxx$ ls -la /System/Library/Frameworks/JavaVM.framework/Versions/
total 64
drwxr-xr-x  11 root  wheel  374 23 Jul 11:32 .
drwxr-xr-x  10 root  wheel  340 23 Jul 11:32 ..
lrwxr-xr-x   1 root  wheel   10 23 Jul 11:31 1.4 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 23 Jul 11:31 1.4.2 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 23 Jul 11:31 1.5 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 23 Jul 11:31 1.5.0 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 23 Jul 11:31 1.6 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 23 Jul 11:31 1.6.0 -> CurrentJDK
drwxr-xr-x   7 root  wheel  238 23 Jul 11:32 A
lrwxr-xr-x   1 root  wheel    1 23 Jul 11:31 Current -> A
lrwxr-xr-x   1 root  wheel   59 23 Jul 11:31 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
Comment 4 Yulia Novozhilova 2011-07-25 13:27:58 UTC
Thanks! 
How did you install Java 6 on your Mac? Did you use Java installer for Lion?
Comment 5 romansklenar 2011-07-26 14:40:51 UTC
The same problem here except that symlink trick from snaebten@netbeans.org did not worked.
Output of  ls -la /System/Library/Frameworks/JavaVM.framework/Versions/ is same as in jnaO@netbeans.org's comment.
Java downloaded from Apple developer center, directly for Lion. Any suggestions?
Comment 6 chiwo 2011-07-29 13:30:44 UTC
hi i had the same problem but i fix it 

try download java6 install it and netbeans run without problem 

Java6 download for mac osx 10.7 lion 
http://mac.softpedia.com/get/System-Utilities/Java.shtml
Comment 7 Yulia Novozhilova 2011-08-04 14:29:35 UTC
Since OS X Lion does not provide a Java runtime by default, please download and install Java for OS X Lion before installing NetBeans.

http://support.apple.com/kb/DL1421

The error message is corrected to point the user to the http://support.apple.com/downloads to download Java 6 for every Mac OS X version. 
http://hg.netbeans.org/core-main/rev/dd5bc0aa9155

Please feel free to reopen in case if you still have troubles after installing appropriate Java. Thank you.
Comment 8 Quality Engineering 2011-08-05 14:39:55 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/dd5bc0aa9155
User: Yulia Novozhilova <ynov@netbeans.org>
Log: Fix #199399 - Cannot install on Mac OS X Lion Dev Preview 4 (10.7); Update properties for generation of bundled jre
Comment 9 Yulia Novozhilova 2011-08-22 10:03:51 UTC
*** Bug 201108 has been marked as a duplicate of this bug. ***