错误:找不到或加载主类.path.to.sqlline.sqlline-1_0_2.jar

时间:2019-07-24 21:32:01

标签: sqlline

尝试使用docs在centos7上设置sqlline并遇到错误

➜  sqlline java -Djava.ext.dirs=/home/me/Apps/sqlline/ /home/me/Apps/sqlline/sqlline-1_0_2.jar help
Error: Could not find or load main class .home.me.Apps.sqlline.sqlline-1_0_2.jar

检查文档的设置/先决条件。说明...

➜  sqlline java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
➜  sqlline yum info jline
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.sjc02.svwh.net
 * epel: mirror.prgmr.com
 * extras: centos.sonn.com
 * updates: mirror.sjc02.svwh.net
Installed Packages
Name        : jline
Arch        : noarch
Version     : 1.0
Release     : 8.el7
Size        : 72 k
Repo        : installed
From repo   : base
Summary     : Java library for reading and editing user input in console
            : applications
URL         : http://jline.sourceforge.net/
License     : BSD
Description : JLine is a java library for reading and editing user input in
            : console applications. It features tab-completion, command history,
            : password masking, configurable key-bindings, and pass-through
            : handlers to use to chain to other console applications.

➜  sqlline pwd
/home/me/Apps/sqlline
➜  sqlline ls
jline-3.12.2-SNAPSHOT.jar  sqlline-1_0_2.jar

...根据文档,一切似乎都很好。有任何调试建议或修复方法吗?

0 个答案:

没有答案