Results 1 to 1 of 1
  1. #1
    skiungs is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default applet not found in web app

    I created a java application that i integrated with a java web application that has a jsp file. The jsp file is supposed to call the launch.jnlp, but everytime i launch jsp file i get the following error. Please help.

    Error message.

    exception: JNLP file error: launch.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct..
    java.io.FileNotFoundException: JNLP file error: launch.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unkno wn Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.io.FileNotFoundException: JNLP file error: launch.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.


    Code that is causing error message.

    The jsp file.

    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    >

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>WEB-BOOK</title>
    </head>
    <body>
    <div align="center">
    <h1>WEB-BOOK</h1>
    <table align="center" bgcolor="blue" border="1px">
    <tr>
    <th colspan="2" valign="middle">
    <h2>MyWebBook</h2>
    </th>
    </tr>
    <tr>
    <td>
    <applet width="500" height="400">
    <param name="jnlp_href" value="launch.jnlp"/>
    </applet>
    </td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    Launch.jnlp

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="file:/C:/Documents%20and%20Settings/sila%20kiunga/My%20Documents/NetBeansProjects/NWPHONE/dist/" href="launch.jnlp" spec="1.0+">
    <information>
    <title>NWPHONE</title>
    <vendor>sila kiunga</vendor>
    <homepage href=""/>
    <description>NWPHONE</description>
    <description kind="short">NWPHONE</description>


    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.5+"/>
    <jar eager="true" href="NWPHONE.jar" main="true"/>


    </resources>
    <applet-desc height="400" main-class="newpackage.TestJapplet" name="NWPHONE" width="500">

    </applet-desc>
    </jnlp>
    Last edited by skiungs; 08-26-2009 at 06:16 AM.

Similar Threads

  1. No JVM found error
    By rocky05 in forum New To Java
    Replies: 1
    Last Post: 01-27-2009, 04:41 PM
  2. no jre,jvm found error
    By rocky05 in forum Eclipse
    Replies: 2
    Last Post: 01-27-2009, 04:38 PM
  3. Web Application not found
    By adtd8 in forum Java Servlet
    Replies: 0
    Last Post: 07-27-2008, 10:27 PM
  4. GeoPoint Not found
    By nvidia in forum NetBeans
    Replies: 2
    Last Post: 05-28-2008, 10:31 PM
  5. 404 Not Found
    By mary in forum Java Servlet
    Replies: 5
    Last Post: 11-07-2007, 11:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •