Results 1 to 3 of 3
Thread: JNLP Problem
- 11-03-2010, 12:41 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 40
- Rep Power
- 0
JNLP Problem
Hello all this is a pretty simple question and i know that there are a few browsers just wont load an app using a jnlp, but instead will DL that to say the desktop or where ever you have picked then run said app. Here is my jnlp code
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="launch.jnlp" spec="1.0+">
<information>
<title>WebApp2</title>
<vendor>Owner</vendor>
<homepage href=""/>
<description>WebApp2</description>
<description kind="short">WebApp2</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.5+"/>
<jar eager="true" href="WebApp2.jar" main="true"/>
</resources>
<applet-desc height="10" main-class="webapp2.WebAppForm" name="WebApp2" width="10">
</applet-desc>
</jnlp>
I need for this to work using Safari mostly and ive searched everywhere for the changes i need to make for this to run.
- 11-03-2010, 01:17 PM #2
Member
- Join Date
- Feb 2009
- Posts
- 40
- Rep Power
- 0
Also here is the HTML that loads the JNLP
<html>
<head>
<title>Blackbird Control Talk</title>
</head>
<body background="Heavenly.jpg" bgproperties="fixed">
<h3>Applet is loading...</h3>
<script language="JavaScript" type="text/javascript"><!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></script>
<comment>
<script language="JavaScript" type="text/javascript"><!--
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf ("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
//--></script>
</comment>
<script language="JavaScript" type="text/javascript"><!--
if (_ie == true) document.writeln('<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "10" HEIGHT = "10" codebase="http://java.sun.com/update/1.6.0/jinstall-6u13-windows-i586.cab#Version=6,0,0,3"><xmp>');
else if (_ns == true && _ns6 == false) document.writeln('<embed ' +
'type="application/x-java-applet;version=1.6" \
WIDTH = "10" \
HEIGHT = "10" \
jnlp_href ="launch.jnlp"/ ' +
'scriptable=false ' +
'pluginspage="http://java.sun.com/products/plugin/index.html#download"><xmp>');
//--></script>
<applet WIDTH = "10" HEIGHT = "10"></xmp>
<param name="type" value="application/x-java-applet;version=1.6">
<param name="scriptable" value="false">
<PARAM NAME = "jnlp_href" VALUE="launch.jnlp"/>
</applet>
</embed>
</object>
<!--
<APPLET WIDTH = "10" HEIGHT = "10">
<PARAM NAME = "jnlp_href" VALUE="launch.jnlp"/>
</APPLET>
<script src="http://java.com/js/deployJava.js"></script>
<script>
var attributes = {
codebase: [applet codebase],
code: [class to launch],
archive: [JAR file with the applet],
width: [applet width],
height: [applet height]
};
var parameters = { [applet parameters] };
var version = [JDK version];
deployJava.runApplet(attributes, parameters, version);
</script>
-->
</body>
</html>
- 11-05-2010, 03:09 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 40
- Rep Power
- 0
Here is the error i keep gettin using IE
JNLParseException[ Could not parse launch file. Error at line 0.]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescript orFromCache(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescript orFromCache(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
at sun.plugin2.main.client.PluginMain.initManager(Unk nown Source)
at sun.plugin2.main.client.PluginMain.access$300(Unkn own Source)
at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Error while initializing manager: JNLParseException[ Could not parse launch file. Error at line 0.], bail out
Similar Threads
-
Error message when trying to run a JNLP file
By dewitrydan in forum New To JavaReplies: 9Last Post: 08-28-2010, 04:42 PM -
Where is javax.jnlp package?
By bleah in forum New To JavaReplies: 2Last Post: 05-20-2010, 01:04 AM -
how should I use jnlp.versionEnabled property?
By pedram in forum Java AppletsReplies: 0Last Post: 02-09-2010, 03:02 PM -
Webhosts that support JNLP
By JonMikko in forum New To JavaReplies: 0Last Post: 02-08-2008, 02:45 PM -
<URGENT> problem after linking .jnlp
By bongia in forum New To JavaReplies: 14Last Post: 11-18-2007, 05:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks