0

I had Developed Java Application in Windows 7.

And I had made JAR file of that application.

Now I want to convert that File into DMG format which is compatible for MAC Operating System.

Can any one Suggest me steps please?

I tried into terminal But got this errors.

DEVs-MacBook-Proist idev$ java -jar Soul_Spotter.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: idev/soulspotter/Login : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Nirav Dabhi
  • 341
  • 1
  • 7
  • 29

1 Answers1

0

The below link explains the steps. I've also copied the answer which worked for me.

Copied from convert java app to mac installer...dmg

Use "Jar Bundler" in the XCode download from Apple Developer Connection.

http://developer.apple.com/technology/xcode.html

You will need to register for a free account.

Steps: http://www.centerkey.com/mac/java/

Community
  • 1
  • 1
anirudh
  • 4,116
  • 2
  • 20
  • 35