• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Distribution of application  RSS feed

 
Ranch Hand
Posts: 70
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a simple Java application and now want to distribute it to other mac users.

I am using Java 8.1 along with netbeans.

I want to create a dmg file for distribution. I want to be able to add a icon to the file. There is a text file that should also go along with the jar file. I have a jar file created and it works.

Any tutorials or help would be appreciated.

Thanks
Roger

 
Saloon Keeper
Posts: 5288
143
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See "How do bundle my Java application so that it looks like a native OS X application?" in https://coderanch.com/wiki/660021/Mac-OS-FAQ. There's an Ant task for creating a Mac-friendly jar file including icon etc., as well as Ant code for creating a disk image.

You might also want to check out the Mac OS X Adapter linked on that page to make the app (rather than the jar file) more Mac-like.
 
Roger Wells
Ranch Hand
Posts: 70
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I thought the hardest part was the coding.

Thanks for the links. It seemed to me that most of that was pretty old. I did find one link recent http://centerkey.com/mac/java/ but it uses command line.

Additional questions.

Do I need to be using Java SE? I am currently using Java EE 8.1.

Where do I find the javapackager?

Thanks
Roger
 
Roger Wells
Ranch Hand
Posts: 70
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the answer..

In netbeans right click on the project
Select Package as and the select the DMG Image.

This creates disk image which can be sent to others

They can then move the icon to the application folder or wherever and runt the app

Kinda easy when you find the right buttons to push.

Thanks for help

Roger
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!