0

I've decided to make my app java web start, i prepared the .jar file and .jnlp. Here is .jnlp:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" 
    codebase="http://www.mypage.com/jar/" 
    href="BoxChat.jnlp">
    <information>
        <title>BoxChat</title>
        <vendor>Kitty</vendor>
    </information>
    <resources>
        <!-- Application Resources -->
        <j2se version="1.6+"
              href="http://www.mypage.com/jar/"/>
        <jar href="chat.jar" main="true" />

    </resources>
    <application-desc
         name="BoxChat"
         main-class="chat.class"
         width="320"
         height="240">
     </application-desc>
     <update check="background"/>
</jnlp>

It crashes and says that i have no java 1.6 installed, but im SURE that i have it. What is the problem? Thanks for any replies.

4
  • Did you add JAVA_HOME in environment variable? Commented Jan 19, 2012 at 20:30
  • no, i use eclipse, how to do that? Commented Jan 19, 2012 at 20:34
  • Window--Preferences--Java--installed JREs--> Check which java version you have. If it not 1.6, you need to click on Add--> select your jdk 1.6 location. Restart your eclipse. Commented Jan 19, 2012 at 20:39
  • That JNLP is invalid. Be sure to check it using JaNeLA. Commented Jan 20, 2012 at 0:06

3 Answers 3

2

Look through the tips in Java Web Start - Runtime Versioning. Look particularly for references to the JNLP Runtime Settings dialog.

JLNP Runtime Settings dialog

Sign up to request clarification or add additional context in comments.

Comments

1

When you install java usually there are two steps. The first is jdk and when it is finished then it asks you whether you would like to install jre. And webstart requires JRE installed correctly. So I would simply sujest to install it again and make sure that you perform the second step (jre).

Comments

1

Looks like the problem is with the below line:

<j2se version="1.6+" href="http://www.mypage.com/jar/"/>

You need to specify the vendor url only if you want to request a specific JRE version for example 1.4.2_04. Remove the href attribute and re-try.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.