需要帮助在Mac上运行.jar

时间:2016-08-26 20:57:37

标签: java

我做了一个小Java jar我想能够在Mac上运行。 这是我在mac上遇到的控制台错误(它的旧版本:Java 6,Osx 10.6)。



8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]	Exception in thread "main" 
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]	java.lang.UnsupportedClassVersionError: SortingMachineColumns : Unsupported major.minor version 52.0
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.ClassLoader.defineClass1(Native Method)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.security.AccessController.doPrivileged(Native Method)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.Class.forName0(Native Method)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at java.lang.Class.forName(Class.java:249)
8/26/16 3:49:23 PM	[0x0-0x21021].com.apple.JarLauncher[257]		at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)




然后我想:我怎么能把它变成一个mac应用程序?我无法做到这一点:我尝试了this,但我根本不了解ANT相关内容。我试过这个,但是git一直在回来

  

/ usr / bin / jar2app:第1行:jar2app.py:未找到命令

所以我的问题是:我怎样才能让这个罐子运行?或者我如何将其变成一个应用程序?

谢谢! 编辑:我改变编译器使用1.6。我在控制台上收到了相同的错误消息;仍然没有工作。

0 个答案:

没有答案