Java web start for packaging

what to do to make web based installer like JWS(JAVA WEB START) FOR PACKAGING?

Java Web Start does indeed ship with Mac OS X 10.1.
Another option is OpenJNLP at http://openjnlp.nanode.org which works on all platforms including Mac OS 9 and other JDK1.1 platforms.

Similar Messages

  • Can I use Java Web Start for my situation?

    Hi, we have a client/server application we're about to deploy to many customers, and I'm wondering if we can make use of JWS and/or JNLP. Here's our situation:
    - The server has a database and a small java application (running as a service) which runs scheduled tasks.
    - Clients connect to the database (server) and search/manage data; we've packaged the client so that it appears as an exe (on windows) or as a native Mac application.
    1) On a regular basis (usually overnight) the small task scheduler application on the server will connect (via internet) to our company database and download any upgrade. It then stores it in the local server (in a database blob), and needs to overwrite and restart itself (a download could include an update to the task scheduler program itself). There could be a new task in the update that alters data in the database.
    2) Whenever a client connects to the database, it first checks to see if there is any update (a new jar), and if there is we want to get it onto the local machine, stop & restart automatically, with no user intervention.
    NB.
    (a) The clients will normally be on an internal lan with no internet access.
    (b) The client computers are often switched on and applications start automatically, so the auto-update process needs to be unattended.
    (c) We'll assume that we'll install the client and server with sufficient disk access to update themselves, regardless of who's logged in. Since this application runs on both Mac & windows, we need to consider this since an admin will often install the software but it will sometimes be someone else (with lower privilege) logged on to the machine.
    (d) We want these processes to be seamless with no user IO or gui (the server - if linux or OSX - may infact only have a console, and no gui subsystem). On the client side we see no need to indicate that we've updated the application (it's of no interest to the end-user), although it's likely when it happens the startup splash screen disappears and reappears.
    Can anyone tell me if JWS/JNLP can help to carry out these tasks more simply, or give me any suggestions in general?
    Thanks in advance,
    Phil

    I would suggest storing the install on a network
    drive. This would make it simpler for the clients to
    install off.Thanks for the suggestion. This may be hard to make 'generic' though across multiple platforms. Also in some larger customer sites they may have a dedicated DB server, while at a small site there is only one computer with the DB and client on the same machine; thus creating a network drive on a machine that may not even have networking configured could be a problem.
    You could use JWS, but I am not sure it would make it
    any simpler to implement. It may be more trouble
    than it is worth in your situation.That's what I'm beginning to suspect.
    I would also suggest you consider using a VPN to make
    all these systems accessable, then JWS would do what
    you need for you.I think maybe the part I need to know more about is JNLP and how (if) that can assist in updating the software. Any good tutorials (maybe I missed them on the sun site)?
    Thanks

  • Help with Java Web Start

    Hi everybody,
    I have a simple Java application that has a JFrame containing a TextField displaying some text inside it. I am using the NetBeans IDE. I am trying to Enable Java Web start for this application. The steps I have taken upto now are:
    1. Right click on Project, Java Web Start -> Enable Java Web Start. This created the jnlp file.
    2. In the Resources section, I added the jar file for swing. ( I am not sure if I have to add the path for jnlp.jar etc, or are these found automatically?)
    3. Right click on Project, Java Web Start -> Deploy with Java Web Start. This launches the browser with the Click me link, but on clicking this link, I get the following error.
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class jnlp.sample.servlet.JnlpDownloadServlet or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.ClassNotFoundException: jnlp.sample.servlet.JnlpDownloadServlet
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)I have all the jnlp files in my jdk directory, and I am not sure why it can't find it. Is there something I am missing?
    Thanks
    George

    I am not sure what it has to do with servlets, I just followed a tutorial on using Netbeans with Java Web Start, and did only the steps as mentioned in my first post. And ended up with the error.
    Anyways, I added the jnlp jar files(jnlp.jar, jnlp-servlet.jar, jardiff.jar) in the WEB-INF/lib directory. And it seems to deploying it now. I can get my application to load on clicking on the "Click me" link. But the controls on my application don't seem to be working.
    Also, when I try to Right click on my project -> Java Web Start -> Run with Java Web Start, I get the following error message,
    javaws-run: C:\Documents and Settings\Lux\Visualization\nbproject\build-jaws-impl.xml:36: Execute failed: java.io.IOException: CreateProcess: C:\j2sdk1.4.2_13\bin\javaws "file:///C:/Documents and Settings/Lux/Visualization/Visualization.jnlp" error=2
    BUILD FAILED (total time: 0 seconds)
    Any help appreciated.
    Thanks.
    George

  • You need to install Java Web Start 1.4.2

    Hi!
    I try to access the PI /rep page: http://localhost:50000/rep .
    By doing so I get the following error/warning:
    You need to install Java Web Start 1.4.2
    I am on Windows 64x Bit.
    Question:
    Where can I find and download Java Web Start for Windows 65 bit?
    Thank you very much!
    regards
    Thom

    Hi,
    here you go:
    http://java.sun.com/products/archive/index.html
    BTW I suggest version 1.4.2.9.
    Regards
    Patrick

  • What is Java Web Start?

    Hi
    After installing Java 2 Platform Standard Edition v 1.4.2, Java Web Start link on the
    Windows 98 desktop.
    What do I use Java Web Start for?
    Please reply soon.
    Thanks,
    Sincerely,
    Egan

    Java Web Start software provides a flexible and robust deployment solution for Java technology-based applications based on the Java Community Process program (JCP). The technology is being developed through the JCP program as JSR-56: The Java Network Launching Protocol & API (JNLP), which provides a browser-independent architecture for deploying Java 2 technology-based applications to the client desktop.
    Java Web Start technology works with any browser and any Web server. Each application developed for use with the Java Web Start software specifies which version of the Java 2 platform it requires, e.g., version 1.2 or 1.3, and each application runs on a dedicated Java Virtual Machine (JVM).
    A main feature of the Java Network Launching Protocol and API technology is the ability to automatically download and install Java Runtime Environments onto the users machine.
    For example, an application might depend APIs in Sun's Java Runtime Environment 1.3.0 (or later). When a user first accesses this application, the Java Web Start software will download all the needed files for the application, as well as download the Java Runtime Environment (JRE) if the requested version is not available locally. The ability to automatically download a JRE is one of the key features to ensure robust deployments. It ensures that the JRE that your application is tested on will be available on the user's machine, as well as make it possible to seamlessly upgrade to improved versions of the Java 2 platform over time.
    The java.sun.com auto-download feature simplifies Java Web Start deployments because it makes commonly used software readily available for use with Java Web Start. Typically, only an extra line has to be added to a JNLP file to take advantage of this feature. In contrast, without the auto-download feature, developers would be forced to repackage and host the software themselves - adding a significant overhead to the deployment burden. As an added benefit to both developers and end-users, this minimizes the download time for an application since each JRE will be shared between multiple applications.

  • How to setup Proxy for Java Web Start App ?

    I'm having trouble getting Java Web Start to work.
    at... http://java.sun.com/docs/books/tutorial/uiswing/14start/compile.html
    It tell me...
    To test whether your browser can launch an application using Java Web Start, click this link.
    http://java.sun.com/docs/books/tutorialJWS/uiswing/14start/example-1dot4/HelloJWS.jnlp
    I do that & see Java Web Start try to start but get message...
    Java Web Start - Invalid Argument
    Unable to launch specified application
    An error occurred while launching/running the application.
    Category: Invalid Argument error
    Could not load file/URL specified: C:\Documents and Settings\Will\Local Settings\Temporary Internet Files\Content.IE5\OP8RSBCV\HelloJWS[1].jnlp
    Then... http://java.sun.com/docs/books/tutorial/information/javawebstart.html tells me...
    "This situation usually happens when your browser and your copy of Java Web Start have different proxy settings."
    I click Start | Programs | Java Web Start | Java Web Start,,, then click File | Preferences | General
    My choices are... Proxies: None   User Browser _ Manual (User Browser grayed out)
    If _ Manual checked then I get...
    HTTP Proxy ______
    HTTP Port _______
    I'm running XP Pro via Wi Fi to a Linksys Wi Fi router to a cable modem... I'm also running Zone Alarm (tried turning it off but no luck)
    I don't know how to set up the Proxy stuff... can any one please help me get this set up.
    thanks - Will

    OK, on my XP Pro system I went to...
    Start IE -> Control Panel -> Internet Options -> Connections -> Lan Settings -> Proxy Settings
    This is my 'Local Area network (LAN) Settings panel...
    - user Proxy server for LAN is checked
    - Address is blank
    - Port is blank
    So do I plug something in here... the ip address of my linksys wi-fi router and a port number or what?
    My Java Web Start Preferences won't let me click 'Use Browser' only None or Manual
    If I click Manual, I don't know what to plug into the HTTP Proxy and HTTP Port fields...
    I tried the ip address of my router... thinking it may have a built in Proxy Server... and port 8080 as indicated by the Help page for the Java Web Start... but no luck.
    I really appriceate any help on this...
    thanks - Will

  • How to package/inlcude C++ .exe and .dll files in a Java Web Start App?

    Hello,
    I have a Java Web Start application that runs fine if the application is only 1 .jar file.
    But I have a need to also run C++ .exe and .dll file from my Java application.
    I wonder if someone could please tell me how to package/include C++ .exe and
    .dll files in my Java web start application?
    Thank you and Best Regards,
    Akino

    You need to place the EXE and DLLs inside the jar.
    Java cannot execute them from the jar. They have to be extracted (see Class.getResourceAsStream) from the jar and copyied into the target machine file system, perahps to the temp directory. Now you can execute them using Runtime.exec() or ProcessBuilder.start().
    Edited by: baftos on Jan 14, 2011 6:49 PM

  • Java Web Start Viability for Distribution of Product

    Hi, I'm interested in developing a program to be accessible/distributed online and feel that Java technology is the best for this. I've been doing a (little) bit of research into Java Web Start and was wondering if anyone knows if their is a high market saturation of Java Web Start. Also, how is the overall usability for the average person?
    I really just want to be able to reach a broad user base and have the download/installation process be as simple as possible. If anyone has any first hand experience, or can point me to more information that would be great.
    Thanks for any help!

    You might want to take a look at jThinRich. It is a next generation open source framework for building centrally hosted and managed Internet applications. jThinRich does this by leveraging the best of thin client technology while providing desktop power and cross platform support using java and webstart.
    http://grandlogic.com/content/html_docs/products-jthinrich.shtml
    Sam

  • When we starting IR and ID, it will look for java web start platform? why?

    When we starting IR and ID, it will look for java web start platform? why?

    hi praveen,
    Java web start is platform to launch the java application.
    All the file from the central server are copied to the local machine
    check the below blog
    Java Web Start                                   
    Have some more Fun.......                         
    regards
    kummari

  • How to enable logging for Java Web Start on Java 6.

    I'm trying to get logging working in Java Web Start from Java 6. In previous versions I was able to specify a log file in the Java Web Star control panel (or whatever it was called) , but I can't work out what to do in the Java 6 version of JWS. I've checked the docs and searched the forums here and on java.net but haven't been able to find anything.
    Does anybody know how I can get this working?
    Cheers
    Stephen.

    Sorry, I was in a hurry and didn't read your e-mail properly. Note: This is a thread in a public forum, not email.
    If it were email, it would be a private conversation,
    between you, me and whoever we add to the addess
    list. ..and you would be paying consulatnacy fees for
    my participation.
    On the public forum, it can be seen by anybody, and
    I don't send you a bill.
    And on that note, when asking for free advice on
    public forums, please read replies carefully (I
    might ask the same of a consultancy client, but
    since thay are paying by the email - it is really
    their own choice).
    ..the problem is that I can't find where the log file
    is being written. Do you know where it writes to?..
    I understand it is specified in the logging.properties
    in the lib of the JRE/JDK. E.G. several locations
    for my current system..
    C:/Program Files/Java/j2re1.5.0/lib/logging.properties
    C:/Program Files/Java/j2sdk1.5.0/jre/lib/logging.properties
    C:/Program Files/Java/j2re1.6.0/jre/lib/logging.properties

  • Java Update 4 -- "Safe" java-vm-args Arguments for Java Web Start?

    Sun's Java documentation notes that JNLP files can request arbitrary arguments to the virtual machine using the java-vm-args argument. However, only arguments considered "safe" will be recognized. The JNLP spec doesn't list the safe arguments, since the list might change on a per-release basis.
    Unfortunately I can't find a current list of safe arguments either on Apple's site or Sun's site. I am fairly sure that -Xss is no longer on the safe list, since it's not working any more, but it would be nice to have that confirmed.
    Anyone have any ideas/pointers?

    I'm pretty sure that list is not accurate for the Java Web Start released in Update 4 recently. I have an app which attempts to specify heap and stack sizes using java-vm-args="-Xmx1024m -Xms1024m -Xss8m"; when I use the Java console to display memory usage, it shows that the heap is 81MB (which is the default). If I use initial-heap-size="1024m" max-heap-size="1024m" in the same JNLP file, the heap size is set properly.
    Unfortunately I don't think there's any way other than -Xss to set the stack size in a JNLP file, and I need to do that too.
    It's also possible that I screwed something up which caused this problem, but I reproduced it on both my Mac Pro and my Macbook Pro.

  • Customize the "update message" for Java Web Start

    For the default value (false) of silentInstallLicenseAcceptance in Java Web Start when an application's server side has changed, the user will be asked with a message box whether he/she wants to update his local application now or quit the application.
    I would like to know if I can manipulate the message that Java Web Start should ask the user. I also would like to know if I can change the button from Yes/No to Upgrade Now and Upgrade Later.
    Any API reference, idea, tutorial or sample code would be appreciated.

    I'm pretty sure that list is not accurate for the Java Web Start released in Update 4 recently. I have an app which attempts to specify heap and stack sizes using java-vm-args="-Xmx1024m -Xms1024m -Xss8m"; when I use the Java console to display memory usage, it shows that the heap is 81MB (which is the default). If I use initial-heap-size="1024m" max-heap-size="1024m" in the same JNLP file, the heap size is set properly.
    Unfortunately I don't think there's any way other than -Xss to set the stack size in a JNLP file, and I need to do that too.
    It's also possible that I screwed something up which caused this problem, but I reproduced it on both my Mac Pro and my Macbook Pro.

  • Java Web Start running JasperReports

    The following is the exception that is thrown when trying to compile an .xml report template to a JasperReport object, from an app that has been deployed via the Java Web Start:
    dori.jasper.engine.JRException: Errors were encountered when compiling report expressions class file:
    C:\Program Files\mozilla.org\Mozilla\DailyReport.java:4: package dori.jasper.engine does not exist
    import dori.jasper.engine.*;
    * I have deployed the application properly via Java Web Start; however, when running the application it is not able to compile the xml file to a JasperReport object.
    * The .java file is created properly; but the app does not seem to be able to find the dori.jasper.engine.*; library.
    * I have signed and included the jasperreports-0.5.0.jar (and it's dependencies) with the app, and have put the path to all of it in the Class-Path of the manifest file.
    * NOTE: Just FYI, I am able to run this without any problems under netbeans.

    Dear Patrick,
    Recently I have used iReports for generating report through java & deploy it through java web start.
    I had taken all the measures you had mentioned in your previous replies. But I am not able to view the report. ( might be it is not compiliing)
    I am using new version of jasperreports-0.5.3.jar
    also through console it is running well.
    Also it is not giving any errors. can u have any idea about this.
    Might be it is silly mistake I have done.
    My code for report generation is :
    public class SReportA
         public SReportA()
         try
         JasperDesign jasperDesign = JasperManager.loadXmlDesign("/home/ora/iReport/RSENIORITYLIST-A.xml");
         dori.jasper.engine.design.JRBshCompiler theCompiler = new dori.jasper.engine.design.JRBshCompiler();
         JasperReport jasperReport = theCompiler.compileReport(jasperDesign);     
         Map parameters = new HashMap();
         parameters.put("uname","admin");               
         Connection con=null;
         try
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con=DriverManager.getConnection("jdbc:oracle:thin:@158.144.71.219:1521:dbadp","acom","admin123");
         catch(Exception e)
              System.out.println("Exception in test.jsp "+ e);
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,con);
         JasperManager.printReportToPdfFile(jasperPrint,"ReportA.pdf");
         JasperViewer.viewReport(jasperPrint,false);
         catch(Exception e){ System.out.println("There is exception here"+ e); }

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • Java Web Start and Firefox

    Hello!
    I want to use some java web start applications, which are started directly by clicking a link. My browser (firefox) doesn't know the java web start mime type (*.jnlp). Because of that I can only download the specific JNLP-File instead of executing this file to start the java app.
    There is no jnlp mime type in the firefox section Edit-->Preferences --> Application and I can't add a new mime type because there is no funkction to did that job.
    I have installed the jre and the jdk package. In firefox Tools --> Addons there is the plugin "Java Plug-in 1.6.0_19" listed.
    Has anybody an idea, who to add the jnlp mime type in firefox?
    Thanks for help!
    Best regards,
    Flasher

    Maybe this can help you.
    And related link in Ubuntu Forum.

Maybe you are looking for

  • Down payment query

    hi, Do down payment requests entered through FBA1 (Transaction type-A, Special GL indicater-F) show up in FBL5N report? I have one credit item of $1000 showing as open item in FBL5N. And if I go in BSID table it shows two open itemsof $1000, one cred

  • ITunes 9 upgrade Freezes

    My boyfriend d/l iTunes 9.0.1 the other day and now every time we open it, it freezes. We have uninstalled/reinstalled it multiple times. We have deleted anything iTunes from our computer and re-d/l iTunes and it STILL freezes. Is there anything we c

  • How to produce html report

    Now I designed a report with runtime parameter form. When I run this report in client/server mode, it failed. So I deleted the runtime parameter form, and try it again and I succeed to produce a html report in client/server. But the runtime parameter

  • User share folder not passing permissions to subfolders

    I set up sharing properly best as I can tell between two user accounts on my iMac, however, sharing permissions do not pass to the subfolders I put into the user share folder. Do I have to assign permissions to every folder individually? This can't b

  • How to avoid duplicates in LOV

    Hi, i'm using search query component (11g) and for the search fields i'm adding LOV. In the UI , i can see the LOV with values from the table. But i need to avoid the duplicates in this . Looked at the docs and demo and i couldn't figure out anything