Java环境变量,CLASSPATH与CLASS_PATH?
当然,CLASSPATH形式(非下划线版本)是人们现在使用的。
但我认为它曾经也接受 CLASS_PATH,也许早在 2000 年代初?
我已经谷歌搜索过,但还没有看到这个答案。鉴于与 Java 相关的类路径、类和路径非常丰富,Google 在此类搜索方面遇到了麻烦。有一些较旧的帖子将其显示为 CLASS_PATH,而真正询问这两个版本的人并没有在该板上得到真正的答案。
我还想知道它是否特定于一种旧的 JVM 变体,或者可能特定于早期的 DOS / Windows 端口?
显然不是一个高度优先的事项,但很好奇是否还有其他人记得这一点,以及是否有任何“官方”支持(或撤回)。
谢谢,马克
Of course the CLASSPATH form (non underscore version) is what people use now.
But I thought it used to also accept CLASS_PATH, maybe way back in the early 2000's?
I've Google'd around but haven't seen this answered. Google has trouble with this type of search, given the abundance of classpath, class and path in relation to Java. There are some older posts showing it as CLASS_PATH, and the one person who actually asked about the two versions didn't get a real answer on that board.
I was also wondering if maybe it was specific to one old JVM variant, or maybe to an early DOS / Windows port?
Obviously not a high priority, but was curious if anybody else remembered this, and whether there was ever any "official" support (or withdrawal) for it.
Thanks, Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你也让我很好奇 - 我在谷歌搜索“CLASS_PATH Gosling”时发现了一个参考文献,这是 0.9.7 版本中的 java 常见问题解答。我依稀记得(或者我想象)使用过它......
http://journals.ecs.soton.ac.uk/java/javafaq .html#xtocid558364
You got me curious too - I found one reference googling "CLASS_PATH Gosling", the java faq in version 0.9.7. I can faintly remember (or I´m imagining) using it...
http://journals.ecs.soton.ac.uk/java/javafaq.html#xtocid558364
在 Google 上搜索 CLASS_PATH 周围的引号(“CLASS_PATH”)肯定会对您的搜索有所帮助。也就是说,我从来没有见过这个 - 除了在一些用于启动程序的批处理文件中,这些文件将其传递给 java 的命令行参数。
Searching on Google with quotes around CLASS_PATH ("CLASS_PATH") will certainly help your searches for this. That said, I've never seen this - except in some batch files used to start programs which passed this to java's command line argument.