File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Classpath problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Classpath problems" Watch "Classpath problems" New topic

Classpath problems

zaeem masood ashar
Ranch Hand

Joined: Mar 17, 2001
Posts: 54
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??


Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

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"
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

Joined: Mar 17, 2001
Posts: 54
Thanks bro
I agree. Here's the link:
subject: Classpath problems
It's not a secret anymore!