在Mac上打开.JAR文件时遇到问题

时间:2018-07-24 09:21:04

标签: java jar executable-jar

我无法在Mac上打开.jar文件。当我双击该文件时,它说它无法打开,并检查控制台中可能的错误消息。我尝试使用以下命令从终端运行它:

> java -jar /Users/BIMMS/Downloads/bimserverjar-1.5.101.jar

我得到以下信息:

> Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.bimserver.starter.Starter.<init>(Starter.java:68)
    at org.bimserver.starter.Starter.main(Starter.java:85)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 2 more
MBP-de-Apple:~ BIMMS$ java -jar /Users/BIMMS/Downloads/bimserverjar-1.5.101.jar 
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.bimserver.starter.Starter.<init>(Starter.java:68)
    at org.bimserver.starter.Starter.main(Starter.java:85)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 2 more

我正在使用MacBook Pro 2012年中的macOS Sierra 10.12.6,并且具有此Java版本

> java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

有人处理过吗? 我从以下位置下载罐子时就知道它已经装好了:

  

https://github.com/opensourceBIM/BIMserver/releases

     

Blockquote

0 个答案:

没有答案