Re: making swing application to launch from desktop



Then the JRE was not installed properly. Usually jar files should be linked to javaw.exe (in the registry). If you are seeing a console, they are opened using java.exe

Thomas


gwlucas07@xxxxxxxxxxx wrote on 31.10.2008 19:02:
Thanks. I've been trying to do something like this (with the main
class
indicated in the Manifest within the jar), but at start up either Java
or Windows creates a console window which I'd prefer not to be seen.
Is there a setting I can use to suppress this?

G.

On Oct 31, 1:36 pm, RedGrittyBrick <RedGrittyBr...@xxxxxxxxxxxxxxxxx>
wrote:
gwluca...@xxxxxxxxxxx wrote:
I been looking into ways of making a Swing application act like a
conventional program under windows. I'd like the user to launch the
thing by double clicking an icon on the desktop, see it on his start
window, etc. I'd also like it to run without opening up a console
window when it does. In other words, the user should neither care no
know that he is running a Java application rather than anything else.
As a bonus, I'd also like to be able to do the same thing under Linux
and Mac's
Anyway, I'm not having much luck with web searches (I guess I haven't
thought of the right keywords). Can anyone offer some pointers on how
to do this?
* Create a suitable jar file. Copy to user's PC.

* Make sure the PC has JRE installed in the normal way.
* On the desktop & start-menu, create a shortcut to the jar.

Doing the last two steps ought to be doable by any reasonably IT-aware
person. There are many commercial and free installers that can be used
to produce Windows executable install files that do all or some of the
above for the end user.

--
RGB

.



Relevant Pages

  • Re: making swing application to launch from desktop
    ... indicated in the Manifest within the jar), but at start up either Java ... or Windows creates a console window which I'd prefer not to be seen. ... Create a suitable jar file. ... There are many commercial and free installers that can be used ...
    (comp.lang.java.programmer)
  • Re: making swing application to launch from desktop
    ... indicated in the Manifest within the jar), but at start up either Java ... or Windows creates a console window which I'd prefer not to be seen. ... There are many commercial and free installers that can be used ...
    (comp.lang.java.programmer)
  • Re: More on apps, shelf space
    ... some Windows fan argues that regular users will never ... Installers will only ... I know you can nest bundles. ... application package and discovered there through a Spotlight query. ...
    (comp.sys.mac.advocacy)
  • Re: Python Extension Building Network
    ... I'm guessing your main focus is building .exe installers for Windows users. ... If it's just installers of pure Python code, why the extra effort of using both VS and MingW? ... Both responsibilities should fall on the shoulders of the module authors, though I guess experienced volunteers can help out with the former. ...
    (comp.lang.python)
  • Re: Python too complex ?!?!?!
    ... installers - a days work of course prep would take care of the ... not-so-obscure modules that don't have a Windows installer available ... This is a comp sci course, not a "how to sysadmin a Python ... Download the binary installer, ...
    (comp.lang.python)