• Post Reply Bookmark Topic Watch Topic
  • New Topic

Environment variables  RSS feed

 
jignesh soni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between declaring class path as
CLASSPATH and %CLASSPATH%

Which one shall I use and why ?

Thanks
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry nobody has replied earlier.

I think the correct answer is NEITHER. Set up the classpath for each project as a compiler option or in the manifest file for its .jar.

Not certain, I think CLASSPATH means what you set up if you do set anything up, and %CLASSPATH% is a Windows thing which means, "whatever has already been st up in the classpath," but as I said, I am not sure.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right. %CLASSPATH% means the contents of the environment variable CLASSPATH, similar to Linux' $CLASSPATH or $(CLASSPATH).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!