• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Couldn't find java executable wrapper for mac/linux

 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

Do you know tools/methods for generating a wrapper for a jar on mac/linux? I have been searching for a while without desired results.
For Windows, I can use Launch4J or JSmooth, they are pretty good but only for Bill Gates' OS.

Thanks.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you need a wrapper at all?
 
Nam Ha Minh
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Why do you need a wrapper at all?


I mean a native program that wraps a Java executable jar, it can have a nice icon and can be double clicked to launch. Although an executable jar can be launched by double clicking, that behavior isn't always true on target platforms. I see lot of users complaint that they cannot open jar file on their computer.
 
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nam Ha Minh wrote:

Campbell Ritchie wrote:Why do you need a wrapper at all?


I mean a native program that wraps a Java executable jar, it can have a nice icon and can be double clicked to launch. Although an executable jar can be launched by double clicking, that behavior isn't always true on target platforms. I see lot of users complaint that they cannot open jar file on their computer.


yes I understand why you are taking an effort to make a wrapper , last time I had also done the similar stuff , for that I have not used a ready made tool instead I had used .net platform (vb.net ) and I had compile it down to machine code the program contains nice icon for launcher and just double clicking on it launches the *.jar from a fixed location in my case it was my home dir.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Web Start works for all platforms, as far as I know.
 
Nam Ha Minh
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

naved momin wrote:
yes I understand why you are taking an effort to make a wrapper , last time I had also done the similar stuff , for that I have not used a ready made tool instead I had used .net platform (vb.net ) and I had compile it down to machine code the program contains nice icon for launcher and just double clicking on it launches the *.jar from a fixed location in my case it was my home dir.



Thanks for replying. I am considering to write custom code as well (C#). How about embed the jar file in the exe and extract it after the exe is launched?
 
Nam Ha Minh
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:Java Web Start works for all platforms, as far as I know.


Yes, but user has to download the files. I deliver a desktop app as an executable jar for client.
 
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's wrong with a shortcut? Shortcuts can have nice icons, and they can be set to invoke the JVM on a Jar file, so this should work even if the OS doesn't have an associated program with Jar files.
 
Nam Ha Minh
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:What's wrong with a shortcut? Shortcuts can have nice icons, and they can be set to invoke the JVM on a Jar file, so this should work even if the OS doesn't have an associated program with Jar files.



Well, the problem is, we want to deliver only a single executable for the client. There should be only one file to launch the program. Also, user doesn't have to extract a zipped file. The key point is we want to provide a way to start a program as simply as possible. Any other ideas?
 
reply
    Bookmark Topic Watch Topic
  • New Topic