telosys-tools-bricks / telosys-cli

Telosys CLI - Command Line Interface
https://www.telosys.org/
GNU Lesser General Public License v3.0
166 stars 23 forks source link

tt on windows : Error : unable to access jarfile C:\Program #9

Closed trenaud closed 6 years ago

trenaud commented 6 years ago

Hi, I installed the telosys-cli following the wiki installation page. I downloaded from website, unzip in C:\Program Files\telosys-cli, and added the path to this folder int PATH variable. But when I try the tt command in cmd.exe, I got an error. This is the output of command-line :

Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\trenaud>tt
Error: Unable to access jarfile C:\Program

C:\Users\trenaud>

What am I doing wrong ? Tristan

l-gu commented 6 years ago

Hi, it's due to the space in your path ( between "Program" and "Files" ) not correctly supported in the "tt.bat" file :-( we will fix it quickly.

You can fix it temporarily by modifying the last line (in "tt.bat") as follow : java -jar "%~dp0/telosys-cli-3.0.0-012.jar" %* ( just 2 chars " to add to avoid the "space effect" )

trenaud commented 6 years ago

Thank you, this fix works great. I also applied it in the "tl.bat" file that has the same issue :

C:\Users\trenaud>tl
Erreur : impossible de trouver ou charger la classe principale Files\telosys-cli\.telosys-cli-3.0.0-012.jar
l-gu commented 6 years ago

Fixed in ver CLI-013