Re: making swing application to launch from desktop




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

  • Compiling in Eclipse (WinXP), trying to run java program on Linux, Serializability
    ... Ok I compile my program in Eclipse, works fine in windows of course ... Then I move the class files into a jar, try to run the jar in Suse ... Windows does java -jar its fine for him. ...
    (comp.os.linux.development.apps)
  • Re: making swing application to launch from desktop
    ... Usually jar files should be linked to javaw.exe. ... 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: jar executable
    ... Well if you are only concerned with WINDOWS then you can associate .jar ... jre path from JAR file it self. ... some of the Java application launchers. ...
    (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: Square Brackets in Java?
    ... Brackets also work for me if I set my emulator codepage correctly. ... We also do all of our Java development on our workstation (Linux, Windows), ... I develop them on my desktop, then ftp the "jar" file to the z ...
    (bit.listserv.ibm-main)