Auto Open Java .jnlp Files

Users on my website are prompted to "open" or "save" .jnlp files. Is there a way that I can force it to automatically open without prompting the user? I have already added this to my .htaccess file:
AddType application/x-java-jnlp-file .jnlp
And it doesn't seem to do the trick...
Any help would be great, thanks!

Select the text on the line below by dragging across it. Don't include the blank space at the end of the line. Only the text should be highlighted.
java -jar
Copy the selected text to the Clipboard (command-C).
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V), then press the space bar.
Now switch to the Finder and and select one of the items that are causing the problem. Drag it into the Terminal window. More text will be added to what you entered.
Click in the Terminal window to activate it, then press return.
The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
Post any lines of output that appear below what you entered — the text, please, not a screenshot.

Similar Messages

  • Problem opening java code file

    I downloaded some code for a slide out menu and am unable to open the file after unzipping it. Yes, I am a beginner and know near to nothing about java.
    Here's the message that came up:
    Script: C:\Documents and Setting\etc...etc
    Documents\passion\ssm6_6\ssmitmes.js
    Line: 1
    Char:1
    Error: Syntax error
    Code: 800A03EA
    Source: Microsoft JScript compilation error
    So what's with that? I know it's my computer but I don't know where to go for answers so I thought here'd be a good start.
    Any hints are greatly appreciated, thanks ya'll!!

    There is some errror in The ssmitmes.js java script file. Just try to edit it and clear it.

  • Fail to open java source file

    i just learn about java. but i find that i fail to open the java source that i had download from the net. do i need addition software to open it? if i had installed the jbuilder already?

    You should be able to open any .java file in Wordpad or Notepad. JBuilder just makes the code look pretty.

  • Stop firefox from prompting to open jnlp file

    Love JWS!!
    Works great for me on both IE and FF browsers using a little bit of JavaScript.
    The only drawback I see is that Firefox will prompt the user to open file.jnlp with the default download/open dialog.
    Anyone know how to prevent this?
    Do you implement the JS in a manner that is different, allowing seamless function in FF too?
    heres what my launch page looks like for the notepad example;
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en" />
    <meta name="GENERATOR" content="PHPEclipse 1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Demo Web Launch</title>
    <script language="JavaScript" type="text/javascript"> 
    var detect = navigator.userAgent.toLowerCase();
    var windowsIE = (checkPlatform("msie") && checkPlatform("win"));
    function checkPlatform(string)
        place = detect.indexOf(string) + 1;
        return place;
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
    <script language="JavaScript" type="text/javascript">
      if (windowsIE) {
        document.write("<OBJECT codeBase=http://java.sun.com/update/1.5.0/jinstall-1_5_0_05-windows-i586.cab classid=clsid:5852F5ED-8BF4-11D4-A245-0080C6F74284 height=0 width=0>");
        document.write("<PARAM name=app VALUE=http://java.sun.com/products/javawebstart/apps/notepad.jnlp>");
         document.write("<PARAM NAME=back VALUE=false>");
         document.write("</OBJECT>");
    if (navigator.mimeTypes && navigator.mimeTypes.length) {
         webstartAvailable = navigator.mimeTypes['application/x-java-jnlp-file'];
    if (!webstartVersionCheck("1.5")) {
         window.open("http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&host=java.com",
            "needdownload");
    function webstartVersionCheck(versionString) {
        // Mozilla may not recognize new plugins without this refresh
        navigator.plugins.refresh(true);
        // First, determine if Web Start is available
        if (navigator.mimeTypes['application/x-java-jnlp-file']) {
            // Next, check for appropriate version family
            for (var i = 0; i < navigator.mimeTypes.length; ++i) {
                pluginType = navigator.mimeTypes.type;
    if (pluginType == "application/x-java-applet;version=" + versionString) {
    return true;
    launchTID =setInterval('launchJNLP("http://java.sun.com/products/javawebstart/apps/notepad.jnlp")',
         100);
    function launchJNLP(app) {
    if (webstartVersionCheck("1.5")) {
    clearInterval(launchTID);
    window.location = app;
    </script>
    </body>
    </html>

    Right, well I was more thinking about other end users than myself, and their first visit.
    I think the prompt with an unknown file type might be discomforting for some of my visitors.
    Did I read right however, that with the updates to 1.6 will come a fix to this?
    In other words, Joe Blow, first-timer comes, clicks, and voila! open application, just like IE.
    Thanks!

  • Firefox asks me everytime on JNLP files rather than its set 'Java Web Start'

    See I have classes with a 'Java Web Start' program which every week I download different JNLP files to start the Java program.
    I have set fire fox to use 'Java Web Start Launcher' for JNLP files but every time it ignores my setting and still asks every time. What can I do to make not ask and open the JNLP files?
    This Happened: Firefox does this all the time.
    I have Firefox 5.0 Installed.

    Hi,
    You mention that "I've downloaded "jcert.jar", "jnet.jar" and "jsse.jar" and put them in "..jre/lib/ext" used by JWS in client". Did you manually move these jar files into ..jre/lib/ext or using jnlp extension. I been trying to use jnlp extension (wanted to make it unnoticable to our client) to do this for a while now without luck. Can you tell me how you going about do this?
    thanks.

  • Always prompted to save JNLP file

    Hello! We have a simple servlet that basically just queries a few things off of the HttpServletRequest and spits back a dynamically generated JNLP file. For some reason, when we were running with Tomcat 4.0.6 this worked fine, but with the upgrade to Tomcat 4.1.29 it does not. IE always prompts to open or save the file - it never just launches JWS automatically anymore.
    Any suggestions on what we can fix? I'll put the interesting parts of the servlet below.
    Thanks in advance!
    -Angelina
    Servlet:
    public class JNLPServlet extends HttpServlet{
        public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
            try {          
                response.setHeader("Cache-Control", "public");
                response.setContentType("application/x-java-jnlp-file");
                String sessionId = getSessionId(request);
                ServletOutputStream out = response.getOutputStream();
                java.net.InetAddress[] hostNetAddrs =
                              java.net.InetAddress.getAllByName(request.getServerName());
                String hostIpAddr = hostNetAddrs[0].getHostAddress();
                out.println(generateJNLP(sessionId, request.getServerName(),
                                         hostIpAddr, request.getRemoteUser()));
                out.flush();          
            catch (IOException ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_SERVICE_UNAVAILABLE, ex.getMessage());
            catch (Exception ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_INTERNAL_SERVER_ERROR, ex.getMessage());
        protected String generateJNLP(String sessionId, String host, String ip, String userName){
            StringBuffer buf = new StringBuffer();
            buf.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
            buf.append("<jnlp spec=\"1.0+\" codebase=\"http://" + ip + ":80/cmv2/\">\n");
            buf.append("<information>\n");
            buf.append("<title>App V2.3 on " + host + "</title>\n");
            buf.append("<vendor>EMC Corporation</vendor>\n");
            buf.append("<homepage href=\"http://www.emc.com\" />\n");
            buf.append("<description>Program for monitoring performance.");
            buf.append("</description>\n");
            buf.append("<icon href=\"cm.gif\" width=\"32\" height=\"32\" depth=\"3\" size=\"1k\" />\n");
            buf.append("<offline-allowed />\n");
            buf.append("</information>\n");
            buf.append("<security>\n");
            buf.append("<all-permissions />\n");
            buf.append("</security>\n");
            buf.append("<resources>\n");
            buf.append("<j2se version=\"1.4+\" href=\"http://java.sun.com/products/autodl/j2se\"");
            buf.append("initial-heap-size=\"64m\" max-heap-size=\"194m\" />\n");
            buf.append("<property name=\"host_name\" value=\"" + host + "\"/>\n");
            buf.append("<property name=\"host_port\" value=\"80\"/>\n");
            buf.append("<property name=\"host_IP\" value=\"" + ip + "\"/>\n");
            buf.append("<property name=\"secure_host_port\" value=\"443\"/>\n");
            buf.append("<property name=\"session_id\" value=\"" + sessionId + "\"/>\n");
            buf.append("<property name=\"user_name\" value=\"" + userName + "\"/>\n");
            buf.append("<jar href=\"cmv2.jar\" />\n");
            buf.append("<jar href=\"ohj-jewt-4_1_9.jar\" />\n");
            buf.append("<jar href=\"help-4_1_9.jar\" />\n");
            buf.append("<jar href=\"oracle_ice-5_06_3.jar\" />\n");
            buf.append("<jar href=\"emcshared.jar\" />\n");
            buf.append("<jar href=\"xerces.jar\" />\n");
            buf.append("</resources>\n");
            buf.append("<application-desc main-class=\"com.emc.wclient.Login\">\n");
            buf.append("</application-desc>\n");
            buf.append("</jnlp>\n");
            return buf.toString();
    }

    The underlying problem is a combination of tomcat 4/5 being more standard and IE being less standard. Tomcat changed to automatically add ";charset=ISO-8859-1" to the end of the Content-Type header while IE appears to not correctly process the Content-Type header.
    IE maintains a list of known MIME types in the registry under [HKCR]\MIME\Database\Content Type. There you will find an entry for 'application/x-java-jnlp-file' which indicates that this MIME type is treated as a file with the suffix '.jnlp'.
    Unfortunately, IE treats EVERYTHING after the Content-Type: as the MIME type NOT just the stuff between the ':' and the ';'. Thus instead of looking for a registry entry for 'application/x-java-jnlp-file' it winds up looking for 'application/x-java-jnlp-file;charset=ISO-8859-1" and doesn't find it.
    If you duplicate the 'application/x-java-jnlp-file' entry with the name 'application/x-java-jnlp-file;charset=ISO-8859-1' everything works. Alternatively, if you make sure the 'file name' portion of the URL which requests the jnlp spec has the suffix '.jnlp' IE will work correctly. If you are generating the jnlp spec via your own servlet you can control the behavior of Tomcat by calling 'setCharacterEncoding(null)' on the response object (note this is not a method of the HttpServletResponse interface, you have to cast to the underlying concrete type).
    So, I think IE's use of the 'suffix' is non-standard and IE's handling of the Content-Type header field is just broken. If you can make the requesting URL have the .jnlp suffix you are ok; otherwise, there does not appear to be a good solution.

  • Jnlp file shown as XML in Internet Explorer

    My problem is somewhat complex and have given me a headache while it seem to be a completely erratic behaviour. (Erratic, not over time, but over different computers.)
    The main trouble is that I've got two separate webservers serving jnlp files for a production and a test environment. A user can access both servers and there no troubles finding and clicking at jnlp-files. There is however troubles while the jnlp-files in the test environment are shown as XML ("xmltext" in the Internet Explorer way) files.
    But only when using Internet Explorer. The problem do not occur when using Netscape and never in the production environment (webserver).
    I've triple checked the mimetype configuration of both the webservers and they are ok.
    The result of a "get", from both webservers, is (except for the timestamps):
    HTTP/1.1 200 OK
    Server: Netscape-Enterprise/4.1
    Date: Tue, 11 Jun 2002 14:05:32 GMT
    Content-type: application/x-java-jnlp-file
    Last-modified: Tue, 26 Mar 2002 15:58:27 GMT
    Content-length: 1763
    Accept-ranges: bytes
    Connection: close
    The client computer is running Win2000, Internet Explorer v5.50 and a newly installed JavaWebStart.
    Well, there are more to it. This behaviour is for some users at the company. There are users that can, with no problem, run the application deployed at the webserver in the test environment.
    A user who can not load jnlp-files in the test environment using his computer, can be able to load the program at another computer as he logs in.
    Is there anyone who can help me out with this one?
    How come the user(s) at a computer (and one login account) have different Internet Explorer behaviour when getting a jnlp file from two seperate webservers (using same webserver mime setup) when other users (computers) don't?

    I've seen a lot of messages concerning the response of the webserver in posts of this JWS&JNLP forum. Some people gives the advise to use telnet to get the server response. I've used this code (based upon some free sun code in some tutorial trail I think it was).
    import java.io.*;
    import java.net.MalformedURLException;
    import java.net.Socket;
    import java.net.URL;
    * Programmed using the beautiful Java programming tool
    * <a href="http://www.intellij.com/idea/">Idea</a>.
    * If you have not used it, try their free 30day trial version out
    * (clean and nice (un)install, no nags, fully functional). I can not work without it.
    * (This is not ment to be an advertisment but merely my personal recomendation.)
    * <p>
    * Usage:
    * <code>
    * % HttpResponse http://www.ibitec.se/index.html
    * % HttpResponse http://www.intellij.com/idea
    * % HttpResponse http://www.anyhost.com/anyjnlpfile.jnlp
    * </code>
    public class HttpResponse {
        private static int HTTP_PORT = 80;
        public static void main(String[] args) {
            for (int i = 0; i < args.length; i++) {
                System.out.println("Getting server response for url:\n\"" + args[i] + "\"\n");
                try {
                    URL url = new URL(args);
    if (url.getPort() != -1) HTTP_PORT = url.getPort();
    if (!(url.getProtocol().equalsIgnoreCase("http"))) {
    System.err.println("Sorry. I only understand Http not protocol " + url.getProtocol());
    continue;
    Socket socket = new Socket(url.getHost(), HTTP_PORT);
    OutputStream theOutput = socket.getOutputStream();
    PrintWriter pw = new PrintWriter(theOutput, false); // no auto-flushing
    String EOL = "\r\n"; // native line endings are uncertain so add them manually
    pw.print("GET " + url.getFile() + " HTTP/1.0" + EOL);
    pw.print("Accept: application/x-java-jnlp-file, text/plain, text/html, text/*" + EOL);
    pw.print(EOL);
    pw.flush();
    InputStreamReader isr = new InputStreamReader(socket.getInputStream());
    BufferedReader br = new BufferedReader(isr);
    BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
    int character;
    while ((character = br.read()) != -1) bw.write((char)character);
    bw.flush();
    } catch (MalformedURLException e) {
    System.err.println("\"" + args[i] + "\" is not a valid URL.");
    } catch (IOException e) {
    System.err.println(e);
    if (args.length == 0)
    System.err.println("Usage: " + HttpResponse.class.getName() + " <url1> [url2 url3 ...]");

  • 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.

  • How to open a .doc file in MS word?

    Hello
    Can any body direct me to any api or library or sample, where by if you have word document in your local machine, you can run a java program to open that file in MS word. Basically Microsoft word is opened with the local file in your machine and displayed to the user.
    I looked for a while on this, could find anything...
    Your help is really appreciated.
    Thanks
    Jeevan

    >
    Can any body direct me to any api or library or sample, where by if you have word document in your local machine, you can run a java program to open that file in MS word. Basically Microsoft word is opened with the local file in your machine and displayed to the user.>[Desktop.open(File)|http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html#open(java.io.File)]. (Note that here - a word Doc would be opened in Open Office - but that is more useful since Word is not installed.)
    >
    Your help is really appreciated.>For my part, your thanks are best expressed by assigning [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to the answer, and marking it as 'correct' or 'helpful'.

  • How to change the argument input in a jnlp file?

    A question associated with the following few lines of jnlp codes:
    <application-desc main-class="Main">
    <argument>arg</argument>
    </application-desc>
    My question is: "How can 'arg' be changed dynamically?
    Thanks for help.

    Thank Dietz for help.
    I tried the following jsp code. But it can launch the application only when "test2.jnlp" file exists. "argument to change" can't be passed to the application.
    Thanks.
    <% response.setContentType("application/x-java-jnlp-file");
    out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    out.println("<jnlp ");
    out.println("spec=\"1.0+\" ");
    out.println("codebase=\"http://tang:8080/examples/rtla/\"");
    out.println("href=\"test2.jnlp\">");
    out.println("<information> ");
    out.println("<title>RTLAFrame viewer</title> ");
    out.println("<vendor>XXX, Inc.</vendor> ");
    out.println("<description>RTLAviewer Application Demo</description>");
    out.println("<description kind=\"short\">A viewer.</description> ");
    out.println("<offline-allowed/> ");
    out.println("</information> ");
    out.println("<security> ");
    out.println("<all-permissions/>");
    out.println("</security> ");
    out.println("<resources> ");
    out.println("<j2se version=\"1.3+\"/>");
    out.println("<jar href=\"test.jar\"/> ");
    out.println("</resources> ");
    out.println("<application-desc main-class=\"RTLAFrame\">");
    out.println("<argument>argument to change</argument>");
    out.println("</application-desc> ");
    out.println("</jnlp> ");
    %>

  • Dynamic generation of jnlp file

    I'm dynamically generating a jnlp file using a jsp to pass run-time parameters over to my Java application thusly:
    <%
    response.setContentType("application/x-java-jnlp-file");
    String userName = request.getParameter("username");
    String password = request.getParameter("password");
    String batchId = request.getParameter("batchid");
    out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    out.println("<jnlp ");
    out.println("spec=\"1.0+\" ");
    out.println("codebase=\"http://server/directory\" ");
    out.println("href=\"this jsp file\">");
    ... other jnlp stuff...
    out.println("<application-desc main-class=\"myApp.myClass\">");
    out.println("<argument>" + userName + "</argument>");
    out.println("<argument>" + password + "</argument>");
    out.println("<argument>" + batchId + "</argument>");
    out.println("</application-desc>");
    out.println("</jnlp>");
    And use args[] to attempt to get the passed parameters in the Java application:
    userName = args[0];
    password = args[1];
    batchId = args[2];
    However, they don't seem to be passed over to the application as I get NullPointerExceptions. If I try to trace the state of the arguments by adding:
    FileOutputStream f = new FileOutputStream("w:output.txt");
    BufferedWriter w = new BufferedWriter(new OutputStreamWriter(f, System.getProperty("file.encoding")));
    w.write("userName: " + userName);
    w.write("password: " + password);
    w.write("batchId: " + batchId);
    f.flush();
    f.close();
    The output file is completely empty.
    1. Am I passing the arguments in wrongly?
    2. Why is the output not being written in the file?
    My thanks in advance for any assistance offered.
    Erkton

    Erkton,
    I use a similar approach and it does work. The main gotchas I found were typos. I would suggest temporarily changing the
    response.setContentType("application/x-java-jnlp-file");
    line to
    response.setContentType("text/xml");
    and looking at your JNLP file as XML and verifything that you got everything write. Look for beginning and end tags, stuff like that.
    Once you have it right then switch it back to JNLP.
    One other thing to look out for is Internet Explorer doesn't like jnlp files unless they end with a .jnlp extension. I had to rename my jnlp files to end with .jnlp instead of .jsp for IE to parse them correctly. I don't think thats the issue you are running into, but you may want to look out for it.

  • When i click on a photo file in windows , elements opens, then i have to go back into windows and click again to open file , earlier version opens program an file how can i get elements 12 to do the same?

    Elements

    The way I got around the situation was to write a custom folder action and attach it to my Downloads folder. The good thing about this is that it works irrespective of the browser du jour I'm using.
    This way you can define any filetype you're interested in to auto-open when a file is created in the Downloads folder (or any other folder of your choosing).
    It's not that tricky to add. I think I posted the code here many moons ago so I'll try and track it down...
    Edit: It was a post to macosxhints.com that I last linked to: http://www.macosxhints.com/article.php?story=20050122214044554#comments
    Hope some of that helps.

  • Cannot download a .jnlp file

    I'm encountering an error while downloading a .jnlp file. Everytime I try to download a .jnlp file it just shows me the source code for the jnlp.

    I had the same problem.
    Try clearing your browser cache.
    If you accessed the jnlp file in your browser before you set up the application helper (application/x-java-jnlp-file .jnlp), the browser would have cached the page and displayed it as text.
    If that doesn't fix it, make sure you have set up the web server to handle the jnlp mime type. From the Web Start developer docs:
    -snip-
    Each Web server has a specific way in which to add MIME types. For example, for the Apache Web server you must add the following line to the .mime.types configuration file:
    application/x-java-jnlp-file JNLP
    -snip-
    Then make sure you have set up your browser to launch <JRE_HOME>/javaws/javaws when it encounters the jnlp mime type. In Netscape, this is done using "Application Helpers".

  • Calling JNLP file via Servlet

    Hi Folks,
    I need to pass runtime parameters to my jnlp file from URL param, like ?requestNum=12345&mergeId=1.
    So I created a Servlet to process the request and add the requestParams at runtime in the JNLP file,
    In the doGet Method I have teh following piece of code,
    String[] args = new String[]{"requsetNum",request.getParameter("requestNum"),"mergeId",request.getParameter("mergeId")};
    response.setContentType("application/x-java-jnlp-file");
    PrintWriter out = response.getWriter();
    //It writes the jnlp content prperly in console,          System.out.println(JnlpFileContentBase.readBeforeArgElementsContent()+JnlpFileContentBase.populateArguments(args)+JnlpFileContentBase.readAfterArgElementsContent());
    //I split the jnlp file content before and after the argument area out.println(JnlpFileContentBase.readBeforeArgElementsContent()+JnlpFileContentBase.populateArguments(args)+JnlpFileContentBase.readAfterArgElementsContent());
    out.close();
    But when i run on server the above the jnlp is not starting up,
    Am i missing something in the doGet method? is the PrintWriter out object is enough to write back the content?
    Please help me to find out what am missing out here.
    Thanks
    Subash

    Hi Andrew,
    Thanks for notifying that, but that due to my testings with several combinations, I copied the file and kept direcly under WEB-INF and under the webapps/ElemFinder and several places to see it could be retried or not. And hence copied one of the errors. Nothing worked btw.
    I suspected initially it could be because of calling another jnlp file, but now i have my consolidated single jnlp file, but still have the FileNotFoundException for the jar file I have,
    sb.append("<jar href=\"WEB-INF/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar\"/>\n"); // code from Servlet
    This is the firs jar resource under the resource elements
    Where I get the Exception,
    java.io.FileNotFoundException: http://localhost:8080/ElemFinder/ElemFinderEngineInvoker/WEB-INF/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    I think its basically issues with reading the resource files,
    I tried with several options for this file either, placing under WEB-INF, under webapps/ElemFinder ... etc. Nothing seems to be working,
    Any entries to be put in web.xml for this?
    Pls help me to get rid of this....
    Thanks
    Subash
    PS: BTW i dint try in teh util u gave sice the jnlp already is downloading from my App, do you think still needed to check in the util?

  • 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.

Maybe you are looking for