Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar to mac os .app

 
Doua Beri
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Doua Beri
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic