Home Bug Reports

Documentation:Writing a ice application with Java

This is an excerpt from the documentation page 48
Compiling the client looks much the same as for the server:
$ javac -d classes -classpath classes:$ICEJ_HOME/lib -source 1.4 \
Client.java PrinterI.java generated/*.java

Somehow this gives the wrong impression that a client needs to be aware of the Server implementation. PrinterI.java should be removed.

I guess the same is true for the C++ client example.

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Re: Documentation:Writing a ice application with Java
    Originally posted by dipakyadav
    This is an excerpt from the documentation page 48


    Somehow this gives the wrong impression that a client needs to be aware of the Server implementation. PrinterI.java should be removed.

    Right, PrinterI.java is redundant and need not appear there. I've fixed that for the next version of the book, thanks for pointing it out!

    I guess the same is true for the C++ client example.

    No, the C++ client doesn't have that problem. Only Printer.cpp (which is the generated code) and Client.cpp are compiled there, which is the minimum.

    Cheers,

    Michi.
Sign In or Register to comment.