Sun Java Solaris Communities My SDN Account Join SDN
 
Documentation

The Java 2 Runtime Notes

 

The Java 2 Runtime Environment
on Solaris Platforms

        
Japanese
These notes apply only to the Java Software reference version of the Java 2 Runtime Environment for Solaris operating environments. For information about the production versions for the Solaris operating system, see the Solaris Software web site. For general platform-independent information about deploying applications on the Java 2 Runtime Environment, see, Java 2 Runtime Environment Notes for Developers.

The reference implementation of the Solaris Java 2 Runtime Environment is not bundled with an installer. Software vendors should consider bundling the Java 2 Runtime Environment and an installer with the software they supply to end-users.

There are several ways that the directory heirarchy of the Java 2 Runtime Environment and application software can be structured. A suggested directory structure is as follows:

                       [app-dir]
           ________________|___________
          |         |                  |
         bin       lib           [runtime-dir]
          |         |          ________|________
                 app.jar      |                 | 
                             bin               lib         
                              |                 |

The Java 2 Runtime Environment is installed in its own subdirectory, referred to as [runtime-dir] which includes all of the Java 2 Runtime Environment's required files (as listed in the README) in the bin and lib sub-directories. The bin and lib directories beneath [runtime-dir] should have the same directory hierarchy and relative placement of files as the bin and lib directories created upon installation of the Java 2 Runtime Environment. Optional internationalization files can be included for language localization support, if desired. Note that this directory structure is used by the Java 2 SDK.

The example directory structure above shows all application-specific classes in the file [app-dir]/lib/app.jar. To make maintenance of the software easier, it is recommend that application-specific software be placed in a directory other than the Java 2 Runtime Environment's directory, as in the example.

If native code support is required, then the native library must be located on the path specified by LD_LIBRARY_PATH. One way to do this in the above example would be to install the native libraries in [app-dir]/lib/[sys]. LD_LIBRARY_PATH would then be set to include these directories.