Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Regarding java Web Start Technology

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

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


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default 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.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. newbie start java program with switches
    By fortune2k in forum Java Theory & Questions
    Replies: 4
    Last Post: November 1st, 2010, 05:13 PM
  2. Start With JAVA
    By infoprovider in forum The Cafe
    Replies: 2
    Last Post: July 28th, 2010, 04:34 AM
  3. Java programmer wanted for new start up
    By zico10 in forum Paid Java Projects
    Replies: 0
    Last Post: March 7th, 2010, 07:53 AM
  4. How should i write and compile java with Ubuntu?
    By Talk Binary in forum Java IDEs
    Replies: 19
    Last Post: May 7th, 2009, 05:29 AM
  5. Best way to learn java for beginners
    By JavaPF in forum The Cafe
    Replies: 0
    Last Post: May 8th, 2008, 04:37 AM