The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

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.

Message:

Set the classpath

Posted by Kishori Sharan on December 20, 2000 at 9:45 AM

When you place a java program in a package then that package must be accessible using the classpath settings on your machine. Suppose your package1 folder is like
c:\siva\java\package1\Box.java
Now, you must set the c:\siva\java in your classpath and then only java will be able to find out package1\Box.class .
So, just make a proper setting in your classpath and it will work. Again when you run your Test class then always use the command
java package1.Test not "java Test" .

Thanx
Kishori



Replies:

Sponsored Links



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