File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes An error occurred while launching/running the application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "An error occurred while launching/running the application." Watch "An error occurred while launching/running the application." New topic
Author

An error occurred while launching/running the application.

seema pal
Ranch Hand

Joined: Nov 17, 2005
Posts: 39
sir
when we started the application then there is error and our code is (jnlp file) which we written for this application--------------


<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp
codebase="file:///home/guest/seema/ScormPlayer/"
href = "Player.jnlp" >
<!--jnlp
codebase = "http://172.28.44.20:8080/EditorFrame" href = "EditorFrame.jnlp" -->
<information>
<title>ScormPlayer</title>
<vendor>Scorm</vendor>
<homepage href="http://www.google.com" />
<description>Player</description>
<description kind="short">A demo of the capabilities
of the ReloadEditor Graphical User Interface.</description>
<icon href="file:///home/guest/seema/ScormPlayer/reload-scormplayer.gif"/>
<offline-allowed/>
<security>
<all-permissions/>
</security>

</information>
<resources>
<j2se version="1.4+"/>

<jar href="file:///home/guest/seema/ScormPlayer/scorm.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/ant.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/bootstrap.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/bsh-core-2.0b1.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/catalina.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-beanutils.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-collections.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-digester.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-logging-api.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jakarta-regexp-1.2.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jasper-compiler.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jasper-runtime.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/naming-common.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jdom.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/naming-resources.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-diva.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-dweezil.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-jdom.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-moonunit.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-support.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlet.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlets-common.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlets-default.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlets-invoker.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/struts.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/tomcat-coyote.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/tomcat-http11.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/tomcat-util.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/xercesImpl.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/xml-apis.jar" />
</resources>
<application-desc main-class="uk.ac.reload.scormplayer.client.gui.ScormPlayerFrame"/>
</jnlp>
~
this is the error which is occured------------------------------

Unexpected exception: java.lang.ExceptionInInitializerError

java.lang.ExceptionInInitializerError

at uk.ac.reload.scormplayer.client.gui.ScormPlayerFrame.<init>(ScormPlayerFrame.java:178)
at uk.ac.reload.scormplayer.client.gui.ScormPlayerFrame.main(ScormPlayerFrame.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission scormplayer.properties.file read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at uk.ac.reload.scormplayer.properties.ScormPlayerProperties.<clinit>(ScormPlayerProperties.java:59)
... 13 more
sir please give the reply very quickly as soon as possible.
Ben Harrison
Greenhorn

Joined: Jan 26, 2006
Posts: 27
I see you put the </resource> that I suggested in the previous post...why keep starting a new thread?

also http://faq.javaranch.com/view?EaseUp

and looks like you need to set your properties file permissions to be readable by your application....
 
Consider Paul's rocket mass heater.
 
subject: An error occurred while launching/running the application.