【发布时间】:2016-07-05 13:55:01
【问题描述】:
我在 Windows 8.1 中使用带有 maven 插件的 eclipse luna。我已经通过运行 create_Jni.bat 在 xgboost4j/src/main/resources/lib/xgboost4j.dll 中放置了 xgboost4j.dll(重命名 libxgboost.dll,它是通过在 xgboost 文件夹中运行“make”产生的)。当我在示例包中运行 BasicWalkThrough.java 时,它会输出以下错误
Exception in thread "main" java.lang.UnsatisfiedLinkError:ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Ljava/lang/String;I[J)I
at ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Native Method)
at ml.dmlc.xgboost4j.java.DMatrix.(DMatrix.java:83)
at ml.dmlc.xgboost4j.java.example.BasicWalkThrough.main(BasicWalkThrough.java:52)
请让我知道我做错了什么。
提前致谢。
【问题讨论】:
-
嘿...我在 Windows 7 中遇到了同样的问题。您有什么解决方案吗?