Re: launching application in Windows without DOScommandwindow

"Joe Sam Shirah" <[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <00bc01c5b54b$8df7d050$2d30410c@savaj001>
    Hi Hugh,

    I hate half..., um, half-way answers, especially when they are from me.
For some background on the javaw issue, see:

Exec'ed process with javaw on Windows opens a cosole window
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4244515

    For whatever reason, the minds at Sun have not resolved it.  About the
best you can do with javaw is to have a batch ( .bat ) file with this line
in it:

start /b javaw ClassYouWantToRun

*THEN*

in the shortcut properties, select

Run    Minimized


    You will still see a brief *minimized* DOS window on the taskbar (
unless you use Auto Hide ), but that's usually much more acceptable than the
window staying up or flashing, which is the behavior of most other methods.
Sorry I didn't go through the steps in the first place,  mea maxima culpa.
HTH,


                                                         Joe Sam

Joe Sam Shirah -        http://www.conceptgo.com
conceptGO       -        Consulting/Development/Outsourcing
Java Filter Forum:       http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?    http://www.jguru.com/faq/I18N
Que Java400?            http://www.jguru.com/faq/Java400


----- Original Message ----- 
From: "Hugh Allen" <[email protected]>
To: <[email protected]>
Sent: Friday, September 09, 2005 7:00 AM
Subject: Re: [Juglist] launching application in Windows without
DOScommandwindow


> When I run javaw from a shortcut, I still get a DOS window.
>
> However, it does not contain System.out output that I see with java from a
shortcut.
>
> All I am able to do is minimize the DOS window while running.
>
> Hugh
>
> At 02:58 AM 9/9/2005, you wrote:
>
>
> >    Hi Rich,
> >
> >    You can go through the jar or Web Start business if you want or need
(
> >and there may be good reasons to do so, ) but to just lose the DOS
window,
> >
> >javaw
> >
> >is the ticket, just as Phil suggested.
> >
> >
> >                                                         Joe Sam
> >
> >Joe Sam Shirah -        http://www.conceptgo.com
> >conceptGO       -        Consulting/Development/Outsourcing
> >Java Filter Forum:       http://www.ibm.com/developerworks/java/
> >Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
> >Going International?    http://www.jguru.com/faq/I18N
> >Que Java400?            http://www.jguru.com/faq/Java400
> >
> >
> >----- Original Message ----- 
> >From: "Richard O. Hammer" <[email protected]>
> >To: "Java Users Group" <[email protected]>
> >Sent: Thursday, September 08, 2005 9:11 PM
> >Subject: [Juglist] launching application in Windows without DOS
> >commandwindow
> >
> >
> >> Is there an easy way to launch a Java Swing application in Windows 2000
> >> without opening a DOS command window?
> >>
> >> I know that I can make a .bat file containing "java ClassName" and then
> >> double click on the file name, or create a shortcut to the .bat file,
> >> but that always seems to open the command window which stays open as
> >> long as the application is running.
> >>
> >> My Googling has found Java Web Start, a lot about Java Web Start.  I've
> >> started looking at that and it looks like probably it would be easier
to
> >> learn to use Java Web Start for my "hello world" application than it
> >> would be to get a Masters degree.
> >>
> >> But I still imagine that it can be easy.  I am not concerned about
> >> security.  I am not loading anything over the net.  I just want to
start
> >> my local application with no more hassle than starting Notepad.
> >>
> >> Can I create a Windows shortcut that says something like
> >> java -classpath path1;path2 MyClass
> >> to the Windows OS, without opening a command window?
> >>
> >> Thanks,
> >> Rich Hammer
> >>
> >
> >
> >_______________________________________________
> >Juglist mailing list
> >[email protected]
> >http://trijug.org/mailman/listinfo/juglist_trijug.org
> >
> >
> >
> >-- 
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 9/7/2005
>
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 9/7/2005
>
>
>
> _______________________________________________
> Juglist mailing list
> [email protected]
> http://trijug.org/mailman/listinfo/juglist_trijug.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.