2

我正在尝试使用 sbt 2.13 编译 scala 微风库(0.9 版)。我收到以下错误:

[info] Loading project definition from C:\scala\breeze-releases-v0.9\project

[info] Set current project to breeze-parent (in build file:/C:/scala/breeze-releases-v0.9/)

[info] Compiling 280 Scala sources to C:\scala\breeze-releases-v0.9\math\target\scala-2.11\classes...

[error] C:\scala\breeze-releases-v0.9\math\src\main\scala\breeze\util\HeapDump.scala:5: object management is not a member of package com.sun

[error] import com.sun.management.HotSpotDiagnosticMXBean

[error] C:\scala\breeze-releases-v0.9\math\src\main\scala\breeze\util\HeapDump.scala:21: not found: type HotSpotDiagnosticMXBean

[error]   private lazy val hotspotMBean: HotSpotDiagnosticMXBean = getHotspotMBean();

[error] C:\scala\breeze-releases-v0.9\math\src\main\scala\breeze\util\HeapDump.scala:38: not found: type HotSpotDiagnosticMXBean

[error]   private def getHotspotMBean():HotSpotDiagnosticMXBean = {

[error] C:\scala\breeze-releases-v0.9\math\src\main\scala\breeze\util\HeapDump.scala:42: not found: type HotSpotDiagnosticMXBean

[error]         HOTSPOT_BEAN_NAME, classOf[HotSpotDiagnosticMXBean]);

[error] four errors found

我在 java sdk 1.7.0_02

我该怎么办?

谢谢,

麦克风

4

1 回答 1

1

我在 Breeze 的邮件列表中回答了这个问题,但这是因为您使用的是非 HotSpot VM。我将在 Breeze 的下一个版本中删除这个类。

于 2014-10-06T19:05:14.520 回答