6 Replies - 1696 Views - Last Post: 07 May 2011 - 04:18 AM

#1 kochu_suja   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 06-April 11

Regarding Java Web Start

Posted 03 May 2011 - 01:06 PM

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
   
<?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
<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>



Is This A Good Question/Topic? 0
  • +

Replies To: Regarding Java Web Start

#2 Dogstopper   User is offline

  • The Ninjaducky
  • member icon

Reputation: 2972
  • View blog
  • Posts: 11,223
  • Joined: 15-July 08

Re: Regarding Java Web Start

Posted 03 May 2011 - 01:16 PM

Moved to Java Help.
Was This Post Helpful? 0
  • +
  • -

#3 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3652
  • View blog
  • Posts: 16,779
  • Joined: 20-September 08

Re: Regarding Java Web Start

Posted 04 May 2011 - 01:51 PM

Quote

codebase="http://home/manza/Lamppackage/"


That doesn't look like a 'real' deployment codebase. It looks like a file url. You really need a proper web-based url. Otherwise, for one thing, there's no point in using webstart

This post has been edited by g00se: 04 May 2011 - 01:59 PM
Reason for edit:: clarification

Was This Post Helpful? 1
  • +
  • -

#4 kochu_suja   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 06-April 11

Re: Regarding Java Web Start

Posted 05 May 2011 - 10:52 AM

View Postg00se, on 04 May 2011 - 01:51 PM, said:

Quote

codebase="http://home/manza/Lamppackage/"


That doesn't look like a 'real' deployment codebase. It looks like a file url. You really need a proper web-based url. Otherwise, for one thing, there's no point in using webstart


Will this work if we rewrite codebase=http://localhost:8080/ and
place jnlp file and jar file in the ROOT folder of the Apache Tomcat?
Was This Post Helpful? 0
  • +
  • -

#5 kochu_suja   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 06-April 11

Re: Regarding Java Web Start

Posted 06 May 2011 - 04:59 PM

hai everybody.........

I created a jar file of my java application and jnlp file.
Then I put it in the ROOT folder of the Apache Tomcat web server.then the tomcat is started.
But when I execute it by typing http:/localhost:8080/Lamp.jnlp ,
I got an error message.
HTTP Status 404 - /Lamp.jnlp

type Status report

message /Lamp.jnlp

description The requested resource (/Lamp.jnlp) is not available.


Then I created a simple html page in the ROOT folder.
But the same error occurs.
I don't know what the actual problem is. The operating system used is
Linux Fedora.
Plz help me??

This post has been edited by kochu_suja: 06 May 2011 - 05:02 PM

Was This Post Helpful? 0
  • +
  • -

#6 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12680
  • View blog
  • Posts: 45,864
  • Joined: 27-December 08

Re: Regarding Java Web Start

Posted 06 May 2011 - 05:06 PM

Duplicate threads merged. This is getting ridiculous. STOP DUPLICATE POSTING!!!
Was This Post Helpful? -1
  • +
  • -

#7 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3652
  • View blog
  • Posts: 16,779
  • Joined: 20-September 08

Re: Regarding Java Web Start

Posted 07 May 2011 - 04:18 AM

Quote

Will this work if we rewrite codebase=http://localhost:8080/ and
place jnlp file and jar file in the ROOT folder of the Apache Tomcat?


That's better, but bear in mind that if it works at all, it will only work on boxes in your own network. If it's not working, test it first by putting another type of content in the web root and see if you can view that
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1