|
|
|
This appendix describes the AppletViewer, an alternative to using Oracle JInitiator. The AppletViewer is a JDK component and an Oracle-supported product that client machines use to view applications running on the Forms Server. Upgraded versions are available for download from the Forms Developer Web site.
Note:The AppletViewer is only supported on Windows 95 and Windows NT 4.0.
To run applications in the AppletViewer, you must complete the following steps:
When running your application in the AppletViewer, requests to show a URL (for example, web.showDocument and RUN_PRODUCT) will be ignored by the AppletViewer. If this is the case, you will need to follow the process to trust the Forms applet, as described later in this chapter in Section C.3.1, "Trusting the Forms Applet by Registering Its Signature".
In order to prepare to run your application within the AppletViewer, make the AppletViewer available for download and inform your users that they will have to install the AppletViewer on their client machines. Complete the following:
To use the clientBrowser parameter, you must have security permissions to issue a system call that executes the named application. In general, when loading Java class files, the Forms applet is not trusted and, as such, cannot issue such system calls. However, when the Forms applet is trusted, it is able to issue these calls. The Forms applet is considered trusted when one of the following is true:
These HTML file examples assume that you trusted the Forms applet by registering its signature on your machine. If you trusted the Forms applet by locally installing the Forms Java class files instead, you should not download the F60ALL.JAR file. Therefore, remove the ARCHIVE="/.../f60all.jar" applet tag from your HTML file.
To set the clientBrowser parameter, do one of the following:
Add the clientBrowser Parameter to Your HTML File.
This option assumes that every client has its browser executable installed into the same physical directory because the physical path of the browser is hard-coded in the HTML file. For example:
<APPLET CODEBASE="/forms60code/" CODE="oracle.forms.engine.Main" ARCHIVE="/forms60code/f60all.jar" HEIGHT=480 WIDTH=640> <PARAM NAME="serverArgs" VALUE="module=start.fmx userid=scott/tiger"> <PARAM NAME="clientBrowser" VALUE="c:\programfiles\netscape\communicator\program\netscape.exe"> </APPLET>
Add the clientBrowser Parameter to Your HTML File and Have Each Client Modify Their JDK_SETUP.BAT File.
This option is best if there is a possibility that clients have installed their browser executables into different physical directories. It does assume, however, that all clients are using the same browser. For example, the HTML file might look like this:
<APPLET CODEBASE="/forms60code/" CODE="oracle.forms.engine.Main" ARCHIVE="/forms60code/f60all.jar" HEIGHT=480 WIDTH=640> <PARAM NAME="serverArgs" VALUE="module=start.fmx userid=scott/tiger"> <PARAM NAME="clientBrowser" VALUE="netscape"> </APPLET>
And JDK_SETUP.BAT would look like this:
SET CLASSPATH=C:\ORANT\JDK1.1\JDK\LIB\CLASSES.ZIP PATH C:\PROGRAM FILES\NETSCAPE\COMMUNICATOR\PROGRAM; C:\ORANT\JDK1.1\JDK\BIN;%PATH%
A signature allows client machines to verify that a file has been downloaded from a valid and trusted entity (a signer). This allows client machines to protect themselves from malicious or malfunctioning Java archive (JAR) files. In order for a JAR file to be validated by a client, the signature of that file must be registered on the client machine. Javakey is a Sun Microsystems command-line tool that generates digital signatures for JAR files.
The Forms applet is itself a signed JAR file. You have two options for registering the Forms applet signature. Choose one of the following:
To trust the Forms applet by registering its signature:
To trust the Forms applet by installing the Java class files locally:
To run an application from within the AppletViewer, complete the following steps:
To install the AppletViewer, use the Oracle Installer to install the JDK AppletViewer:
D:\setup.exe
and click OK.
To run the AppletViewer:
To invoke a Web browser from within the AppletViewer:
|
Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|