OK, these are all in the same dir:
//Person.class
public interface Person{//can't find Person.class
        public int getAge() throws Throwable;
        public String getName() throws Throwable;
}
//PersonServer.class
   public class PersonServer implements Person {
        int age;
        String name;
        public PersonServer(String name, int age){
                this.age = age;
                this.name = name;
        }
        public int getAge(){
                return age;
        }
        public String getName(){
                return name;
        }
   }
//Person_Stub
import java.io.*;
import java.net.*;
public class Person_Stub implements Person{ //can't find Person.class
        public String Person_Stub() throws Throwable;
                Socket socket = new Socket("k1ws1366", 9000);
        }
        public int getAge() throws Throwable;
                ObjectOutputStream outStream = new
ObjectOutputStream(socket.getOutputStream());
                outStream.writeObject("age");
                outStream.flush();
                ObjectInputStream inStream = new
ObjectInputStream(socket.getInputStream());
                return inStream.readInt();
        }
        public String getName() throws Throwable;
                ObjectOutputStream outStream = new
ObjectOutputStream(socket.getOutputStream());
                outStream.writeObject("name");
                outStream.flush();
                ObjectInputStream inStream = new
ObjectInputStream(socket.getInputStream());
                return inStream.readInt();
        }
}
For some reason these cannot see each other.

Thanks,
andrew


>From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: 3 classes in same dir can't see each other
>Date: Wed, 2 May 2001 12:50:49 +0530
>
>It looks that you are trying too hard and too much to get your source code
>working. This has happened with everybody at sometime or other. Give
>yourself some time, relax if possible.
>And to get some assistance from this list, post the source code of your
>.java files as well as the classpath settings and your directory structure
>in which the files are present.
>Be sure someone out here would surely help you :-).
>Have a nice day.
>With regards,
>Sachin S. Khanna
>http://www.emailanorder.com
>----- Original Message -----
>From: drew w <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, May 02, 2001 3:03 AM
>Subject: 3 classes in same dir can't see each other
>
>
> > I am trying to reference one class file from another but for some reason
>it
> > isn't working.
> > I have set the CLASSPATH to point to this dir.
> > I have set the PATH to point to this dir.
> > I have put "package project;" at the top of each one.
> > I have even tried "import Person;" which is the name of the class file.
> >
> > Any ideas are very much appreciated?
> >
> >
> > thanks,
> > andrew
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >
>===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to