The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Use fully-qualified name of your class

Posted by Kishori Sharan on July 26, 2001 at 10:31 PM

When you run a Java program then you always specify the fully qualified name of class. The fully-qualified name of class is package name plus a dot plus the name of class. Everything is case sensitive. So use the fully-qualified name of your class which is expertplan.misc.TestMain. You should not pass this name in quoble quotes. Again the classpath should be directory path. All taken together your command to run your Java class will be:

e:dev/proj>java -cp e:/dev/proj/classes expertplan.misc.TestMain


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us