Bug 196430 - Using GREP_OPTIONS can prevent NetBeans 6.9x from starting
Using GREP_OPTIONS can prevent NetBeans 6.9x from starting
Status: NEW
Product: platform
Classification: Unclassified
Component: Launchers&CLI
6.x
PC Linux
: P4 (vote)
: TBD
Assigned To: Libor Fischmeistr
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-08 09:29 UTC by mbiggerstaff7
Modified: 2014-02-10 14:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mbiggerstaff7 2011-03-08 09:29:32 UTC
** Version Details:

Fedora 14 fully updated
Netbeans 6.9 fully updated from Fedora Repository


** Short Description:

Netbeans silently fails to start because of "unrelated" environmental setting.


** Long Description:

Under Fedora 14 Linux, I have a ~/.bashrc file which contains the following line:

  export GREP_OPTIONS="--color -In --exclude-dir=.svn --exclude=*.html"

Note: this environmental setting (most notably the "-n" in "-In") affects the grep results presentation.

When this line is set in the ~/.bashrc file, it is active for applications launched either from a desktop environment (Gnome) or from terminal environment (gnome-terminal.)

When this option is set and a request to start netbeans occurs, from the UI briefly an application task is registered and then disappears.  From a terminal, it reports:

   $netbeans 
   /bin/bash: : No such file or directory


** Steps to reproduce:

1) in ~/.basrc, append:
   export GREP_OPTIONS="--color -In --exclude-dir=.svn --exclude=*.html"
2) start netbeans
3) Error: netbeans fails to start


** Solution:

In script /usr/bin/netbeans, in function launchNbexec(), at or near line 173
Change line from: nbexec=`grep -v "^#" ...etc
To              : nbexec=`export GREP_OPTIONS=; grep -v "^#" ...etc
Comment 1 mbiggerstaff7 2011-03-08 09:38:59 UTC
The proposed solution apparently only fixes the terminal-launched netbeans problem.  Launched from the desktop, the UI does launch but I only get what appears to be some of the Netbeans GUI components to load (basic application and not a Java dev. environment.)
Comment 2 Jiri Rechtacek 2012-02-16 16:57:20 UTC
Assigned to new owner.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo