Regarding java Web Start Technology
Hi.........
I am trying to deploy a core java application created in Eclipse IDE using java web start.
For this I download a dynamictreedemo application and execute it. It works good. I created a jar file
of my application using eclipse and then the jar file specified in the jnlp. In jnlp file I specified the absolute path name of jnlp file in the codebase tag and the name of the file in the href and also the main class is specified in it.
. But when I tried to implement the same code for launching it doesn't work. I don't know
what the real problem is? I here paste the jnlp file and html file that I have written for my application.
Please help as early as possible.
Thanks & Regards
code for jnlp file
Code Java:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://home/manza/Lamppackage/"
href="Lamp.jnlp">
<information>
<title>Lamp Application</title>
<vendor>Lamp Team</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
<jar href="Lamp1.jar" main="true" />
</resources>
<application-desc
name="Lamp Application"
main-class="Lampclasses.ProjectLamp"
width="300"
height="300">
</application-desc>
<update check="background"/>
</jnlp>
Code for html
HTML Code:
<body>
....
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
// using JavaScript to get location of JNLP file relative to HTML page
var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);
var url = dir + "Lamp.jnlp";
deployJava.createWebStartLaunchButton(url, '1.6.0');
</script>
....
</body>
Re: Regarding java Web Start Technology
What do you mean when you say "it doesn't work"?
PS- Saying things like "help as early as possible" is considered rude, and will actually decrease your chances of getting help.