Re: Open Web Browser and pass URL with Query string
I develop console application that Open Web Browser and pass URL with
My code is as below:
This few lines of code is a very fragile way to try and find the
default browser - there are probably better alternatives.
pre 1.6 Desktop application BrowserLauncher2
As an aside - I put the couple of lines of the URL
and params together through the JWS showDocument
method* and it retained the params. Of course it was
a 404 here - but that is not the point.
Note that web start is not suited to pure console
applications, so I expect you will be better looking
OTOH, opening a browser from within a console app.
seems a little suspicious in the first place..
Is this code expected to work in a 'headless' environment?
(Something like a server that supports *no* GUIs at all).
Message posted via JavaKB.com