cryptomator / cli

Cryptomator Command-Line Interface
GNU Affero General Public License v3.0
278 stars 40 forks source link

Windows 10: Error: Could not find or load main class .\cryptomator-cli-0.4.0.jar #43

Closed TCB13 closed 3 years ago

TCB13 commented 3 years ago

Hi,

I'm trying to run this from powershell with a bunch of spaces in the paths and this happens:

> & "C:\Users\TCB13\Desktop\jdk-16.0.1\bin\java.exe" .\cryptomator-cli-0.4.0.jar --vault vault="C:\Users\TCB13\Documents\Vault" --bind 192.168.1.2 --port 8080
Error: Could not find or load main class .\cryptomator-cli-0.4.0.jar
Caused by: java.lang.ClassNotFoundException: /\cryptomator-cli-0/4/0/jar
"C:\Users\TCB13\Documents

Same happens with java at C:\jdk-16.0.1\bin\java.exe.

Using Java Open SDK 16 from https://jdk.java.net/16/. Also tried the official Java SDK, same issue.

Thank you.

TCB13 commented 3 years ago

Missing -jar nevermind.