Java Examples - Set classpath


Advertisements

Problem Description

How to set classpath?

Solution

Following example demonstrates how to set classpath.

C:> java -classpath C:\java\DemoClasses utility.demoapp.main

Result

The above code sample will produce the following result.

Class path set.
java_environment_setup.htm
Advertisements