Hi All,
I am devoloping an application with swing as front end and
tomcat as web server.Now I am using jnlp to start my application. My jar have several image files. But when running without using an image file in jar and commenting the code section using image, it works fine. When image is used the following error shows by the webstart.
An error occurred while launching/running the application.
Title: Notepad Demo
Vendor: The
Java(tm) Tutorial: Sun Microsystems, Inc.
Category: Security Error
access denied (java.io.FilePermission images//Curveline.jpg read)
I tried putting the image file working directory and in a seperate folder named "images" in the jar file. Now I tries to run my application from the jar directly avoiding the web server to find whats the error.
Using the command "file:///C:/jnlp/helloworld.jnlp"
and my jnlp looks like this
---------------------------------
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Notepad -->
<jnlp spec="1.0+"
codebase="file:///c:/jnlp/""
href="helloworld.jnlp">
<information>
<title>Notepad Demo</title>
<vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
<description>Notepad Demo</description>
<description kind="short">ClickMeApp uses 3 custom classes plus several
standard ones</description>
<offline-allowed/>
</information>
<resources>
<jar href="helloworld.jar"/>
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc
main-class="CurveLineFrame"
width = "900"
height = "600"
/>
</jnlp>
-----------------------------------------
Please help me
Regaards..
Shanavas