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 178545 - NetBeans does NOT run on Mac
Summary: NetBeans does NOT run on Mac
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-13 13:45 UTC by dgerman
Modified: 2009-12-15 03:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dgerman 2009-12-13 13:45:32 UTC
Sorry to put it this way but I am way frustrated with this.
I am on an iBook G4 PPC Mac OS X 10.5.8  java 1.5.0_22 from appple
I'm not a newbie but...

1) It seems the the README.html file is located in:
/applications/netbeans/NetBeans 6.7.1.app/Contents/Resources/NetBeans

This directory is not "findable".
Unfortunately after locating it I read that 
To start the IDE (Microsoft Windows)...
To start the IDE (Solaris OS or Linux)...

Which would not be so bad if the Mac starting procedure were distillable from this info.


2) I found http://netbeans.org/kb/articles/mac.html
"Using NetBeans IDE on Mac OS X"
Which does not tell how to use (start) Net Beans!

It does reference :Running NetBeans IDE on Mac OS X
Which also not only does not explain how to run NewBeans IDE on Mac


but does include an FAQ"    *  Issue # 146119: Netbeans will not launch from Finder " status RESOLVED, started 2008-09-04.
After reading this lengthy, many entry report which has the last entry of:
"Had the same issue tried all solutions below without success. ..."

As mentioned in the begining of the report, I tried:
 open "/Applications/NetBeans/NetBeans 6.8.app"
but got:
LSOpenFromURLSpec() failed with error -10810 for the file /Applications/NetBeans/NetBeans 6.8.app.

also tried 
sudo open ...


Is there an  answer?

Sincerely,
dgerman
Comment 1 Yulia Novozhilova 2009-12-14 06:12:07 UTC
To start NetBeans 6.8 on Mac OS X you can use one of these methods:
 - double-click the NetBeans 6.8.app
 - start the IDE at the command line: 
> sh /Applications/NetBeans/NetBeans\ 6.8.app/Contents/Resources/NetBeans/bin/netbeans 

But it looks like you have the same problem as described here:

http://samcogan.com/blog/?p=23 

Have you updated java recently? You can try the suggested fix.
Comment 2 dgerman 2009-12-14 12:36:54 UTC
solution:

sudo chown $USER ~/.netbeans
sudo chown $USER ~/.netbeans-registration

mkdir .netbeans/6.8
mkdir .netbeans/6.8/config
mkdir .netbeans/6.8/var
mkdir .netbeans/6.8/var/log
mkdir .netbeans/6.8/var/cache
mkdir .netbeans/6.8/var/cache/lastModified

I am not sure that I needed to create all the sub directories.

It Does run on Mac.

var/log/messages.log contains many complaints
of the form :

WARNING [org.netbeans.core.modules]: Class-Path value ../javafx-sdk/lib/shared/javafxrt.jar from /
Applications/NetBeans/NetBeans 6.8.app/Contents/Resources/NetBeans/javafx2/modules/org-netbeans-modules-
javafx-runtime.jar is illegal according to the Java Extension Mechanism: must be relative and not move up directories


and

WARNING [org.netbeans.modules.project.libraries.LibrariesStorage]: LibraryDeclarationHandlerImpl: Cannot
create library: MySQLDriver of unknown type: j2se


java.io.FileNotFoundException: /Users/dgerman/.netbeans-registration/6.8/status.xml (Permission denied)



also:
WARNING [org.netbeans.modules.editor.settings.storage.keybindings.KeyMapsStorage]: Duplicate shortcut 'D-
SPACE' definition; rebound from 'all-completion-show' to 'completion-show' in (Editors/Keybindings/NetBeans/
Defaults/org-netbeans-modules-editor-keybindings.xml).



+++++++++++++++++++++++++++++


Thanks for the suggestion.

"-- double-click the NetBeans 6.8.app" finder shows preview, dock bounces a pretty blue cube a couple of time, then poof!

++++++++++++++++++++++
from command line is much more helpful:  ( I thought I tried that)

sh /Applications/NetBeans/NetBeans\ 6.8.app/Contents/Resources/NetBeans/bin/netbeans
java.io.FileNotFoundException: 

/Users/dgerman/.netbeans/6.8/var/cache/lastModified/all-checksum.txt
                (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at org.netbeans.Stamps.compareAndUpdateFile(Stamps.java:442)
        at org.netbeans.Stamps.stamp(Stamps.java:337)
        at org.netbeans.Stamps.moduleJARs(Stamps.java:294)
        at org.netbeans.Stamps.lastModified(Stamps.java:117)
        at org.netbeans.Archive.<init>(Archive.java:114)
        at org.netbeans.JarClassLoader.initializeCache(JarClassLoader.java:101)
        at org.netbeans.MainImpl$BootClassLoader.run(MainImpl.java:307)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:490)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
Dec 14, 2009 2:07:50 PM org.netbeans.Stamps discardCachesImpl
WARNING: Cannot create 
/Users/dgerman/.netbeans/6.8/.lastModified
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at org.netbeans.Stamps.discardCachesImpl(Stamps.java:266)
        at org.netbeans.Stamps.stamp(Stamps.java:338)
        at org.netbeans.Stamps.moduleJARs(Stamps.java:294)
        at org.netbeans.Stamps.lastModified(Stamps.java:117)
        at org.netbeans.Archive.<init>(Archive.java:114)
        at org.netbeans.JarClassLoader.initializeCache(JarClassLoader.java:101)
        at org.netbeans.MainImpl$BootClassLoader.run(MainImpl.java:307)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:490)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:509)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:509)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:509)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:509)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:509)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
        at org.netbeans.MainImpl.execute(MainImpl.java:197)
        at org.netbeans.MainImpl.main(MainImpl.java:78)
        at org.netbeans.Main.main(Main.java:75)
java.io.FileNotFoundException:

 /Users/dgerman/.netbeans/6.8/var/log/messages.log (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at org.netbeans.core.startup.TopLogging.defaultHandler(TopLogging.java:414)
        at org.netbeans.core.startup.TopLogging.<init>(TopLogging.java:171)
        at org.netbeans.core.startup.TopLogging.initialize(TopLogging.java:207)
        at org.netbeans.core.startup.TopLogging.initialize(TopLogging.java:188)
        at org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:225)
        at org.netbeans.core.startup.Main.start(Main.java:237)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:111)
        at java.lang.Thread.run(Thread.java:613)

Cannot create system directory in 
/Users/dgerman/.netbeans/6.8/config.

/Users/dgerman/.netbeans exists but is owned by root !!
no subdirectories exist.
Comment 3 Yulia Novozhilova 2009-12-15 03:17:57 UTC
It looks like somewhere in the past you run NetBeans with "sudo", so
 ~/.netbeans and ~/.netbeans-registration folders were created by root.
You can either delete them (if you don't need your previous settings and updates) or do:
> sudo chown -R user:user ~/.netbeans
> sudo chown -R user:user ~/.netbeans-registration

After that, please, run NetBeans 6.8.app(should work via double-click) and attach ~/.netbeans/6.8/var/log/messages.log file here. I'll take a look at warnings.

Thanks