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 変数は問題ないようです。助言がありますか?ありがとうございました。

編集:

build.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