echo %CLASSPATH% at dos console


Ad

Advertisements

M

Michael Borgwardt

Quick said:
I am on windows xp. In the dos console, if I type




Why the result is

%CLASSPATH%

Because the CLASSPATH path environment variable is not set.
And that's exactly how it should be - classpaths should be
set application-specific on the command line or in a JAR
Manifest.
 
H

hilz

I am expecting it returns the path.

then you should do this:
echo %path%

which gives you the system path.

the classpath environmental variable is not defined (as mentioned in the
earlier post). you have to define it before running your javac or java
commands

HTH
hilz
 
Ad

Advertisements

M

Michael Borgwardt

hilz said:
then you should do this:
echo %path%

which gives you the system path.

the classpath environmental variable is not defined (as mentioned in the
earlier post). you have to define it before running your javac or java
commands

No, you don't, and you shouldn't.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top