简体   繁体   English

Java环境变量,CLASSPATH与CLASS_PATH?

[英]Java environment variables, CLASSPATH vs. CLASS_PATH?

Of course the CLASSPATH form (non underscore version) is what people use now. 当然,CLASSPATH表单(非下划线版本)是人们现在使用的。

But I thought it used to also accept CLASS_PATH, maybe way back in the early 2000's? 但我以为它曾经也接受过CLASS_PATH,也许早在2000年代就可以了?

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. 考虑到与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. 有一些较旧的帖子显示为CLASS_PATH,实际询问这两个版本的那个人没有在该板上得到真正的答案。

I was also wondering if maybe it was specific to one old JVM variant, or maybe to an early DOS / Windows port? 我也想知道它是否特定于一个旧的JVM变体,或者可能是早期的DOS / Windows端口?

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 谢谢,马克

Searching on Google with quotes around CLASS_PATH ("CLASS_PATH") will certainly help your searches for this. 使用CLASS_PATH(“CLASS_PATH”)附近的引号在Google上搜索肯定会帮助您搜索此内容。 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. 也就是说,我从来没有见过这个 - 除了用于启动程序的一些批处理文件,这些程序将其传递给java的命令行参数。

You got me curious too - I found one reference googling "CLASS_PATH Gosling", the java faq in version 0.9.7. 你让我很好奇 - 我发现了一个参考谷歌“CLASS_PATH Gosling”,版本0.9.7中的java faq。 I can faintly remember (or I´m imagining) using it... http://journals.ecs.soton.ac.uk/java/javafaq.html#xtocid558364 我可以依稀记得(或者我在想象)使用它... http://journals.ecs.soton.ac.uk/java/javafaq.html#xtocid558364

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM