Results 1 to 1 of 1
  1. #1
    allelopath is offline Member
    Join Date
    Feb 2011
    Posts
    1
    Rep Power
    0

    Default Testing jnlp file locally

    I'm trying to test jnlp locally on OS X.
    In a directory I have an html file, a jnlp file, and a jar file.
    The jnlp file cannot find the jar file.
    I've tried codebase=".", but this doesn't work:
    BadFieldException[ The field <jnlp>codebase has an invalid value: .,.]

    The machine's local ip address is 192.168.0.6
    codebase="http://192.168.0.6" href="Users/apple/Documents/ccs.jnlp
    That gives this error: com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://192.168.0.6/Users/apple/Documents/ccs.jnlp

    May there is something required before the "Users" directory in that path?
    How can I get this to work?
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="." href="ccs.jnlp">
    <information>
    <title>Some TItle</title>
    <vendor> - Some Vendor</vendor>
    <homepage href="http://www.somewhere.edu/home.html" />
    <offline-allowed />
    </information>
    <resources>
    <j2se version="1.5+" />
    <jar href="ccs.jar" />
    </resources>
    <application-desc main-class="ccs.MyApplication" />
    </jnlp>
    Last edited by allelopath; 02-12-2011 at 09:35 PM.

Similar Threads

  1. Error message when trying to run a JNLP file
    By dewitrydan in forum New To Java
    Replies: 9
    Last Post: 08-28-2010, 04:42 PM
  2. Replies: 0
    Last Post: 04-28-2010, 03:33 PM
  3. Problems getting jar file running locally
    By edpfister in forum Java Applets
    Replies: 2
    Last Post: 03-09-2009, 08:01 PM
  4. Not able to generate excel file locally
    By wickedrahul9 in forum Advanced Java
    Replies: 4
    Last Post: 10-23-2008, 11:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •