简体   繁体   中英

Java environment variables, CLASSPATH vs. CLASS_PATH?

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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