Create JNLP

How to do the above?  

I've got my JAR file and i was advised to distribute my JAR using Java Web Start.  
LVL 16
ellandrdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ellandrdAuthor Commented:
Anything easier to follow?

Alot of reading in that - havnt much time on my hands...
0
JavatmCommented:
Here's mine customized it with your own :

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp spec="1.5+"codebase="http://www.myjavaserver.com/~jmsoan/cube-j/" href="CubeJ.jnlp">
  <information>
    <title>Cube-J Java IDE</title>
    <vendor>By : Jan Michael Soan</vendor>
    <homepage href="docs/help.html"/>
    <description>CubeJ Demo Application</description>
    <description kind="short">A demo of the capabilities
    of CubeJ Java IDE.</description>
    <offline-allowed/>
  </information>
  <security>
      <all-permissions/>
  </security>
  <resources>
    <j2se version="1.2+" java-vm-args="-esa -Xnoclassgc"/>
    <jar href="CubeJ.jar"/>
  </resources>
  <application-desc main-class="com.soan.jm.JRunProperty"/>
</jnlp>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

ellandrdAuthor Commented:
i dont understand - your giving me this xml type file but what do i do with it?
0
JavatmCommented:
Here's how you validate the Jar Application that you will use for your JNLP :

Creating a Key:
c:\javac\javac\bin\keytool -genkey -keystore passKey -alias YourAlias

Verifying a Key:
c:\javac\javac\bin\keytool -list -keystore passKey

Creating a Jar File:
c:\javac\javac\bin\jar -cvfm Your.jar Manifest.MF com/*.* icons/*.*

Signing a Jar File:
c:\javac\javac\bin\jarsigner -keystore myKeystore Your.jar YourAlias

Hope that helps . . .
Javatm

0
JavatmCommented:
> i dont understand - your giving me this xml type file but what do i do with it?
That's the entire JNLP file demo that you can customize for your webstart ;)
0
JavatmCommented:
1. 1st you have to create a JNLP file.
2. You have to create a Key.
3. You have to create your Jar for your Application.
4. You have to sign your Jar using your key.
5. You can now deploy it over the web and call your JNLP like :
<a href="CubeJ.jnlp">click here</a>
0
ellandrdAuthor Commented:
but in order for the user to call myapp.jnlp, they need JRE installed first right?
0
JavatmCommented:
Yes
0
JavatmCommented:
If they dont have java it will tell them and that should let them know that they need to use one.
0
ellandrdAuthor Commented:
OK

i'll give it ago and if i get into problem i'll get back to you, otherwise i'll be accepting your solution...
0
JavatmCommented:
ok thanks ;)
0
ellandrdAuthor Commented:
what do i call the xml file? whats its extension?
0
JavatmCommented:
Simple as YourFile.jnlp
0
ellandrdAuthor Commented:
cheers guys!
0
JavatmCommented:
Thanks for accepting glad I could help ;)
0
zzynxSoftware engineerCommented:
Thanx 4 axxepting
0
ellandrdAuthor Commented:
should it take long to start?

look here:

http://www.seandelaney.co.uk/javawebstart/pocketcalculator/readme.html

try it...

its been on checking latest version for about 5 mins now...

and when i try yours (Cube-J) its done in about 1min....

p.s did you create Cube-J?

here is my pocketcalculator.jnlp file:

<?xml version="1.0" encoding="utf-8" ?>
<!-- JNLP File for PocketCalculator Application -->
<jnlp spec="1.5+" codebase="http://www.seandelaney.co.uk/javawebstart/pocketcalculator/" href="PocketCalculator.jnlp">
      <information>
            <title>Pocket Calculator</title>
            <vendor>Sean Delaney</vendor>
            <homepage href="etc/help.html" />
            <description>Java Web Start Pocket Calculator Application</description>
            <description kind="short">A Pocket Calculator that supports floating point calculations for the basic operations addition, subtraction, multiplication and division.</description>
            <icon href="etc/logo.png"/>
            <offline-allowed />
            <shortcut online="false">
                  <desktop></desktop>
                  <menu submenu="Sean Delaney"></menu>
            </shortcut>
      </information>
      <security>
            <all-permissions />
      </security>
      <resources>
            <j2se version="1.4.2+" />
            <jar href="sPocketCalculatorApp.jar" />
      </resources>
      <application-desc main-class="u0207372.gui.PCStandalone" />
</jnlp>
0
ellandrdAuthor Commented:
oops its just started now... asking me if i want desktop icons...

think I didnt have the latest JRE... so i was updating it for me...
0
JavatmCommented:
> p.s did you create Cube-J?
Yap I created it and the site itself ;)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.