File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mac OS and the fly likes jar to mac os .app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "jar to mac os .app" Watch "jar to mac os .app" New topic
Author

jar to mac os .app

Doua Beri
Ranch Hand

Joined: Sep 24, 2009
Posts: 60
Hi. I saw that are a lot of tools that can convert an executable jar to an exe application. I searched on google and didn't find any tools that can convert jar to mac os .app . Do you know any? Thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10532
    
    9

A properly built jar (with a manifest file containing the Main-Class entry) is self executable and can run on all platforms. Why do you want to go the exe and dmg path?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Doua Beri
Ranch Hand

Joined: Sep 24, 2009
Posts: 60
Maneesh Godbole wrote:A properly built jar (with a manifest file containing the Main-Class entry) is self executable and can run on all platforms. Why do you want to go the exe and dmg path?


yes I know. I made .exe from jar because it is much more easy for my customers to run the program. ( i embedded the virtual machine in the exe) I want to do the same thing for mac, but I didn't find any software that can do this.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
I don't think it's possible to embed an installable JRE on OS X. But all versions of OS X already have Java installed, so this shouldn't be necessary to begin with.
Doua Beri
Ranch Hand

Joined: Sep 24, 2009
Posts: 60
Ulf Dittmer wrote:I don't think it's possible to embed an installable JRE on OS X. But all versions of OS X already have Java installed, so this shouldn't be necessary to begin with.


ok. but can I make an executable jar to an .app in the same way I make a jar to an exe for windows os ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
Yes, the OS X Developer Tools contain an application called "Jar Bundler" for this purpose, and there's a project called "jarbundler" on SourceForge that wraps an Ant task around that functionality.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar to mac os .app