How to set classpath?

Following example shows 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.

No comments: