0

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

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the link! This documents that at least as of January 26, 1996 in a Java FAQ sent to the news groups comp.lang.java, alt.www.hotjava,alt.answers,comp.answers and news.answers they were using CLASS_PATH, with an underscore. I guess the only question left is when it officially changed.
1

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.

2 Comments

Sadly Google isn't as good about double quotes as it used to be. Actually I complained about this last weekend, though not related to the classpath search.
In this case Google does give different results using quotes, though still not helpful. I find either folks using the _ version, which seems fine, or references to a Java field called CLASS_PATH, but it's not the same thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.