Results 1 to 7 of 7

Thread: Jar file not working with Java Web Start

  1. #1
    Join Date
    Jan 2010
    Posts
    119

    Jar file not working with Java Web Start

    Hello,
    I have a Java Application, and wanted to start it with Java Webstart to run it later on a Web server. So I have a tutorial on a Java Webstart, I read and made the following steps:

    - All required classes in one.jar file is packed and these also signed, which also went well apparently (the command is issued, that the signing six months is valid). The jar file has worked out perfectly (application starts immediately).

    - Bank Account Tester.jar file and the Bank Account Tester.jnlp file are both in the source directory of an Apache webserver version 2.2, which machine installed on my local host and runs on the.

    - On this web server is also PHP 5.3.1 and MySQL 5.1.42 installed server.

    But now since few days, I have no idea, this configuration is not working at all. Any help will be great for me. Thank you.

  2. #2
    Join Date
    Dec 2009
    Posts
    292

    Re: Jar file not working with Java Web Start

    Let the program run in the java console and you just observe what is the exception or the error you are getting on the console. If you need you can try the following code

    Code:
    <?xml version="1.0" encoding="UTF-8 " standalone="no"?> 
    <jnlp codebase="address here" href="Bank Account temp.jnlp" spec="1.0 +"> 
        <information> 
            <title>bank account Simulator</ title> 
            <vendor>Loading</ vendor> 
            <homepage href="index.php"/> 
            <description>Simulates a bank counter</ description> 
            <description kind="short">Simulator</ description> 
        </ information> 
        <resources> 
    <j2se version="1.5 +"/> 
    <jar eager="true" href="Bank Account temp.jar" main="true"/> 
        </ resources> 
        <application-desc main- class="Bank Account temp"> 
        </ application-desc> 
    </jnlp

  3. #3
    Join Date
    Mar 2010
    Posts
    383

    Re: Jar file not working with Java Web Start

    After that I just Java Webstart version 1.01 installed and tried the bank account temp.jnlp file to run. Then start java webstart and loads the.jnlp file, which seems to be readable as well (no error message). After a short time, the message "application is launched," but then nothing happens anymore and the window will remain open indefinitely without that Application is started or anything is to see them. If I then close the window and once more will open directly file appears only this time the Java Web Start logo, and disappears after about 10-20 seconds again without that something has happened. The same result I get when I collect from the Apache Web server from a html file out to the.jnlp to access files. What should I do now? Please help me with this. Thank you.

  4. #4
    Join Date
    Jan 2010
    Posts
    119

    Re: Jar file not working with Java Web Start

    I get the following error in the console
    Code:
    "When you start / run the application, an error has occurred.
    Category: Error: Invalid Argument
    So unfortunately I can not very much start with, because I know what are the invalid arguments there. Any help will be great. Thank you.

  5. #5
    Join Date
    Dec 2009
    Posts
    192

    Re: Jar file not working with Java Web Start

    I think your jnlpfile has an error. You write the following:
    Code:
    <jar eager = "true" href = "Bank Account temp.jar"main =" true "/>
    I think it would be called like this:
    Code:
    Code:
    <jar href = "Bank Account temp.jar"download =" eager "main =" true "/>
    Just make the necessary changes to your code.

  6. #6
    Join Date
    Mar 2010
    Posts
    162

    Re: Jar file not working with Java Web Start

    Try the following times:
    Open the command prompt (under Accessories).
    Code:
    Change to the bin directory of the JRE (command: cd C: \ Program Files \ Java \ \ jre6)
    Navigate to this location and give the command:
    Code:
    javaws-verbose <jnlp-file>
    Instead of <jnlp-file> you obviously need the URL to your jnlpfile type. (For further information, please see: javaws-help on their official site.)

  7. #7
    Join Date
    Sep 2009
    Posts
    131

    Re: Jar file not working with Java Web Start

    So that Java webstart is integrated with Java. I'm just followed the tutorial, which has a link to version 1.01 of Java webstart and these instructions to install the included. Have now once again java (1.6.0_18) what changes do I have now on my own.jnlp file?

Similar Threads

  1. Java Console does not start
    By KALYAN23 in forum Software Development
    Replies: 6
    Last Post: 28-07-2010, 10:26 AM
  2. Exception in Java Web Start
    By Jaganmohini in forum Software Development
    Replies: 6
    Last Post: 27-07-2010, 01:15 PM
  3. How to Start programming in JAVA ?
    By Keegan in forum Software Development
    Replies: 11
    Last Post: 22-12-2008, 02:02 PM
  4. start/Run, start/Search, and start/Help and Support not working
    By Debbie in Plano in forum Windows XP Support
    Replies: 7
    Last Post: 18-04-2007, 11:08 AM

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,230,859.76679 seconds with 17 queries