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 196430

Summary: Using GREP_OPTIONS can prevent NetBeans 6.9x from starting
Product: platform Reporter: mbiggerstaff7
Component: Launchers&CLIAssignee: Libor Fischmeistr <lfischmeistr>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.
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 ***