Specifying multiple -cp or -classpath entries on java command line

Viewed 15503

The Java documentation is fairly explicit in how to define multiple classpath directories (delimited by ; or : depending on OS).

However, I have a situation where a framework is already setting the -cp flag to an application directory. I have the ability to add additional options to the command line, so I was wondering why I can't add my own additional -cp option that specifies my path.

Will this automatically combine the classpath entries, or will it result in only one of the two entries being used? If the latter, which one will be used?

1 Answers
Related