Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
»  Contact HP
Java Technology Software
HP.com home

Release Notes

J2SE Runtime Environment (JRE) 5.0-2
for the OpenVMS I64 Operating System

for the Java™ Platform
Content starts here

Contents

Introduction

Thank you for downloading J2SE™ Runtime Environment (JRE) 5.0-2 for the OpenVMS I64 Operating System for the Java™ Platform (hereafter called the JRE). The JRE comprises the Java virtual machine, the Java platform core classes, and supporting files. It is the runtime part of J2SE™ Development Kit (JDK) 5.0-2 for the OpenVMS I64 Operating System for the Java Platform (hereafter called the JDK), but without the development tools such as compilers and debuggers. The JRE contains Plug-in software that enables Mozilla® (minimum version 1.1) to use the JRE to run Java applets. These Release Notes provide installation instructions for the JRE and information that may be useful for developers who want to redistribute the JRE with their software. Also, note that the HotSpot Virtual Machine is included with the JRE kit. This JRE 5.0 release also contains support for running Java Web Start on OpenVMS. For more information about this release, refer to the JDK 5.0-2 Release Notes and the JDK 5.0x User Guide.

IMPORTANT: Please make sure you understand the Copyright (copyright.html, installed file) and License (license.html, installed file) information before using this release. On OpenVMS, the Java virtual machine has a minimum required value for PGFLQUOTA of 512000 blocks (250 MB). Please see section Setting Process Quotas for Better Performance on OpenVMS in the JDK User Guide for more information.

Back to top

Installing the JRE

To install and use this kit on OpenVMS systems, you must first download and install the operating system patches. See the product page on the Web site for more information.

HP suggests that the JRE be installed in its own subdirectory (referred in Figure 1 as <JRE_RUNTIME_BASE>). This allows you to update the JRE independently of updates to your application, and vice versa.

Figure 1: Sample JRE Installation

  
              <APP-DIR>
                  |
 +---------+------+---------------------+
 |         |                            |
BIN       LIB                   <JRE_RUNTIME_BASE>
           |                            |
     APPLICATION.JAR         +----------+--------+-------+
                             |          |        |       |       
                            BIN        LIB    PLUGIN    DOC

                                   Supplied by HP

The files that make up the JRE are bundled into two OpenVMS BACKUP save sets:

JRE-V150-2_A.SAV
JRE-V150-2_A.SAV is a REQUIRED subset of files (approximately 456,000 blocks). Your licensing agreement requires that if you redistribute any part of the JRE, you must redistribute this set of files in its entirety. If you do not distribute all files, the JRE and your application may not work. To obtain a detailed list of the files in this save set, use the following command:

$ BACKUP/LIST JRE-V150-2_A.SAV/SAVE_SET

Note: The HotSpot VM files are included in this save set.

JRE-V150-2_B.SAV
The second save set, JRE-V150-2_B.SAV is an OPTIONAL subset of files (approximately 25,000 blocks). You may need some of these files to fully support your application in an international arena. This set does not need to be deployed in its entirety. To list the files in the optional save set, issue the following command:

$ BACKUP/LIST JRE-V150-2_B.SAV/SAVE

To download and unpack the REQUIRED and OPTIONAL save sets, do the following:

  1. Download:
    Download HP-I64VMS-JRE-V0105-2-1.SAV_SFX_I64EXE (approximately 187,000 blocks) from our web site. Execute this file to create the JRE-V150-2_A.SAV and JRE-V150-2_B.SAV save sets:
    $ RUN HP-I64VMS-JRE-V0105-2-1.SAV_SFX_I64EXE

  2. Unpack Save Sets:
    Unpack the JRE-V150-2_A.SAV and JRE-V150-2_B.SAV files into the appropriate subdirectories of your application. Continuing with the typical directory structure illlustrated in Figure 1, move the save sets into the [.JRE_RUNTIME_BASE] directory, then issue the following commands (edited to match your actual disk and directory names):
    $! Position yourself to the base directory for the JRE components
    $ SET DEFAULT USER1$:[APP-DIR.JRE_RUNTIME_BASE]
    $!
    $! To unpack the JRE-V150-2_A.SAV save set,
    $ BACKUP JRE-V150-2_A.SAV/SAVE [...]*.*
    $!
    $! To optionally unpack the JRE-V150-2_B.SAV save set,
    $ BACKUP JRE-V150-2_B.SAV/SAVE [...]*.*

For information on bundling the JRE with application software for redistribution, refer to Bundling the JRE.

Back to top

Using the Run Time Environment

After installing the JRE, a number of symbols and logicals need to be set up to enable you to use the JRE. An JRE setup command file, JAVA$150_JRE_SETUP.COM, is deposited into the [.LIB] directory, resulting from restoring JRE-V150-2_A.SAV. Select the HotSpot VM as your virtual machine using this command file. Run this command file as follows:

$ @USER1$:[APP-DIR.JRE_RUNTIME_BASE.LIB]JAVA$150_JRE_SETUP

where USER1$:[APP-DIR.JRE_RUNTIME_BASE. denotes the actual disk and directory name where you installed the JRE.

The Java command-line tool can then be used to launch your Java application using the JRE.

Back to top

Using the Plug-in

Plug-in 5.0-2 enables users to run Java applets and JavaBeans™ components on web pages using the JRE as an alternative to using the default virtual machine for Java 2 that comes with the web browser. It is based on Java Plug-in 5.0-2 provided by Sun Microsystems and contains similar functionality.

For additional information on topics such as Java Plug-in Security, using signed applets, JNI and Java Plug-in, Using Java Plug-in in Intranet Environments, and How Proxy Configuration Works in Java Plug-in, see the Sun Microsystems Java Plug-in Technology web page.

Note: You must be running Mozilla® 1.1 or higher.

Installing and Running Mozilla and the Plug-in

To install Mozilla:

  1. Download Mozilla.
  2. Refer to HP Secure Web Browser for OpenVMS I64 (based on Mozilla) Installation Guide and Release Notes to install Mozilla on your system.

To run Mozilla:

$ @sys$common:[cswb]mozilla

Note: We strongly recommend that you run Mozilla as an interactive job as indicated above.

If you spawn it off as a subprocess

$ spawn/nowait @sys$common:[cswb]mozilla

you will likely exhaust some resources if you attempt to use the plug-ins for anything non-trivial.

To enable the JRE within your browser:

  1. Set preference:

    Edit->Preferences

    Click on Advanced.
    Check button labeled Enable Java.

  2. Exit Mozilla.

  3. When both JRE 5.0 and Mozilla have been installed, perform a one-time file copy to install the Plug-in:

    $ copy /prot=W:RE USER1$:[APP-DIR.JRE_RUNTIME_BASE.PLUGIN.IA64.NS610]LIBJAVAPLUGIN_OJI.SO - SYS$COMMON:[CSWB.PLUGINS]

    Thereafter, you can set up for Java operation:

    $ @USER1$:[APP-DIR.JRE_RUNTIME_BASE.LIB]JAVA$150_JRE_SETUP.COM

    where USER1$:[APP-DIR.JRE_RUNTIME_BASE. denotes the actual disk and directory name where you installed the JRE.

  4. Then run Mozilla:

    $ @sys$common:[cswb]mozilla

    Mozilla will notice that new plug-ins are available and will then initialize those plug-ins for the current invocation.

To verify that Mozilla has found the plug-ins refer to:

Help->About Plug-ins

Mozilla will display the plug-ins it has initialized.

Placing Plug-ins

You can choose where to place plug-ins.

For system-wide usage, use the respective location in the Mozilla/SWB installation tree:

$ copy /PROT=W:RE -
USER1$:[APP-DIR.JRE_RUNTIME_BASE.PLUGIN.IA64.NS610]LIBJAVAPLUGIN_OJI.SO -
SYS$COMMON:[CSWB.PLUGINS]

You can also use "private" plug-ins by creating a [.PLUGINS] directory in your _MOZILLA directory (which resides in SYS$LOGIN). For example:

USERS:[FLINTSTONE._MOZILLA.PLUGINS]

To use this "private" plug-ins area:

$ copy /PROT=W:RE -
USER1$:[APP-DIR.JRE_RUNTIME_BASE.PLUGIN.IA64.NS610]LIBJAVAPLUGIN_OJI.SO -
USERS:[FLINTSTONE._MOZILLA.PLUGINS]

Essentially, if you place a LIBJAVAPLUGIN_OJI.SO into USERS:[FLINTSTONE._MOZILLA.PLUGINS], it will be used by Mozilla and override what is in SYS$COMMON:[CSWB.PLUGINS].

The Plug-in Control Panel

A Plug-in Control Panel lets you change Plug-in options such as proxies and enabling of the Java console window. It also allows you to switch the JRE version you want to run with your Plug-in. To run the Control Panel, enter the following command:

$ ControlPanel

Please refer to Sun's Java Control Panel web page for information about additional features and uses of the Java Plug-in Control Panel.

Back to top

Using Java Web Start

Java Web Start provides the ability to run Java applications with a single click from your Web browser. If the application is not on your system, Java Web Start will download all needed files to run the application. It caches these files on your system so that the application can be rerun without having to once again download the application.

In most cases, Java Web Start for OpenVMS works as described in Sun’s Java Web Start documentation. However, some OpenVMS specific setup tasks must be done before running Java Web Start applications from the HP Secure Web Browser for OpenVMS I64 (based on Mozilla).

These setup tasks are:

  1. Install both the required and optional JRE 5.0-2 OpenVMS BACKUP save sets.

  2. Download and install the HP Secure Web Browser for OpenVMS I64 (based on Mozilla).

  3. Define a helper application for jnlp files in Mozilla by doing the following:
    Run Mozilla interactively.
    When Mozilla comes up, click on “Preferences…” in Mozilla’s “Edit” menu.
    Click on “Helper Applications.”
    Click on “New Type.
    Enter the following information:

    Mime Type: application/x-java-jnlp-file
    Description: Java Web Start
    Extension: jnlp
    Open it with: /user1$/app-dir/jre_runtime_base/lib/java$150_javaws.com

    where /user1$/app-dir/jre_runtime_base denotes the actual disk and directory name where you installed the JRE. Then, press “OK.”

To run Java Web Start as a standalone application, install both the required and optional JRE 5.0-2 OpenVMS BACKUP save sets. Then enter the commands:

$ @USER1$:[APP-DIR.JRE_RUNTIME_BASE.LIB]JAVA$150_JRE_SETUP.COM
where USER1$:[APP-DIR.JRE_RUNTIME_BASE. denotes the actual disk and directory name where you installed the JRE.
$ define DECC$EFS_CASE_PRESERVE ENABLE
$ javaws

Setting DECC$EFS_CASE_PRESERVE will enhance Java Web Start’s ability to find cached applications on your system.

Back to top

Redistributing the JRE

If you redistribute the JRE, you must follow the terms of the JRE Binary Code License agreement, which includes these terms:

  • Do not arbitrarily subset the JRE. You may omit only the files in the JRE-V150-2_B.SAV optional subset.

  • Include in your product's license the provisions called out in the JRE Binary Code License.

The following JDK files may be redistributed with the JRE:

  • SYS$COMMON:[JAVA$150.BIN]JAVAC.
  • SYS$COMMON:[JAVA$150.BIN]JAVA$JAVAC.EXE
  • SYS$COMMON:[JAVA$150.LIB]TOOLS.JAR

These files include Java 2 JDK tools classes, including the classes for the javac compiler.

Back to top

Bundling the JRE

For your end users to run your software, they'll need a Java runtime environment installed on their systems. The JDK contains a runtime environment, of course, so your customers could use that if they happen to have it installed. However, a better bet for most of your end users will be the JRE, for several reasons:

  • The JRE is redistributable, unlike the JDK. The JRE Binary Code License agreement allows you to package it with your software. By distributing the JRE with your application, you can ensure that your customers will have the correct version of the runtime environment for running your software. In other words, your customers will be running the exact code you've tested.

  • The JRE is smaller than the JDK. The JRE contains everything your users will need to run your software, but it leaves out the development tools, demo applets, and applications that are part of the JDK. Because the JRE is relatively small, it's easier for you to package with your software or for your users to download themselves from our web site.

Table 1 below lists the notable differences between the JRE and the JDK:

Table 1: Notable Differences Between the JRE and the JDK

 

JRE

JDK

Class libraries to use
  CHARSETS.JAR CHARSETS.JAR
  PLUGIN.JAR PLUGIN.JAR
  JCE.JAR JCE.JAR
  JSSE.JAR JSSE.JAR
  RT.JAR RT.JAR
    HTMLCONVERTER.JAR
    HTMLCONVERTER_G.JAR
    DT.JAR
    TOOLS.JAR
  May be redeployed by vendors. May NOT be redeployed by vendors.
  They are missing the Main.class for javac, jar, javadoc, native2ascii, rmic, etc.  
Shareable libraries (JRE does not provide debug shareable libraries, for example):
    JAVA$AWT_G_SHR.EXE
  JAVA$AWT_SHR.EXE JAVA$AWT_SHR.EXE
     JAVA$CMM_G_SHR.EXE
   JAVA$CMM_SHR.EXE JAVA$CMM_SHR.EXE
     JAVA$DCPR_G_SHR.EXE
   . . . . . .
Main Programs Deployed in Kit (JRE provides only a few programs (none are debug), such as):
    JAVA$APPLETVIEWER.EXE
    JAVA$APPLETVIEWER_G.EXE
    JAVA$APPLETVIEWER_G_DEBUG.EXE
    JAVA$EXTCHECK.EXE
    JAVA$EXTCHECK_G.EXE
    JAVA$EXTCHECK_G_DEBUG.EXE
    JAVA$IDLJ.EXE
    JAVA$IDLJ_G.EXE
    JAVA$IDLJ_G.DEBUG.EXE
    JAVA$JAR.EXE
    JAVA$JAR_G.EXE
    JAVA$JAR_G_DEBUG.EXE
    JAVA$JARSIGNER.EXE
    JAVA$JARSIGNER_G.EXE
    JAVA$JARSIGNER_G_DEBUG.EXE
  JAVA$JAVA.EXE JAVA$JAVA.EXE
    JAVA$JAVA_G.EXE
    JAVA$JAVA_G_DEBUG.EXE
    JAVA$JAVAC.EXE
    JAVA$JAVAC_G.EXE
    JAVA$JAVAC_G_DEBUG.EXE
    JAVA$JAVADOC.EXE
    JAVA$JAVADOC_G.EXE
    JAVA$JAVADOC_G_DEBUG.EXE
    JAVA$JAVAH.EXE
    JAVA$JAVAH_G.EXE
    JAVA$JAVAH_G_DEBUG.EXE
    JAVA$JAVAP.EXE
    JAVA$JAVAP_G.EXE
    JAVA$JAVAP_G_DEBUG.EXE
    JAVA$JDB.EXE
    JAVA$JDB_G.EXE
    JAVA$JDB_G_DEBUG.EXE
  JAVA$KEYTOOL.EXE JAVA$KEYTOOL.EXE
    JAVA$KEYTOOL_G.EXE
    JAVA$KEYTOOL_G_DEBUG.EXE
    JAVA$NATIVE2ASCII.EXE
    JAVA$NATIVE2ASCII_G.EXE
    JAVA$NATIVE2ASCII_G_DEBUG.EXE
  JAVA$ORBD.EXE JAVA$ORBD.EXE
    JAVA$ORBD_G.EXE
    JAVA$ORBD_G_DEBUG.EXE
  JAVA$POLICYTOOL.EXE JAVA$POLICYTOOL.EXE
    JAVA$POLICYTOOL_G.EXE
    JAVA$POLICYTOOL_G_DEBUG.EXE
    JAVA$RMIC.EXE
    JAVA$RMIC_G.EXE
    JAVA$RMIC_G_DEBUG.EXE
  JAVA$RMID.EXE JAVA$RMID.EXE
    JAVA$RMID_G.EXE
  JAVA$RMID_G_DEBUG.EXE
  JAVA$RMIREGISTRY.EXE JAVA$RMIREGISTRY.EXE
    JAVA$RMIREGISTRY_G.EXE
    JAVA$RMIREGISTRY_G_DEBUG.EXE
    JAVA$SERIALVER.EXE
    JAVA$SERIALVER_G.EXE
    JAVA$SERIALVER_G_DEBUG.EXE
  JAVA$SERVERTOOL.EXE JAVA$SERVERTOOL.EXE
    JAVA$SERVERTOOL_G.EXE
    JAVA$SERVERTOOL_G_DEBUG.EXE
  JAVA$TNAMESERV.EXE JAVA$TNAMESERV.EXE
    JAVA$TNAMESERV_G.EXE
    JAVA$TNAMESERV_G_DEBUG.EXE
Kit makeup Two separate BACKUP save sets -- one required, one optional. Vendor downloads and unpacks. No debug images or documentation. Single downloadable entity, including some documentation. (API Reference info in separate kit).
  Not intended for end-user installation. Intended for end-user.
  Uses BACKUP for unpacking. Uses PRODUCT to unpack and install.
Installation No installation per se. User manually unpacks into [.bin] and [.lib] within his application tree of files. Installs like any other OpenVMS product.
Integration with vendor's product Intended to be tightly integrated with vendor's product and shipped with vendor's application kit. Not integrated with any application. It is installed by end user into his environment independent of any application.
Additional Demo Programs   Save sets in [.VMS_DEMO] show how to write programs that interface with non-Java code.

For more information on bundling an application in a Java Archive (JAR) file, refer to Packaging Your Application in a JAR File on Sun's site.

When bundling the JRE with application software on the OpenVMS I64 platform, the following points should be considered:

  1. Software vendors should bundle the JRE files and an installer with the Java software they supply to end-users. HP suggests that the JRE be installed in its own subdirectory (called <JRE_RUNTIME_BASE> in Figure 1). This allows you to update the JRE independently of updates to your application, and vice versa.
  2. In addition to unpacking the files in the JRE, a number of symbols and logicals need to be set up to make your application run within the JRE. When you deploy your application, you will have to include your own .COM files that accomplish these setups. An JRE setup command file, JAVA$150_JRE_SETUP.COM, is deposited into the [.LIB] directory, resulting from restoring JRE-V150-2_A.SAV. This file contains the key commands you will need to merge into your application setup command file.
  3. The JRE operates with a special set of class libraries — RT.JAR. Your application must function with just these libraries.
  4. You are not allowed to redistribute any class files from the JDK, and your application should have no dependencies on these files. You can redistribute the jar files that are part of the JRE.
  5. HP recommends that you not rely on the CLASSPATH logical that might be on the target system, but explicitly identify the classpath by specifying the -cp option on the Java command line that invokes the JRE. (For more information on using the -cp option of the Java command, refer to Sun's Tools and Utilities documentation.)

    Hence, a typical Java command line when using the JRE will look like:

    $ JAVA -cp "/USER1$/APP-DIR/LIB/APPLICATION.JAR:." "Application"

Back to top

Problem Reporting

To report problems, refer to our Software Support web page.

 

© 2006, 2007 Hewlett-Packard Development Company, L.P.

Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license.

The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

Microsoft, Windows, and Windows NT are U.S. registered trademarks of Microsoft Corporation.

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

Printed in the US

Privacy statement Using this site means you accept its terms Feedback to Webmaster
© 2007 Hewlett-Packard Development Company, L.P.