Oracle Forms 10 running as application in Java Webstart

Many people miss in webforms the possibility to run forms as a separate application. They have a lot of problems to handle browser back button an so on.

The good news – there is way to do this with Java Webstart.

The bad news – it is not supported by Oracle. But we run this since four years now and is very stable.

Following I show you the basic configuration for forms 10g. In later posts I will show you examples for forms 11g, how to handle forms parameters and further more.

Let’s start:

I assume you have an running unix or linux application server with forms 10.1.2.
Put following code as webstart_10g.jnlp to directory <Oracle Home>/j2ee/home/default-web-app

<jnlp spec="1.0+" codebase="http://localhost.localdomain:7778/forms/java/">
    <title>Webstart Test Oracle Forms 10g</title>
    <homepage href="null"/>
    <description>Webstart Test Oracle Forms 10g</description>
  <update check="timeout" policy="always"/>
    <java version="1.6.0"/>
    <jar href="frmall.jar" download="eager" main="true"/>
  <applet-desc name="Webstart Test Oracle Forms 10g" main-class="oracle.forms.engine.Main" width="990" height="660">
    <param name="background" value="no"/>
    <param name="logo" value="no"/>
    <param name="serverApp" value="default"/>
    <param name="lookAndFeel" value="oracle"/>
    <param name="allow_debug" value="true"/>
    <param name="separateFrame" value="false"/>
    <param name="em_mode" value="1"/>
    <param name="latencyCheck" value="true"/>
    <param name="networkRetries" value="240"/>
    <param name="serverArgs" value="module=test.fmx useSDI=yes"/>
    <param name="serverURL" value="http://localhost.localdomain:7778/forms/lservlet?ifcfs=http://localhost.localdomain:7778/forms/frmservlet?config=jpi"/>
    <param name="colorScheme" value="teal"/>
    <param name="splashScreen" value="no"/>
    <param name="dontTruncateTabs" value="true"/>

Start java webstart with your jnlp url, here is an example in linux:

./javaws http://localhost.localdomain:7778/j2ee/webstart_10g.jnlp

Java webstart comes up with the standard test.fmx from the forms services installation:

Screenshot show the succesful start of test.fmx in java webstart

Isn’t it easy?

, , , ,

  1. #1 by Shemeer on February 20, 2013 - 08:58

    I have a problem.
    The size of the window is less than Normal applet window which we run from browser.
    How can I increase the window size as normal as applet?

    • #2 by Torsten Kleiber on February 20, 2013 - 13:43

      There are two positions which influence the size.

      First is the forms size itself which is inititially defined in /yourformshome/forms/server/formsweb.cfg:

      # Forms applet parameter
      # Forms applet parameter

      Remember this can be overwritten in configuration sections in the same file.

      In our case the paraemters in the jnlp file itself must be a little bit higher than this values, I had to try to find the exact values.

      <jnlp spec="1.0+" codebase="http://localhost.localdomain:7778/forms/java/">
        <applet-desc name="Webstart Test Oracle Forms 10g" main-class="oracle.forms.engine.Main" width="990" height="660">
      • #3 by Shemeer on February 20, 2013 - 13:52

        Each form has its ows seperate size.
        So the botton part in each form is not appearing.
        In Forms Properties > Coordinate System > we put Real , Pixel 9,19. This will effect the window size. The applet from browser is working fine according to this settings. But when running as webstart the botton part disappearing. If we give Window Resize Allowed True it can increase the size of the window. It is need display to automatically.

  2. #4 by Torsten Kleiber on February 20, 2013 - 14:01

    1. Do you have set width an height in the jnlp to greater values than in formsweb.cfg?
    2. Do you overwrite the width and height of formsweb.cfg in a section or via the url in non webstart mode? If yes, set jnlp values to greater values than this.

  3. #5 by Farookh on July 28, 2015 - 07:56

    Really appreciated brother for publishing such a wonderful articles .. I able to run the test.fmx without any issue.

    While deploying my own customized forms which uses some other jar file apart from frmall.jar like frmwebutil.jar ,icons.jar,JImageViewer.jar,jdic.jar,eHTMLBrowser.jar .. I am getting error “Error:JAR resources in JNLP file are not signed by same certificate”

    FYI .. I am running test.jnlp file locally from c:\ drive and test.jnlp codes are as well.

    Webstart Test Oracle Forms 10g

    Webstart Test Oracle Forms 10g

  4. #7 by alex on February 5, 2016 - 16:26

    This works great. Thank you for time saved! 😉

  5. #8 by HERVE on September 23, 2016 - 19:44

    Hi Torsten,

    I use your article to implement jnlp solution in order to avoid browser issues. It work fine !! Thanks

    But i have 2 little non blocking problems :
    1. when i use useSDI=yes , some button above are not visible, i try to use clientdpi parameter but it not work fine. Notice that i dont have that issue with browsers. I put useSDI=no and it see all the content of my canvas. Are you aware of that ?
    2. we can not resize windows where the Applet is executed unless do it programmaticaly set_windows_poperty !! have you a solution ?

    ################ my code inspired by you ########

    Webstart Test Oracle Forms 11g
    Webstart Test Oracle Forms 11g

    <param name="serverURL" value="http://localhost:8888/forms/lservlet?ifcfs=http://localhost:8888/forms/frmservlet?ifsessid=formsapp.&acceptLanguage=“/>


    Thanks a lot

    • #9 by Torsten Kleiber on October 3, 2016 - 21:39

      For 1. – I don’t remember of such problems and have for long time no forms 10 Environment to test this anymore.
      For 2. – see existing comments in for forms 11 here

  6. #10 by Sushanth on November 7, 2016 - 07:38

    Have anyone tried opening forms other than Test.fmx

  7. #12 by Mustafa on March 23, 2017 - 11:32

    Hi, we are using Oracle Forms version. I tried Java Web start. But I always get an error bad main-class. How can I pass these error? Do you have suggestions

  8. #16 by Ahmed Hassan on July 4, 2019 - 18:53

    Hi Torsten
    Thanks a lot for this article,it really helped me,but i have a problem which is i can’t run report after calling the form using webstart.
    I’ve noticed that i can do it on the application server it self but on the client i can’t.
    do i miss any thing ?
    Thanks in advance

  9. #18 by sergio on August 14, 2019 - 16:03

    Hello, it almost work for me, When I do the javaws (.jnlp file) it open the application, but it doesn’t show anything, on the console and the log look’s fine like if every thing is working good. any idea?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.