File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Couldn't find java executable wrapper for mac/linux

 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need a wrapper at all?
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Web Start works for all platforms, as far as I know.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Stephan van Hulst
Bartender
Pie
Posts: 4846
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic