Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 196430 - Using GREP_OPTIONS can prevent NetBeans 6.9x from starting
Using GREP_OPTIONS can prevent NetBeans 6.9x from starting
Status: RESOLVED DUPLICATE of bug 109021
Product: platform
Classification: Unclassified
Component: Launchers&CLI
PC Linux
: P4 (vote)
Assigned To: Libor Fischmeistr
Depends on:
  Show dependency treegraph
Reported: 2011-03-08 09:29 UTC by mbiggerstaff7
Modified: 2014-04-24 09:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT


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:

   /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.
Comment 3 Twister 2014-04-24 09:27:53 UTC
Still true in 8.0!

*** This bug has been marked as a duplicate of bug 109021 ***

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