Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

code conversion

843802Nov 20 2006 — edited Nov 22 2006
hi

i am working in a team that maintains and develops a web based app.
the current way of starting off the app is to go into a web page which loads an applet and runs the app.
i was asked to take that page, and change it so that the java web start will load the applet.

i wrote the jnlp code for it and it seems to work to some point, but because i am not too familiar with the source code and i am new to web start, the applet loads but gets a null pointer exception. i suspect that i didn't write the jnlp file properly.


this is the old code (in html):

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93">

< WIDTH = "300" HEIGHT = "150"><XMP>

<APPLET ARCHIVE="erp_ws.jar,plugins_ws.jar" CODE = "erp.applet.impl.ERPApplet.class"></XMP>

<PARAM NAME = ARCHIVE VALUE = "erp_ws.jar,plugins_ws.jar,swt_ws.jar" >

<PARAM NAME = CODE VALUE = "erp.applet.impl.ERPApplet" >

<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4.0">

<PARAM NAME = "loginservice" VALUE = "//182.3.1.196:4000/erplogin">

</APPLET>

</OBJECT>



and this is the jnlp code :

<?xml version="1.0" encoding="utf-8"?>

<!-- JNLP File -->

<jnlp spec="1.0" codebase="http://mns-kesem" href="erp.jnlp">

<information>

<title>MNS-KESEM</title>

<vendor>MNS-KESEM Team</vendor>

<homepage href="index_tmp.htm"/>

<description>MNS-Kesem Application</description>

<description kind="short">BAHAD 20's ERP System</description>

<icon href="kesem.ico"/>

<icon kind="splash" href="kesem_splash.jpg"/>

</information>

<security>

<all-permissions/>

</security>

<resources>

<j2se version="1.4"/>

<jar href="erp_ws.jar"/>

<jar href="plugins_ws.jar"/>

</resources>

<applet-desc documentBase="http://mns-kesem" name="ERPApplet" main-class="erp.applet.impl.ERPApplet" width="300" height="150">

<param name="ARCHIVE" value="erp_ws.jar,plugins_ws.jar,swt_ws.jar"/>

<param name="CODE" value="erp.applet.impl.ERPApplet"/>

<param name="TYPE" value="application/x-java-applet;version=1.4.0"/>

<param name="LOGINSERVICE" value="\\182.3.1.196:4000\erplogin"/>

</applet-desc>

</jnlp>

could anyone tell me what havn't i written well?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2006
Added on Nov 20 2006
5 comments
235 views