0

我正在尝试从https://github.com/christopher-beckham/weka-pyscript安装 pyScriptClassifier,但是当我运行时(此步骤之前的一切都运行良好)(Mac OS X 10.11.6)

ant make_package -Dpackage=pyScript

有时候是这样的

...
[javac]     @OptionMetadata(
[javac]      ^
[javac]   symbol:   class OptionMetadata
[javac]   location: class PyScriptFilter
[javac] /Users/eduardoandrade/Desktop/weka-pyscript/src/main/java/weka/filters/pyscript/PyScriptFilter.java:127: error: cannot find symbol
[javac]     @OptionMetadata(
[javac]      ^
[javac]   symbol:   class OptionMetadata
[javac]   location: class PyScriptFilter
[javac] /Users/eduardoandrade/Desktop/weka-pyscript/src/main/java/weka/classifiers/pyscript/PyScriptClassifier.java:209: error: method does not override or implement a method from a supertype
[javac]     @Override
[javac]     ^
[javac] /Users/eduardoandrade/Desktop/weka-pyscript/src/main/java/weka/classifiers/pyscript/PyScriptClassifier.java:214: error: method does not override or implement a method from a supertype
[javac]     @Override
[javac]     ^
[javac] /Users/eduardoandrade/Desktop/weka-pyscript/src/main/java/weka/classifiers/pyscript/PyScriptClassifier.java:429: warning: [cast] redundant cast to <any>
[javac]                 (List<Object>) m_session.getVariableValueFromPythonAsJson("preds", getDebug());
[javac]                 ^
[javac] /Users/eduardoandrade/Desktop/weka-pyscript/src/main/java/weka/classifiers/pyscript/PyScriptClassifier.java:434: warning: [unchecked] unchecked cast
[javac]                 List<Double> probsForThisInstance = (List<Double>) vector;
[javac]                                                                    ^
[javac]   required: List<Double>
[javac]   found:    Object

BUILD FAILED
/Users/eduardoandrade/Desktop/weka-pyscript/build.xml:62: Compile failed; see the compiler error output for details.

命令

javac -version

返回

javac 1.8.0_73

我的 env JAVA_HOME 变量似乎没问题。有什么建议么?谢谢你。

编辑:

构建.xml

    <!-- Compile the java code from ${src}/weka into ${build}/classes -->
  <target name="compile" depends="init_compile" 
   description="Compile package and deposit class files in build/classes">
    <javac sourcepath="" srcdir="${src}"
      fork="yes" memoryMaximumSize="${javac_max_memory}"
      destdir="${build}/classes"
      optimize="${optimization}"
      debug="${debug}"
      deprecation="${deprecation}"
      source="1.6" target="1.6">
4

0 回答 0