Java Binary Portability

A hallmark of Java is binary portability. This feature is overrated in some cases because native platform exploitation inhibits portability, or a lowest common denominator application results if it does no exploitation. Portability is easier in the J2EE server environment, provided that vendor added-value function isn't exploited or that one vendor is used across platforms. Still, binary portability is often achieved through Java.

Example: Simple Java-Based Chat Server

It is fairly easy to write a simple client-server Java network application whose pieces will mix-and-match across Linux and Windows. See Figure 6-4. Here, a chat room server is running on Linux from a Windows telnet session. The same chat server binary classes ...

Get Linux® and Windows® Interoperability Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.