通过Linux脚本设置类路径

发布于 2025-01-07 05:18:14 字数 269 浏览 1 评论 0原文

我需要通过Linux脚本设置100个jar文件,所以我这样写 回

显结果是这样

test/lib/xstream-1.3.1.jar:test/lib/test/lib/xpp3_min-1.1.4c.jar:test/lib/test/lib/xmlsec-1.4.1.jar:test/libtest/lib/xml-apis.jar

我的问题是在windows中jar文件将以分号结尾,在linux中它显示冒号(:)这是正确的吗? ?

I need to set 100 jar files through Linux script, so i written this way

The echo result is this way

test/lib/xstream-1.3.1.jar:test/lib/test/lib/xpp3_min-1.1.4c.jar:test/lib/test/lib/xmlsec-1.4.1.jar:test/libtest/lib/xml-apis.jar

My question is in windows the jar files will be termnated by semicolon , in linux it is showing a colon (:) is this correct ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

燃情 2025-01-14 05:18:14

您对路径分隔符的假设是正确的。

Your assumption about the path separators is correct.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文