• 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 5132
135
  • 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
 
I am a man of mystery. Mostly because of this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!