Skip to content

[Bug] Failed to run start-cli.bat on Windows10 #12309

Description

@Yearner

Search before asking

  • I searched in the issues and found nothing similar.

Version

1.3.0

Describe the bug and provide the minimal reproduce step

1 Run cmd in the sbin directory
2 exec start-cli.bat -h 192.168.0.4 -p 6667 -u root -pw root

What did you expect to see?

---------------------
Starting IoTDB Cli
---------------------
 _____       _________  ______   ______
|_   _|     |  _   _  ||_   _ `.|_   _ \
  | |   .--.|_/ | | \_|  | | `. \ | |_) |
  | | / .'`\ \  | |      | |  | | |  __'.
 _| |_| \__. | _| |_    _| |_.' /_| |__) |
|_____|'.__.' |_____|  |______.'|_______/  version 1.3.0 (Build: d1326c5)

What did you see instead?

-h 127.0.0.1 -p 6667 -u root -pw root
java -ea -DIOTDB_HOME="E:\Programming software\apache-iotdb-1.3.0-all-bin" -cp org.apache.iotdb.cli.Cli -h 127.0.0.1 -p 6667 -u root -pw root
用法: java [-options] class [args...]
(执行类)
或 java [-options] -jar jarfile [args...]
(执行 jar 文件)

Anything else?

I have found the cause of the problem.
about 60 lines.
change
if EXIST %IOTDB_HOME%\lib ...
to
if EXIST "%IOTDB_HOME%\lib" ...

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions