简体   繁体   English

尝试启动stardog服务器时出现Java错误

[英]Java Error when trying to start stardog server

When I try to start my stardog-server, my terminal shows me following Java-Error 当我尝试启动stardog-server时,终端向我显示以下Java错误

Exception in thread "main" java.lang.NoClassDefFoundError: com/complexible/stardog/cli/admin/CLI
Caused by: java.lang.ClassNotFoundException: com.complexible.stardog.cli.admin.CLI
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I have no idea why this keeps happening, because I have gotten my stardom-server to run before, but today it started showing me this Error. 我不知道为什么这种情况一直发生,因为我之前已经运行过我的stardom-server,但是今天它开始向我显示此错误。 Does anybody have an idea about why this keeps happening? 有人对为什么这种情况持续发生有想法吗?

I'm working on OSX Mavericks (if that helps anyone) 我正在研究OSX Mavericks(如果可以帮助任何人)

There seems to be a problem with the classpath. 类路径似乎有问题。

Searching for this I found this exchange : 搜索此,我发现此交换

This is due to a bug in the stardog.bat script. 这是由于stardog.bat脚本中的错误所致。 If you add a semicolon to line 21 so that it reads 如果在第21行添加分号,使其显示为
'set CLASSPATH=%HOMEDIR%\\client\\api*;%HOMEDIR%\\client\\cli*;%HOMEDIR%\\client\\http*;%HOMEDIR%\\client\\snarl*;%HOMEDIR%\\pack\\client*;%SLF4J_JARS%' '设置CLASSPATH =%HOMEDIR%\\ client \\ api *;%HOMEDIR%\\ client \\ cli *;%HOMEDIR%\\ client \\ http *;%HOMEDIR%\\ client \\ snarl *;%HOMEDIR%\\ pack \\ client *;% SLF4J_JARS%'
this problem will be fixed. 这个问题将得到解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM