Java Heritrix 3.2.0 can';找不到文件并赢得';不执行
我正在尝试使用Heritrix 3.2.0,并遵循提供的步骤和。但每次我尝试执行以下命令时:Java Heritrix 3.2.0 can';找不到文件并赢得';不执行,java,heritrix,Java,Heritrix,我正在尝试使用Heritrix 3.2.0,并遵循提供的步骤和。但每次我尝试执行以下命令时: $HERITRIX_HOME/bin/heritrix --help $HERITRIX_HOME/bin/heritrix --webui-admin PASSWORD 我总是会遇到同样的错误: ls: not possible to access 'heritrix-3.2.0/lib/*.jar': File or directory not found. heritrix-3.2.0/
$HERITRIX_HOME/bin/heritrix --help
$HERITRIX_HOME/bin/heritrix --webui-admin PASSWORD
我总是会遇到同样的错误:
ls: not possible to access 'heritrix-3.2.0/lib/*.jar': File or directory not found.
heritrix-3.2.0/bin/heritrix: line 126: heritrix-3.2.0/heritrix_out.log: File or directory not found
heritrix-3.2.0/bin/heritrix: line 127: heritrix-3.2.0/heritrix_out.log: File or directory not found
heritrix-3.2.0/bin/heritrix: line 128: heritrix-3.2.0/heritrix_out.log: File or directory not found
heritrix-3.2.0/bin/heritrix: line 129: heritrix-3.2.0/heritrix_out.log: File or directory not found
heritrix-3.2.0/bin/heritrix: line 130: heritrix-3.2.0/heritrix_out.log: File or directory not found
Qua Nov 8 00:18:07 BRST 2017 Heritrix starting (pid 6720)heritrix-3.2.0/bin/heritrix: line 140: heritrix-3.2.0/heritrix_out.log: File or directory not found
ERROR: JVM terminated without running Heritrix.
This could be due to invalid JAVA_OPTS or JMX_PORT, etc.
See heritrix_out.log for more details.
Here are its last three lines:
尾部:无法打开“heritrix-3.2.0/heritrix_out.log”进行读取。未找到文件或目录
我没有安装所需的java
,例如:java-version
不返回任何内容,但我下载并解压缩了jre-8u151-linux-x64
,并将此文件夹设置为$java\u HOME
。这可能是问题所在吗
事实上,提取的3.2.0版本
并没有附带heritrix_out.log
文件,只有3.1.0版本(最初有效,现在不再有效)。我试图将该文件从3.1文件夹复制到3.2文件夹,但仍然存在相同的错误
3.1.0文件夹中的日志文件:
Ter Nov 7 23:16:27 BRST 2017 Starting heritrix
Linux userName-VirtualBox 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
JAVA_OPTS= -Xmx256m
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15623
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15623
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Oracle Corporation Java(TM) SE Runtime Environment 1.8.0_151-b12
Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/KeyTool
at org.archive.crawler.Heritrix.useAdhocKeystore(Heritrix.java:438)
at org.archive.crawler.Heritrix.instanceMain(Heritrix.java:319)
at org.archive.crawler.Heritrix.main(Heritrix.java:189)
Caused by: java.lang.ClassNotFoundException: sun.security.tools.KeyTool
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more