Hi,

I have find a way to avoid that: put all classpath into MANIFEST.MF file.

Will submit a PR in few hours.

一会儿会发一个更新,彻底解决掉这个问题。

Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


可以扣篮但没必要 <[email protected]> 于2020年6月16日周二 下午4:14写道:

>
> 我尝试过直接copy到较浅的路径,还是报这个错,正如您虽说,似乎是编译时采取的绝对路径导致运行调用的还是一开始编译时路径下的jar包?
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Xiangdong Huang"<[email protected]>;
> *发送时间:* 2020年6月16日(星期二) 下午4:09
> *收件人:* "可以扣篮但没必要"<[email protected]>;
> *抄送:* "dev"<[email protected]>;
> *主题:* Re: 启动IoTDB服务时报错
>
> Hi,
>
> This is a common issue in Windows. It is because the max length of CMD.exe
> command is 8191 in Windows, while Java programs have to put all jars into
> its classpath.
> In this version, you have to reduce the depth of iotdb folder, e.g., from
> D:\xxx\....\...\iotdb to D:\iotdb.
>
>
> 这是windows操作系统的一个限制,命令行里的命令最长是8191个字符。但是java程序在拼接他的类路径时,使用的是绝对路径(从D:\开始的),最终启动命令超过了8191个字符。
>
> 目前版本的解决方法只能是把iotdb不要放在这么深的路径下(比如放到d:\iotdb下,在运行,就没问题了)。
>
> 后续会考虑进行两处修改:
> 1. 在拼接jar的路径时使用相对路径;
> 2. 尝试是否可以通过使用环境变量来解决。
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
>  黄向东
> 清华大学 软件学院
>
>
> 可以扣篮但没必要 <[email protected]> 于2020年6月16日周二 下午3:42写道:
>
>>
>> D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\sbin>start-server.bat
>> ````````````````````````
>> Starting IoTDB
>> ````````````````````````
>> "setting local JMX..."
>> Detect 64-bit Java, maximum memory allocation pool = 2GB, initial memory
>> allocation pool = 2GB
>> If you want to change this configuration, please check
>> conf/iotdb-env.sh(Unix or OS X, if you use Windows, check
>> conf/iotdb-env.bat).
>> 输入行太长。
>> 此时不应有
>> "D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\lib\slf4j-api-1.7.25.jar"。
>>
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Xiangdong Huang"<[email protected]>;
>> *发送时间:* 2020年6月16日(星期二) 下午3:40
>> *收件人:* "dev"<[email protected]>;"可以扣篮但没必要"<[email protected]>;
>> *主题:* Re: 启动IoTDB服务时报错
>>
>> Hi,
>>
>> I can not see the info.. Can you send it again (with plain text)?
>> 你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (
>> https://github.com/apache/incubator-iotdb/issues)
>>
>> Best,
>> -----------------------------------
>> Xiangdong Huang
>> School of Software, Tsinghua University
>>
>>  黄向东
>> 清华大学 软件学院
>>
>>
>> 可以扣篮但没必要 <[email protected]> 于2020年6月16日周二 下午3:33写道:
>>
>>>
>>>
>>>

Reply via email to