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 3 of 3

Thread: JNLP webstart application in localhost

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default JNLP webstart application in localhost

    Hello guys im using wamp server and im trying to create jnlp what i did is i add my jarfile application on www forder ("JavaApplication1.jar" "JavaApplication1.Main") then i try to write this code in notepad
    HTML Code:
    <?xml version="1.6" encoding="utf-8"?>
    <jnlp spec="1.6+" codebase="http://localhost:8080/" href="test.jnlp">
        <information>
            <title>Jnlp Testing</title>
            <vendor>YONG MOOK KIM</vendor>
            <homepage href="http://localhost:8080/" />
            <description>Testing Testing</description>
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.6+" />
            <jar href="JavaApplication1.jar" />
        </resources>
        <application-desc main-class="javaapplication1.NewJFrame" />
    </jnlp>
    and save as test.jnlp and i try to run it but it un able to run what is the problem of this?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JNLP webstart application in localhost

    Define unable to run...can you access the test.jnlp with a browse? Do you get a webstart message window? Are there exceptions?

  3. #3
    Junior Member
    Join Date
    Dec 2010
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: JNLP webstart application in localhost

    Quote Originally Posted by copeg View Post
    Define unable to run...can you access the test.jnlp with a browse? Do you get a webstart message window? Are there exceptions?
    It says in Application Error Window "Unable to launch the application" and i click details button and this is the error message
    start("
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8080/test.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(U nknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Un known Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Un known Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCache Entry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCache Entry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unkn own Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unkn own Source)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unkn own Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    ")end

Similar Threads

  1. Replies: 1
    Last Post: January 12th, 2011, 05:55 AM
  2. Replies: 6
    Last Post: September 19th, 2010, 08:33 PM
  3. [SOLVED] [help] the application file (.jad) for application does not appear to be the ....
    By ordinarypeople in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: April 4th, 2010, 03:50 AM
  4. Replies: 0
    Last Post: December 3rd, 2009, 04:43 PM
  5. can't start jnlp file
    By NARs in forum Java Applets
    Replies: 1
    Last Post: December 1st, 2009, 03:25 AM