Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    16
    Views
    5,540

    Re: sending objects from client to server

    This looks like a question of setting up your IDE. Have you tried looking on a forum for you IDE to find out how to use packages between projects?
  2. Replies
    16
    Views
    5,540

    Re: sending objects from client to server

    Another solution is to put the client.Person.class file in the Server.jar file.
  3. Replies
    16
    Views
    5,540

    Re: sending objects from client to server

    What folder contains the client folder?
    Put the path to that folder in the classpath:
    java -cp .;<PATH-TO-FOLDER-WITH-client-FOLDER> ...

    The javac and the java programs use the classpath to find...
  4. Replies
    16
    Views
    5,540

    Re: sending objects from client to server

    import client.Person;
    Does your classpath point to the folder containing the client folder?
  5. Replies
    16
    Views
    5,540

    Re: sending objects from client to server

    client.Person p = (client.Person)ois.readObject();
  6. Replies
    16
    Views
    5,540

    Re: sending objects from client to server

    Is the Person.class file on the classpath for the Server? Is the Person class in a package? Your source does not show it.
    Can you post the full text of the error message showing the source line...
Results 1 to 6 of 6