通过Linux脚本设置类路径
我需要通过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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您对路径分隔符的假设是正确的。
Your assumption about the path separators is correct.
CLASSPATH
与PATH
类似,其条目为 在 Windows 上用分号分隔,在其他平台上用冒号分隔。CLASSPATH
is likePATH
in that its entries are separated by a semi-colon on Windows and a colon on other platforms.