Tutorials Point


  Java Basics Examples
  Java Tutorial
  Java Useful Resources
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

Java Examples - set Class Path


previous next AddThis Social Bookmark Button


Problem Description:

How to set classpath when class files are in .jar file?

Solution:

Following example demonstrates how to set class path when classes are stored in a .jar or .zip file.

c:> java -classpath C:\java\myclasses.jar utility.testapp.main

Result:

The above code sample will produce the following result.

Class path set.


previous next Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names