Auf Thema antworten

Moin moin,


ich habe eine Desktop-Applikation, die ich gerne über Webstart den Auftraggebern zur Verfügung stellen würde.

Also habe ich mir, die Java-Seite angeschaut...und mir folgendes html-Document geschrieben.


[HTML]

<html>

<body>

  

    <script src="http://www.java.com/js/deployJava.js"></script>

    <script>

        // using JavaScript to get location of JNLP file relative to HTML page

        var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);

        var url = dir + "/Verkaufstrichter/verkaufstrichter-webstart.jnlp";

        deployJava.createWebStartLaunchButton(url, '1.6.0');

    </script>

 

</body>

</html>[/HTML]


beides liegt auf dem Desktop (sowohl das html-File, als auch ein Ordner Verkaufstrichter, der [c]verkaufstrichter-webstart.jnlp[/c] sowie alle weiteren Jars beinhaltet!


soweit so gut...ich bekomme eine Webseite angezeigt, die einen Launch-Button hat und die VERSUCHT^^ meine Applikation zu laden.


meine JNLP-Datei sieht wie folgt aus:

[XML]

<?xml version="1.0" encoding="UTF-8"?>

<jnlp spec="1.0+"

    codebase=".//Verkaufstrichter"

    href="verkaufstrichter-webstart.jnlp">

    <information>

        <title>Verkaufstrichter</title>

        <vendor>Thiemann</vendor>

    </information>

    <resources>

        <!-- Application Resources -->

        <j2se version="1.6+"

              href="http://java.sun.com/products/autodl/j2se"/>

        <jar href="./Verkaufstrichter" main="true" />


    </resources>

    <application-desc

         name="Verkaufstrichter"

         main-class="Installer"

         width="800"

         height="600">

     </application-desc>

     <update check="background"/>

</jnlp>   

[/XML]


ich habe schon einiges probiert, insbesondere mit [c]/[/c] , [c]//[/c] , [c]\[/c] und [c]\\[/c]

aber evtl. kann mir jemand kurz erklären, wie ich dieses Ding anständig zum laufen bekomme, bzw. ob ich class-Dateien zusätzlich irgendwo reinpacken muss, ob meine Verweise richtig gesetzt sind.


Vielen Dank schonmal :)


Es erscheint eine Meldung, die Anwendung konnte nicht gestartet werden. Und ein zweites "JOptionPane(?)" in der Webstart die Anwendung laden will...aber nicht kann:


Ach ja...die Fehlermeldung:

[code=Java]

com.sun.deploy.net.FailedDownloadException: Ressource konnte nicht geladen werden: file:/C:/Users/Cheffe/Desktop/Verkaufstrichter/Verkaufstrichter//

    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)

    at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

[/code]

bzw. die gekappselte Ausnahmemeldung:

[code=Java]

java.io.IOException: Invalid jar file

    at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)

    at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)

    at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)

    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)

    at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

[/code]


edit:

invalid dürfte das jar-file nur sein, weil er es nicht findet...ansonsten kann ich das ohne probleme starten. (händisch)



Oben