The moose likes JNLP and Web Start and the fly likes JNLP just Install and Update Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "JNLP just Install and Update" Watch "JNLP just Install and Update" New topic
Author

JNLP just Install and Update

Rafael Morales
Greenhorn

Joined: May 03, 2011
Posts: 2
Hi forum,

My question is very simple. Where can I fin real examples about how to Install and/or update my Application.jar. All I find is with <application-desc /> but not with <installer-desc>. Now I only replaced the application with installer but I get this error message:


MissingFieldException[ Falta el siguiente campo requerido del archivo de ejecución: <application-desc>|<applet-desc>]
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


This is my JNLP file:

<!--
/*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* - Neither the name of Oracle or the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-->

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://191.9.10.238/webstart/" href="index.jnlp">
<information>
<title>Testing App</title>
<vendor>Telcel</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
<jar href="myApp.jar" />
</resources>
<installer-desc main-class="com.telcel.myApp"/>
</jnlp>


Also, where can I find examples for update this App.jar if I make changes.

Regards
 
IntelliJ Java IDE
 
subject: JNLP just Install and Update
 
Threads others viewed
NoClass definitopn found error
Starting Suns Sample App webpad
Maximised window goes slow
want to send pdf file to client from server. pdf is generated at server
license question: Bear's Front Man
MyEclipse, The Clear Choice