Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#266 Turn Off Console Windows When Launching GUI

closed-works-for-me
William Pugh
GUI2 (15)
5
2012-07-02
2012-03-22
BrianJester
No

Consider turning off the console window when launching the FindBugs GUI. To implement this, change bin/findbugs.bat launcher line from this:

set launcher=java.exe

To this:

set launcher=javaw.exe

Discussion

  • Keith Lea
    Keith Lea
    2012-03-25

    • assigned_to: nobody --> kano
    • labels: --> GUI2
    • status: open --> pending
     
  • Keith Lea
    Keith Lea
    2012-03-25

    Hmm, sometimes FindBugs doesn't launch the UI - it just shows text in the console. Would this negatively impact users? Should we have findbugs.bat and findbugsw.bat?

     
  • BrianJester
    BrianJester
    2012-03-25

    The findbugs.bat by default uses java.exe, whereas it does have a "-gui" parameter that will select javaw.exe and a "-textui" parameter that will choose java.exe. I just think that since Microsoft Windows default behavior is not console but Window, so therefore javaw.exe might be a more natural default behavior. The user can still launch it as "findbugs.bat -textui" if they want the console to open as well, but in general it's not needed or desired since MS Windows by default has the windowing environment enabled. The only time I haven't seen the windowing environment enabled in MS Windows is when a MS Windows machine is booted into MS-DOS.

     
  • BrianJester
    BrianJester
    2012-03-25

    • status: pending --> open
     
  • David Johle
    David Johle
    2012-05-15

    I think most Windows users that launch the findbugs GUI would create their own shortcut to the batch file and place that within the start menu, a toolbar, on desktop, etc.

    I use a shortcut on quick launch, and that calls the findbugs.bat with the -gui parameter, which prevents the extra console window. Works for me.

     
  • William Pugh
    William Pugh
    2012-07-02

    Already done if findbugs is started with findbugs.bat -gui

     
  • William Pugh
    William Pugh
    2012-07-02

    • assigned_to: kano --> wpugh
    • status: open --> closed-works-for-me