World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 10-23-2009, 12:29 PM   #1
shanavasct
Junior Member
 
Join Date: Oct 2009
Posts: 1
shanavasct is on a distinguished road
Default JNLP- getting error when using image injar file

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
shanavasct is offline   Reply With Quote
Old 10-23-2009, 08:35 PM   #2
QA_2
Junior Member
 
Join Date: Oct 2009
Posts: 17
QA_2 is on a distinguished road
Default

This doesn't sound like a WorldWind error. I suggest you take it over to a JNLP or Tomcat forum.
QA_2 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plug-in: PlaceNameMaker canosso Add-ons & Scripts 4 03-30-2011 03:29 PM
Plugin: My favorite Icons - Add Icons/Favorite canosso Add-ons & Scripts 26 03-02-2010 03:06 AM
WW1.3.2-Plugin: Layer Edit canosso Add-ons & Scripts 21 02-27-2010 04:37 AM
connecting to server fleak Technical Support 4 08-11-2009 09:37 PM
Configuring layer image file formats tag Feature Discussion 4 05-10-2008 04:59 AM


All times are GMT +1. The time now is 03:19 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.