- Hi guys! - A friend pointed out at https://github.com/apache/shardingsphere/issues/20041#issuecomment-1210082049 that OpenJDK's `java.lang.ProcessBuilder.start` uses `CreateProcessW` to fork a process, background reference https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw. - but according to https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later , but `CreateProcessW` is not supported for long paths. - This affects the vast majority of people who compile Java-related Git projects on Windows. An obvious example is https://github.com/apache/shardingsphere.git and https://github.com/apache/skywalking.git . - So I suggest, CreateProcessW should not have MAX_PATH restrictions. I also attach the error log of the relevant compilation time. This suggestion is also in the Widows Feedback Hub, only because the Windows Feedback Hub is regional, I can't share the link to my friends in Europe, so I opened a new thread on the forum. See https://aka.ms/AAhnzj2.

点赞(23) 打赏

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部