Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on NetBeans failure to start



Gary Nunes wrote:

The new user account will not run NetBeans from the Terminal (using the
command open "/Applications/NetBeans/NetBeans 6.1.app") either. I tried with
the account initially set as Standard and then as an Administrator.

This result strongly suggests that something added to the shell profile for your regular account is causing NetBeans to work when launched from the Terminal command-line. A new account has no bash .profile (or any other shell setup) beyond any shared defaults.


In other words, the default outcome is for NetBeans to crash, for some reason, and something in your shell profile is causing it to not crash.

Since you already noted there isn't a /Users/gnunes/.MacOSX/ environment.plist file, that leaves only the shell profile.

Bash may read any of:
  ~/.bash_profile
  ~/.bash_login
  ~/.profile

It may also read files designated by $ENV or $BASH_ENV.

For details, read the "INVOCATION" section of the bash man page.

http://developer.apple.com/documentation/Darwin/Reference/ManPages/ man1/bash.1.html


You can use the 'env' command to disable the current shell environment for a command. Read the man page for env for details.


You can also execute commands with specific env-var overrides.

pathx=`sysctl -n user.cs_path`;
PATH="$pathx" open "/Applications/NetBeans/NetBeans 6.1.app"

I recommend setting suspected variables to either empty or defaults, one by one, and when the command-line fails to launch NetBeans, then that's the significant one.

  -- GG







Subject: Re: More on NetBeans failure to start
From: Gary Nunes <email@hidden>
Date: Sun, 28 Sep 2008 12:09:41 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
Thread-index: AckhncJKALpuxI2REd2BKwAfW+fksw==
Thread-topic: More on NetBeans failure to start
User-agent: Microsoft-Entourage/11.4.0.080122


Mike Swingler wrote (9/27/08 11:38 AM): > > ... > Quick sanity check - have you done the following: > ... > 2) Logged into a clean new user account to reproduce this issue. > ...

Mike,

Additional info regarding the results of (2):

The new user account will not run NetBeans from the Terminal (using the
command open "/Applications/NetBeans/NetBeans 6.1.app") either. I tried with
the account initially set as Standard and then as an Administrator.


The crash log is similar to that generated when trying a Finder launch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.