Results 1 to 7 of 7

Thread: Exception in Java Web Start

  1. #1
    Join Date
    Jan 2010
    Posts
    126

    Exception in Java Web Start

    Hello,
    I have a small problem with JWB. When I run my jnlp file, there is an exception under the following terms: "JNLPException [category: Download Error: Exception: java.net.UnknownHostException. This launch is a test. I also enclose the contents of my jnlp file. It may contain gross errors as I discovered. Any help how to resolve this error? Thank you.

  2. #2
    Join Date
    Nov 2009
    Posts
    446

    Re: Exception in Java Web Start

    You can try the following code

    Code:
    <? Xml version="1.0" encoding="utf-8"?>
    <! - JNLP File for SwingSet2 Demo Application ->
    <jnlp
      sp="1.0 +"
      codebase="file: / / D: / development / Project / example "
      href="example.jnlp">
      <information>
        <title>Application example Test</ title>
        <vendor>BDI / EMAT-BPO</ vendor>
        <homepage href="temp.html"/>
        <description> Demo Application</ description>
        <description kind="short">A demo </ description>
        
        <offline-allowed/>
      </ Information>
      <security></ security>
      <Resources>
        <j2se version="1.3"/>
        <jar href="tset.jar" hand="true"/>
      </ resources>
      <application-desc -hand class="MainTest"/>
    </ jnlp>

  3. #3
    Join Date
    Mar 2010
    Posts
    197

    Re: Exception in Java Web Start

    If the above code does not work then you can try to replace these
    codebase ="file: / / D: / development / project /exmaple"
    by
    Code:
     codebase ="file: / / / D: / development / project /exmaple"
    And see what is the output of this.

  4. #4
    Join Date
    Mar 2010
    Posts
    360

    Re: Exception in Java Web Start

    Question java web start as long as there is

    1 / I already have a j2se application is it possible to move easily in java web start?

    2 / Java web start is just an applet if I understand the thing but with all the restrictions of applets?

    3 / What do I need to create a server jws ultimately?

  5. #5
    Join Date
    Nov 2009
    Posts
    347

    Re: Exception in Java Web Start

    1) no problem to place an application in java web start ... it need only be packaged in jar (and signed if it acceded to the network (other than the server start) or the system)

    2) it's not really an applet is independent of the browser. You have two types of restrictions: no restrictions or sandbox classqiue but in this case, you should sign your jar file (which is very simple). java web start cache manages jar (actually, it checks the last modified date on each server startup) and you can authorize or deny an application to run offline

    3) can be used to jws from a file system (AC can serve as an installer) or a single web server. It just has to have the web server mime type of jnlp said (if not, you just add a line of conf has this server, or tweak it with a scripting language such PHP or perl

  6. #6
    jakeswatson Guest

    Re: Exception in Java Web Start

    Ya i have also got the same problem having the same exception when developing the Java

  7. #7
    Join Date
    Dec 2007
    Posts
    2,291

    Re: Exception in Java Web Start

    Quote Originally Posted by jakeswatson View Post
    Ya i have also got the same problem having the same exception when developing the Java
    Can you please specify in details what's the problem you are facing? I also had a similar issue when upgrading to the latest JRE. Our issue seemed to be related to this bug that should be fixed in 6u14. Perhaps your issue is also related. The only workaround we found was to clear the webstart cache and launch the application again. In our experience this seems to be the solution to most webstart issues.

Similar Threads

  1. How to handle Java Runtime exception
    By Jaganmohini in forum Software Development
    Replies: 5
    Last Post: 03-08-2010, 12:16 PM
  2. Malformed exception in java
    By Amy Adams in forum Software Development
    Replies: 5
    Last Post: 24-03-2010, 08:25 AM
  3. Headless Exception in Java
    By Adrina_g in forum Software Development
    Replies: 5
    Last Post: 20-02-2010, 08:36 PM
  4. How to catch an Exception in Java?
    By SKREECH in forum Software Development
    Replies: 4
    Last Post: 18-02-2010, 04:50 AM
  5. Code for Exception in Java
    By taher in forum Software Development
    Replies: 4
    Last Post: 15-01-2010, 09:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,144,160.50439 seconds with 17 queries