Download .jnlp file when first time

Hi Everybody,
I am new bee for java web start.
We are having swing application which we want to distribute through Java Web Start. Client can run application through provided web link. we also want to download .jnlp file to the client machine when user clicked the link first time.
I go through different thread for the above problem in this forum, but though not getting clear idea as in our application, we need to generate dynamic .jnlp file. All solution posted for the above problem assuming that .jnlp file exists at some location, but in our case we have to generate it when user clicked it first time. Any body having some idea ?
Our second problem is, can it possible that user will run the swing application only when he click the link provided on the web server ? In our case authentication of user is done in our web application and when user will click the provided link user id and other information will be pass to swing application as parameters through .jnlp file. If that application will available offline user can run it through last downloaded .jnlp file without clicking the link , which will be not allowded. Also we are concern about multi user environment, as we are thinking to dynamic generation of .jnlp file , it may possible that other user running the same application noted .jnlp file version difference and will download the .jnlp file of other user ?
Can any body have any idea, how can we done the above scenario ?
Thanks in advance,
Dimpal

If you upgrade to Java 1.4.2 it will present a dialog asking for desktop
integration the first time you start the application.
Maybe that's what you want?

Similar Messages

  • HT201302 I have a new iPod Touch and am trying to download photos for the first time.  Both iPhoto & Image Capture recognize the device but don't seem to recognize the photos, or at least I can't import them.  Nothing happens when I click on anything in e

    I have a new iPod Touch and am trying to download photos for the first time.  Both iPhoto & Image Capture recognize the device but don't seem to recognize the photos, or at least I can't import them.  Nothing happens when I click on anything in either.

    If you manually open iPhoto do you not see the photos?
    Maybe here:
    iOS: Unable to import photos or device not recognized as a camera
    Yu are trying to impoort photos taken by or saved to the iPod, right? If the photos were synced to the iPod then iPhot does not work.

  • Aria2 does not download multiple files at a time

    I'm trying to speed up my system upgrades by using aria2, but it won't speed up anything as it does not download multiple files at a time.
    As per this wiki post, https://wiki.archlinux.org/index.php/Im … erformance , "using aria2", I've installed aria2 and added the line
    XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error \
    -m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf \
    --remote-time=true --summary-interval=60 -t5 -d / -o %o %u
    to the options section in pacman.conf. Pacman still works, but it isn't sped up. When pacman -Syu'ing, a normal line shows:
    #1 SIZE:1.3MiB/2.0MiB(63%) CN:1 SPD:50.0KiBs ETA:15s
    What's going on?
    P.S. I use the line reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist before doing a system upgrade.
    Last edited by bruno321 (2011-05-15 15:27:45)

    Using aria2c will download files over 5MB with multiple connections but will not download multiple files at the same time. Pacman calls aria2c with the first url, waits for it to finish, then calls aria2c with the second etc...
    If you want to download multiple packages simultaneously, see http://xyne.archlinux.ca/projects/pacman2aria2/

  • IE downloads jnlp-file

    I can not launch my application from IE.
    When I launch it from Command Prompt like this:
    javaws project.jnlp
    it works fine.
    But when I try to launch it from IE
    http://localhost:8080/project.jnlp
    it starts to download jnlp-file.
    What am I doing wrong?
    I use TomCat and it's web.xml file contains
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>

    Make sure web start is installed, which is looks like it is.
    That should associate itself with jnlp files.
    In Explorer, Tools, Folder Options, File Types tab
    should be an entry for JNLP files to launch with javaws.exe
    Also needs to be associated with application/x-java-jnlp-file mime type
    (web start should have set both of these up).
    Make sure the IE setting:
    Empty Temp Internet Files when browser is closed = off/unchecked
    Empty your IE cache after restarting tomcat making sure that mime type is set there too, and then try again.
    Something else you can try is to double click your jnlp file and make sure web start opens it.

  • No update-check on JNLP-file when start from other location than codebase

    we are using JWS version 1.0 and 1.4.2.
    Our clients have a common directory on the local disc which contains all the JNLP-files used in their organization. Some menu-links and some other applications are using this JNLP-files to launch and jump into the applications.
    The JNLP-file repository is provided by an http-URL location. The JNLP-files in the local directory are directed by the codebase-attribute to this repository.
    JWS processes the launch in following way:
    1. read the codebase and href-attribute from the launched JNLP-file.
    2. get timestamp from the original in the JNLP-repository
    3. check if already cached and with latest timestamp.
    4. download JNLP-file if not cached or not latest version.
    5. check/download all other resources.
    6. start the app.
    With JWS shipped with JRE 1.5 (Beta was fine) this doesnt work in the same procedure:
    1. copy the launched JNLP-file in the empty JWS-cache.
    2. set a new timestamp on the cached JNLP-file (it does not let the old timestamp).
    3. get timestamp from the original in the JNLP-repository (given with the codebase & href attribute)
    4. check if already cached and with the latest timestamp.
    5. download JNLP-file if not cached or not latest version. (will never appear because timestamp in cached version is newer)
    6. check/download all other resources.
    7. start the app. (with probably not latest resources)
    Is this behaviour ok or is this a Bug?

    hi Andy,
    we tried with 1.5.0_04, 1.5.0_06 and 1.5.0_07 and it was always the same problem.
    With the beta 1.5.0 (jawaws.jar's build.id = b64, 15/09/2004) it worked correctly.
    Roland.

  • "Safari cannot download this file" when I tried dl a .mobileconfig file

    Hi,
    I have been asked to research deployment of configuration to Ipod touch to determine if our clients will be able to use these devices on our secure network. According to the Enterprise Deployment Guide I should be able to send the Ipod Touch a .mobileconfig file:(http://manuals.info.apple.com/enUS/Enterprise_DeploymentGuide.pdf)
    But I'm getting the message "Safari cannot download this file" when I try to download the .mobileconfig file from our internal http portal.
    Any advice you have would be much appreciated. Thank you,
    M

    Hi M,
    There may be an issue with the website or the file, try emailing the profile to an account setup on the iPod touch.
    If the issue persists, try resetting or restoring the iPod touch.
    You can reset the iPod by holding the Home and Sleep/Wake buttons until you see the Apple logo as described here: http://docs.info.apple.com/article.html?artnum=305743
    This article: http://support.apple.com/kb/HT1414 will walk you through the restore process.
    Message was edited by: Jason L

  • After downloading updates for the first time, i was asked to restart my mac. it starting writing configuring installation. the staus bar just showed a little and remained like that for more than 3 hrs. i tried several times wit no success.

    after downloading updates for the first time, i was asked to restart my mac. it started writing configuring installation. the staus bar just showed a little and remained like that for more than 3 hrs. i tried several times wit no success. it has not updated my mac OS X 10.5.

    My clean install worked out alright, although I don't think it really fixed anything, rather gave me a couple more days of use 'till I have to send it in. Someone please help my get it running properly again...

  • Jnlp file called multiple times

    We're trying to pass HTTP parameters to our JNLP file (which is created by a .jsp file). When we run webstart from the command line (or a a web page), it seems like the JNLP file gets called multiple times. The first time our parameters are there, after that they are not. Why does webstart call the JNLP file multiple times? Has anyone else seen this.
    We're running Tomcat 4.x on Linux.
    From the command line we typed:
    javaws "http://localhost/helloWorld.jsp?hello=1&world=2"
    Tomcat Output:
    DEBUG: hello=1&world=2
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    JSP File:
    <!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page contentType="application/x-java-jnlp-file" %>
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
    spec="1.0+"
    codebase="http://localhost"
    href="http://localhost/helloWorld.jsp">
    <information>
    <title>Hello World</title>
    <vendor>Nobody</vendor>
    <application-desc>Hello World Application</application-desc>
    </information>
    <resources>
    <j2se version="1.3+"/>
    <jar href="lib/helloWorld.jar" main="true"/>
    </resources>
    <application-desc main-class="test.HelloWorldApp"/>
    </jnlp>
    <% System.out.println("DEBUG: " + request.getQueryString()); %>
    Hello World Source:
    package test;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class HelloWorldApp {
    public static void main(String[] args) {
    JFrame frame = new JFrame("Hello World");
    frame.getContentPane().add(new JLabel("Hello World", JLabel.CENTER), BorderLayout.CENTER);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.setSize(200,150);
    frame.setVisible(true);
    }

    I am seeing this exact same problem, also creating the JNLP via a JSP. Any input would be greatly appreciated.

  • Spool to PDF - Problems with downloading PDF file when converting with job

    Hi all!
    I've got a problem. I've got a program that writes a smartform into the spool. After that, I am using the function modules RSTS_GET_ATTRIBUTES and CONVERT_OTFSPOOLJOB_2_PDF to convert it into PDF. I retrieve a internal table with the binary content for the PDF file. Now i can download the file to the desktop by using the method cl_gui_frontend_services=>gui_download.
    But there is a problem: when the spool excesses 99 pages, the function module CONVERT_OTFSPOOLJOB_2_PDF asks the user via popup if the PDF should be created in background. If the user commits, the internal tables that should contain the binary PDF data is emtpy. A background job writes the binary data into the spool. The user has got an empty file that will be generated by cl_gui_frontend_services=>gui_download.
    So, is it possible to suppress the popup to create the PDF allways online? Or how can I write the PDF file if there will be create any spool id in background? You'll find my current code below.
    * Prüfen ob es die übergebene Spoolnummer überhaupt gibt
      SELECT SINGLE * FROM tsp01 INTO ls_tsp01 WHERE rqident = id_spoolid.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
    * TemSe-Objekte speichern sequentielle Daten. Ein TemSe-Objekt kann aus
    * mehreren Teilen bestehen. Dieser FB ermittelt die wichtigsten Attribute
    * eines TemSe-Objekts. Falls das Objekt aus mehreren Teilen besteht, werden
    * die Attribute entsprechend zusammengefaßt.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
        EXPORTING
          client        = ls_tsp01-rqclient
          name          = ls_tsp01-rqo1name
          part          = 1
        IMPORTING
          objtype       = ld_objtype
        EXCEPTIONS
          fb_error      = 1
          fb_rsts_other = 2
          no_object     = 3
          no_permission = 4
          OTHERS        = 5.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
      IF ld_objtype(3) = 'OTF'.
        lf_is_otf = 'X'.
      ELSE.
        lf_is_otf = ' '.
      ENDIF.
      IF ( lf_is_otf = 'X' ).
    *   Konvertiere OTF-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
    *        pdf_destination          = 'T'
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_pdf
          EXCEPTIONS
            err_no_otf_spooljob      = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_dstdevice        = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ELSE.
    *   Konvertiere ABAP-Liste-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_pdf
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ENDIF.
      WHILE ( lf_file_ok = '' ).
    *   Die in der Tabelle lt_pdf enthaltenen Binärdaten werden nun in eine
    *   Datei geschrieben. Da alle übergebenen Tickets in die gleiche Datei
    *   geschrieben werden, kann der im Speicher gehaltente Protokolleintrag
    *   gelesen werden
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize              = ld_numbytes
            filename                  = cd_filename
            filetype                  = 'BIN'
    *    append                    = SPACE
    *    write_field_separator     = SPACE
    *    header                    = '00'
    *    trunc_trailing_blanks     = SPACE
    *    write_lf                  = 'X'
    *    col_select                = SPACE
    *    col_select_mask           = SPACE
    *    dat_mode                  = SPACE
          confirm_overwrite         = 'X'
    *    no_auth_check             = SPACE
    *    codepage                  = SPACE
    *    ignore_cerr               = ABAP_TRUE
    *    replacement               = '#'
    *    write_bom                 = SPACE
    *    trunc_trailing_blanks_eol = 'X'
    *    wk1_n_format              = SPACE
    *    wk1_n_size                = SPACE
    *    wk1_t_format              = SPACE
    *    wk1_t_size                = SPACE
    *  IMPORTING
    *    filelength                =
          CHANGING
            data_tab                  = lt_pdf
          EXCEPTIONS
            file_write_error          = 1
            no_batch                  = 2
            gui_refuse_filetransfer   = 3
            invalid_type              = 4
            no_authority              = 5
            unknown_error             = 6
            header_not_allowed        = 7
            separator_not_allowed     = 8
            filesize_not_allowed      = 9
            header_too_long           = 10
            dp_error_create           = 11
            dp_error_send             = 12
            dp_error_write            = 13
            unknown_dp_error          = 14
            access_denied             = 15
            dp_out_of_memory          = 16
            disk_full                 = 17
            dp_timeout                = 18
            file_not_found            = 19
            dataprovider_exception    = 20
            control_flush_error       = 21
            not_supported_by_gui      = 22
            error_no_gui              = 23
            OTHERS                    = 24.

    Creating a PDF file with over 99 pages through SAP seems rather unreasonable to me. What are you printing - Encyclopedia Britannica? For cripes sake... Have you thought about creating more than one spool request or using something completely different? Why do you have to do this through spool? You can get Smartform output directly into PDF, there are a lot of example out there.
    The only solution that comes to mind is rather brutal - create a copy of the function module and get rid of the popup. Although it just might time out after that...

  • Cannot open .jnlp file when asked to open with firefox web browser in ubuntu 11.10 using firefox 6

    After upgrading to ubuntu 11.10 the firefox 6 browser cannot download and open .jnlp file from the interactivebrokers website. Usually I go to the IB website and download tws.jnlp file which is opened in the firefox web browser. But now when I click on the Open with Firefox Browser button, the firefox browser opens a new tab and display the same open window again.

    Seems that after upgrading to 11.10, jnlp files open with firefox instead of javaws (Java Web Start).
    If you right click the file on the download folder and choose "open with" you can manually select java web start.
    Ubuntu bug...
    You can right click any .jnlp file and select "properties", go to "Open With" tab, mark Sun Java 6 Web Start and click "Set as Default". Should fix it. I don't know what would happen if you have the default ubuntu java instead of Sun's. Maybe this wouldn't be necessary.

  • TechTool Pro copying large "deleted" files when I Time Machine my computer

    I have TechTool Pro 5 loaded on my MacBook Pro. I've noticed when I Time Machine the computer, about 4 gig is always (or seems to be) copied over to the time machine drive in files named "Trash Deletes". It puts them in my Application Support folder in my library.
    Is this TechTool backing up my emptying the trash - if so, it sure is taking up a lot of space o the time machine drive? Hopefully, I'm wrong here. I use "Timetracker" to see what files are being backed up thru Time Machine.
    Anyone else out there notice this?
    Thanks,
    Larry

    Although I own an older version of TT Pro I do not have it installed. I do not remember exactly what they install that is running in the background. What you might do, if it isn't in the documentation, is download Easy Find - CNet Downloads or MacUpdate - and use it to search for "techtool" or "micromat" which should find the item or items. However, I'm almost sure you could disable it in TT Pro's control panel for what to install.

  • My mac downloads aspx files when i browse?

    Hi,
    When I browse certain pages on the internet, Safari downloads .aspx files to my default download destination .. any idea why? These files are annoying as they accumulate and I have to delete them every time I surf ..

    Lots of information on aspx files here:
    http://en.wikipedia.org/wiki/ASP.NET
    ASP.NET pages, known officially as "web forms", are the main building block for application development.[8] Web forms are contained in files with an ASPX extension; in programming jargon, these files typically contain static (X)HTML markup, as well as markup defining server-side Web Controls and User Controls where the developers place all the required static and dynamic content for the web page. Additionally, dynamic code which runs on the server can be placed in a page within a block <% -- dynamic code -- %> which is similar to other web development technologies such as PHP, JSP, and ASP, but this practice is generally discouraged except for the purposes of data binding since it requires more calls when rendering the page.
    Another gift from Microsoft!

  • System tries to download .jnlp file through SSL

    Using Tomcat5 on Windows when running HTTPS, when I click the link to Launch my .jnlp file it just tries to download it to my file system. When I disable SSL and run nomally with HTTP, it works fine. Why won't JWS pick it up through HTTPS???
    THANKS!

    Check the mime-types... generally download errors happen if the mime-type is not properly delivered by the server. I fear it may be Tomcat does this.
    To check the mime-type, try to see inside the download-manager of the browser, or something such.
    paul

  • Firefox crashes whenever i want to install any addon or download any file. Some times i am receiving error while downloading any file like "could not be saved, because you cannot change the contents of that folder"

    I am the user of latest firefox 3.6.6 browser. I am getting problems of frequent crashes whenever i tries to install any addon. The crashes also occures whenever i want to download any file.
    I am also receiving errors while downloading any file like:
    "C:\Users\****\AppData\Local\Temp\******.001.part could not be saved, because you cannot change the contents of that folder.
    Change the folder properties and try again, or try saving in a different location. I already changed it many many times but still the same problem."
    Adobe flash palyer is also giving problems of not responding. I am using updated version of it already. Java is also updated.
    I already uninstalled firefox compeletly and re installed it many many times but still the same problem. I also scanned my computer with avira and malware bytes' Anti malware and got no dection. Please ractify this problem ASAP lest my profession will suffer.
    == Crash ID(s) ==
    b7f518f2-8d86-41ca-8bab-aee632100709; 1d790e10-d8eb-4904-98c9-94bc62100708; f042d319-b9f8-42ed-a8cb-57c7d2100708

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • How to download certificate for the first time programmatically?

    Hi, I'm accessing a https server which has a self signed certificate for the first time. I was trying to download the certificate using like
    cert = sslsession.getPeerCertificates()[0]
    However I got the following exception: SSLPeerUnverifiedException
    If I have the certificate on disk and I installed it using keytool to the keystore, I could see the keychain using this method. But is there a way in java to download the certificate for the first time?
    Many thanks.
    minji

    hi ejp, thanks a lot for the link, it really helps a lot.
    Now I'm having another problem. I could now download the certificate and store in my keystore. but if I immediately reconnect to the https web page, I still got the exception telling me the certificate was not found:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    This should not happen as I have already had this certificate in my keystore. If I rerun the program, there's no problem, indicating the certificate was really there. I first guessed I might have to again call System.setProperty("javax.net.ssl.trustStore", "mycacerts") but that does not help.
    anybody with an idea?

Maybe you are looking for