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 172573 - After "successful" installation, netbeans won't run
Summary: After "successful" installation, netbeans won't run
Status: RESOLVED WORKSFORME
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P4 blocker (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 14:34 UTC by camarillocarlos
Modified: 2010-08-09 19:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
I ran this using the terminal (under MacOsX folder) (5.40 KB, text/plain)
2009-09-18 18:10 UTC, camarillocarlos
Details
This are the logs that were created during installation (10.36 KB, text/plain)
2009-09-18 18:15 UTC, camarillocarlos
Details
ls -la ~/.netbeans command (2.38 KB, text/plain)
2009-09-25 00:55 UTC, camarillocarlos
Details
ls -la ~/.netbeans (554 bytes, text/plain)
2009-09-25 00:56 UTC, camarillocarlos
Details
Terminal Code that you gave me. (797 bytes, text/plain)
2009-09-28 18:28 UTC, camarillocarlos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description camarillocarlos 2009-09-18 14:34:31 UTC
Hi, I installed Netbeans 6.7.1 last night (the version with all of the features) and after installation I tried to use
netbeans but it didn't run. The icon just started bouncing on the dock but after 7 seconds it stopped. I checked the
console and there was a message that said that it could not write/access the directory. I am using Snow Leopard 10.6.1
on a mid-2008 macbook with 2GB of RAM and a 2.4Ghz Intel Core 2 Duo. I also looked at the Java settings and I have Java
6 (64 and 32 bit). 

Thanks for your time.
Comment 1 Yulia Novozhilova 2009-09-18 15:53:13 UTC
Hi, 
Could you please copy-paste the message. What directory NetBeans couldn't access?
Please, also attach install log file (/var/log/install.log).
Comment 2 camarillocarlos 2009-09-18 18:10:57 UTC
Created attachment 87929 [details]
I ran this using the terminal (under MacOsX folder)
Comment 3 camarillocarlos 2009-09-18 18:15:40 UTC
Created attachment 87932 [details]
This are the logs that were created during installation
Comment 4 camarillocarlos 2009-09-18 18:47:09 UTC
sorry to add a new comment, but I created a guest account and tried running netbeans there and it worked. What can I do
so it can work on my account?
Comment 5 Yulia Novozhilova 2009-09-21 13:13:54 UTC
It looks like ~/.netbeans or ~/.netbeans/6.7 folder has wrong permissions. Could you, please, write here the result of 
>ls -la ~ 
(I'm interested in ".netbeans" row)
 and 
>ls -la ~/.netbeans
Comment 6 camarillocarlos 2009-09-21 18:37:56 UTC
and how do I get those? I ran that on terminal and this is what I got: 
Last login: Mon Sep 21 12:29:10 on console
Carloss-MacBook:~ Carlos$ >ls -la~/.netbeans
-bash: -la~/.netbeans: No such file or directory.

I don't think netbeans created the file on my directory but I'm not sure.
Comment 7 Yulia Novozhilova 2009-09-22 09:49:42 UTC
You did everything correctly but missed a space after "ls -la".
The command should be "ls -la  ~"  and "ls -la  ~/.netbeans".
NetBeans creates a folder ".netbeans" in your home directory when starts and it looks like the problem is in the
permissions of this folder.
Comment 8 camarillocarlos 2009-09-23 18:32:54 UTC
Ok, so I ran it again and this is what I got: 
Carloss-MacBook:~ Carlos$ >ls-la ~/.netbeans
-bash: /Users/Carlos/.netbeans: is a directory
Carloss-MacBook:~ Carlos$ 

How can I fix the directory/folder issue? because it runs fine on a guest account.
Comment 9 Yulia Novozhilova 2009-09-24 12:57:15 UTC
You missed the space again:( 
How to fix folder issue? You have several options:

1. Delete ~/.netbeans folder. 
You can do this by typing "rm    -rf    ~/.netbeans" in terminal. (Or "sudo  rm    -rf    ~/.netbeans").
In this case you'll lose all NetBeans's configuration data you had before.
(You can read more here: http://wiki.netbeans.org/FaqWhatIsUserdir)

2. Give me the result of the commands: 
>ls    -la    ~
>ls    -la   ~/.netbeans

After that I'll give you further instructions.
Comment 10 camarillocarlos 2009-09-25 00:55:53 UTC
Created attachment 88320 [details]
ls -la ~/.netbeans command
Comment 11 camarillocarlos 2009-09-25 00:56:36 UTC
Created attachment 88321 [details]
ls -la ~/.netbeans
Comment 12 Yulia Novozhilova 2009-09-25 09:44:22 UTC
It is very strange but some folders are under root:admin IDs in your home dir. ".netbeans" is one of them, so you have
the problem.
To fix it, please use the following command (in terminal):
> sudo  chown  -R  -v  Carlos:staff   /Users/Carlos/.netbeans

But I suggest to change IDs for all files in your home directory by the following command:
> sudo  chown  -R  Carlos:staff    /Users/Carlos
Comment 13 camarillocarlos 2009-09-28 18:28:56 UTC
Created attachment 88445 [details]
Terminal Code that you gave me.
Comment 14 camarillocarlos 2009-10-01 15:06:10 UTC
Ok, so I keep trying and trying and It just doesn't work. I've tried it millions of times and It won't let me change the
setting, and it's frustrating because I need to use the software for school.
Thank you for your time.
Comment 15 Yulia Novozhilova 2009-10-05 15:28:58 UTC
Who installed NetBeans on your computer?
Do you know administrator password?
When you type 
> sudo  chown  -R  -v  Carlos:staff   /Users/Carlos/.netbeans
you will be asked to enter this password. 

You can also try to use another account(administrator, guest, etc) to type above command. 
Comment 16 dlipin 2010-08-09 19:14:04 UTC
We haven't heard from reporter for a long time and were not able to reproduce the issue in our environment. Closing the issue as worksforme.

camarillocarlos, feel free to reopen if you still experience this issue, and provide requested information. Thanks.