Linux上new IdvServer 时出错

出错的代码:

val unidataDir = "/home/idv/unidata/idv/DefaultIdv"
  val idvSvr = new IdvServer(new File(unidataDir))

错误报告:

> run
[info] Running barnes.IDVServer
[error] (run-main-1) java.lang.NoClassDefFoundError: Could not initialize class javax.swing.RepaintManager
java.lang.NoClassDefFoundError: Could not initialize class javax.swing.RepaintManager
    at javax.swing.JComponent.repaint(JComponent.java:4793)
    at java.awt.Component.repaint(Component.java:3297)
    at javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1807)
    at javax.swing.text.JTextComponent.<init>(JTextComponent.java:319)
    at javax.swing.JTextArea.<init>(JTextArea.java:204)
    at javax.swing.JTextArea.<init>(JTextArea.java:164)
    at ucar.unidata.util.LogUtil.checkConsole(LogUtil.java:690)
    at ucar.unidata.util.LogUtil.consoleMessage(LogUtil.java:702)
    at ucar.unidata.util.LogUtil.printException(LogUtil.java:897)
    at ucar.unidata.util.LogUtil.printException(LogUtil.java:817)
    at ucar.unidata.idv.IntegratedDataViewer.logException(IntegratedDataViewer.java:3072)
    at ucar.unidata.idv.IntegratedDataViewer.<init>(IntegratedDataViewer.java:310)
    at ucar.unidata.idv.IdvServer$MyIdv.<init>(IdvServer.java:133)
    at ucar.unidata.idv.IdvServer.<init>(IdvServer.java:57)
    at barnes.IDVServer$.<init>(IDVServer.scala:16)
    at barnes.IDVServer$.<clinit>(IDVServer.scala)
    at barnes.IDVServer.main(IDVServer.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
[trace] Stack trace suppressed: run last compile:run for the full output.
java.lang.RuntimeException: Nonzero exit code: 1
    at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) Nonzero exit code: 1
[error] Total time: 0 s, completed 2014-10-11 19:33:18

错误原因:

初步猜测是unidataDir中包含的内容不对,下一步需要验证


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值