5.766 bytes

Service Hints & Tips

Document ID: MIGR-47STT6

Network Station - AS/400: Java Notes - II10941

Applicable to: World-Wide

AS/400: Java Notes - II10941

This document includes information about the IBM Network Station and IBM Network Station Manager AS/400 product. This document relates to AS/400 systems running R320, R370, R410, R420 and subsequent version and release levels, as needed. Since this document will be updated on a regular basis, it is recommended that you refer to it on a regular basis.

The parent informational APAR in this series is: II10405 .

Notes for Java Developers

Sun's Java Development Kit (JDK) which is the basis for all ports of the Java environment to new operating systems actually has two versions. One version is the Unix base and the other is the Windows base. Some incompatibilities exist between the two versions. The IBM Network Station was ported from the Unix base. If you develop code on Windows 95 or NT and it works differently on the IBM Network Station, in many cases it will also work differently on any Unix based operating system including IBM's AIX and Sun's Solaris.

One easily noticed difference is that all of the user interface components such as buttons and entry fields call the native operating environment's windowing system to display the user interface with a "native look and feel". This means that from the Unix base, user interface components call the Motif library routines. On the other hand, from the Windows base, the Window library routines are called. One example of this is choice menus. Choice menus (using the Choice class) on Unix based systems display with a square box with a line in the middle, clicking the square will display your choices. On Windows based systems, the choice menu is displayed with a down arrow, clicking the arrow will display your choices.

Another difference is the native windowing system's event handling mechanisms. The event handling for dialog boxes (using the Dialog class) works differently on Unix than on Windows. On Windows based systems, events not handled in dialogs are passed to the parent window automatically, Unix does not. Thus in Windows, the event handling can be placed in the parent window, while in Unix the event handling must be in the dialog window (by extending the Dialog class).

Additional Items to Note:

  1. To make sure all data is written to files, use the close method on the files.
  2. When you are communicating between two systems (such as with the Socket class) with different operating systems, they both must be using the same version of Java.
  3. Make sure a font family, style, and point size are available before using them, otherwise your text may not be displayed.


Support for Java Virtual Machine (JVM) 1.1.2

As of 11/21/97, the Group PTF SF99081 provides support for the Java Virtual Machine (JVM) version 1.1.2. JVM 1.1.2 (Java Virtual Machine) is supported on AS/400 systems running release V3R7 and V4R1. Listed below are some current limitations for an IBM Network Station with JVM 1.1.2:

  1. Cannot do printing from applets.
  2. Cannot use serialized applets (using the object attribute in the applet tag on an html page).
  3. Applets started from appletviewer are not allowed to use the system clipboard or server sockets (listen).
  4. Internationalization - Only the "C" locale is supported.
  5. Server RMI programs cannot run on the IBM Network Station, because the RMI Registry is an application and two applications cannot run simultaneously.
  6. JAR files can be loaded using applications or appletviewer, but cannot be loaded in the IBM Browser or NC Navigator browser.
  7. Digitally signed JAR files cannot be run on the IBM Network Station.
  8. Multicast sockets are not supported.
  9. The time does not display correctly.
  10. The hostname is reported as localhost.


Search Keywords

Document Category

General Information, Installation Guides, System Administration Tools, User Guides

Date Created

12-05-99

Last Updated

11-05-99

Revision Date

12-11-99

Brand

IBM Network Station, Network Computers

Product Family

Network Station, AS/400 - Network Station, NT Server - Network Station, OS/2 Warp Server - Network Station, RS/6000 - Network Station, S/390 OS/390 - Network Station, S/390 VM/ESA - Network Station

Machine Type

8361, 8362

Model

All

TypeModel

Retain Tip (if applicable)

Reverse Doclinks
and Admin Purposes