This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

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: 5401
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • 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
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!