The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

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:

file access

Posted by tejinder singh on March 15, 2001 at 12:18 PM

if a create a file one.java as a member of package tej located in directory c:\jdk\bin\tej
as
package tej;
public class one
{
}
and another class two in package tej but in directory c:\jdk\bin as
package tej;
public class two
{
public static void main(String s[])
{
tej.one t=new tej.one();
}
}
how can i run this class tej.two as the interpreter is not able to locate the class tej.two which is located in c:\jdk\bin
whereas tej.one is located in c:\jdk\bin\tej but belong to the same package tej




Replies:

Sponsored Links



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