不能在 Apache nutch 2.3 中运行 ant 运行时
Cannot ant runtime in Apache nutch 2.3
我遵循了本教程 https://wiki.apache.org/nutch/Nutch2Tutorial。当我尝试 运行
ant runtime
我收到了这条消息
BUILD FAILED
/usr/local/nutch/framework/apache-nutch-2.3/build.xml:113: The following error occurred while executing this line:
/usr/local/nutch/framework/apache-nutch-2.3/src/plugin/build.xml:35: The following error occurred while executing this line:
/usr/local/nutch/framework/apache-nutch-2.3/src/plugin/build-plugin.xml:117: Compile failed; see the compiler error output for details.
这是 build-plugin.xml
中的第 117 行
deprecation="${javac.deprecation}"
我该如何解决?
我终于解决了这个问题。它只需要 Java 7. 所以我 运行
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo update-alternatives --config java
得到这样的路径
/usr/lib/jvm/java-7-openjdk-amd64
运行
sudo pico /etc/environment
设置Java主文件夹路径
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
最后 运行
source /etc/environment
我遵循了本教程 https://wiki.apache.org/nutch/Nutch2Tutorial。当我尝试 运行
ant runtime
我收到了这条消息
BUILD FAILED
/usr/local/nutch/framework/apache-nutch-2.3/build.xml:113: The following error occurred while executing this line:
/usr/local/nutch/framework/apache-nutch-2.3/src/plugin/build.xml:35: The following error occurred while executing this line:
/usr/local/nutch/framework/apache-nutch-2.3/src/plugin/build-plugin.xml:117: Compile failed; see the compiler error output for details.
这是 build-plugin.xml
中的第 117 行deprecation="${javac.deprecation}"
我该如何解决?
我终于解决了这个问题。它只需要 Java 7. 所以我 运行
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo update-alternatives --config java
得到这样的路径
/usr/lib/jvm/java-7-openjdk-amd64
运行
sudo pico /etc/environment
设置Java主文件夹路径
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
最后 运行
source /etc/environment