O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Packaging the Beans into a JAR

Try out the TCP networking Java beans that you've written. Compile all of the six Telnet classes: TelnetServer, TelnetClientService, TelnetClient, TelnetClientCommands, TelnetClientThread, and TelnetServerInterface.

Note

Remember to run the Java compiler javac in your DOS or console window from your root class directory c:\jdk1.2.x\myclasses. Place the source Java files for the Telnet classes in the c:\jdk1. 2.x\myclasses\sams\net directory. Finally, recall that the TelnetServer and TelnetClientService classes are mutually dependent, so you need to place references to both classes in the same javac command (see the Compiling the TelnetServer Classes section earlier in this chapter).

Once you've compiled the classes, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required