windows环境下启动JanusGraph,gremlin-server.bat报错找不到或无法加载主类 FilesJavajdk1.8.0

mac2024-11-23  33

问题描述:windows环境下启动JanusGraph安装文件bin目录下的gremlin-server.bat或gremlin.bat,报错,

错误: 找不到或无法加载主类 Files\Java\jdk1.8.0_152\lib;C:\Program

解决方法:参考windows下kafka启动报错找不到或无法加载主类Files\Java\jdk1.8.0_144\lib\dt.jar;C:\Program的解决方法。

https://blog.csdn.net/cx2932350/article/details/78870135

具体措施:

1.检查CLASSPATH,应该是:**.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;** 最前面是“小数点”不是“逗号”。

2.修改janusgraph-0.3.1-hadoop2\bin\gremlin-server.bat中内容

修改前

:: put slf4j-log4j12 and JanusGraph jars first because of conflict with logback SET CP=%CLASSPATH%;%SLF4J_LOG4J_JAR%;%JANUSGRAPH_JARS%;%JANUSGRAPH_LIB%\*;%EXTDIR_JARS%

修改后

:: put slf4j-log4j12 and JanusGraph jars first because of conflict with logback SET CP="%CLASSPATH%";%SLF4J_LOG4J_JAR%;%JANUSGRAPH_JARS%;%JANUSGRAPH_LIB%\*;%EXTDIR_JARS%

%CLASSPATH%要用双引号

最新回复(0)