Java Examples - Set multiple classpath


Advertisements


Problem Description

How to set multiple classpath?

Solution

Following example demonstrates how to set multiple classpath. Multiple class paths are separated by a semicolon.

c:> java -classpath C:\java\MyClasse1;C:\java\MyClass2 
   utility.testapp.main

Result

The above code sample will produce the following result.

Class path set.

java_environment_setup.htm

Advertisements