Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath problems

 
zaeem masood ashar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand the purpose of setting classpath and path. What does " % " and " ;.; " signs signify while setting these in the autoexec.bat file ? What is the importance of using a semi colon " ; " ? Is it necessary to put it at the end of every statement?

Also what happens to the old path/classpath settings? Do these stay or are to be deleted in the Autoexec.bat file??

Thanks
 
Wirianto Djunaidi
Ranch Hand
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The % sign is for macros or system environment variable,
so if you have
PATH=%PATH%;<your path>
it will use the "old PATH" value and add it into the new "PATH"
value.
the ";.;" is nothing but adding the "." directory which is
always the current directory you are in. The extra ; is just the
separator in the PATH variables.
People usually add the ".", so whatever directory they are in
will always be in the PATH or CLASSPATH
 
zaeem masood ashar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks bro
------------------
SCJP2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic