Jar file triggers download of JRE

Hi,
I am wondering if it's possible to implement the JAR file in such a way that it'll automatically trigger a download of JRE if the system doesn't have it or at least point the user to the URL where they can then download JRE. If it is possible, an example of how it can be done would be greatly appreciated.
Regards,

You could:
Assuming that atlest a 1.2 JRE will be installed, as will Java Webstart, and then let JWS autoupdate the JRE if it is out of date
Write a small "launcher" application (in C/C++/Java compiled to native).
Use something like ZeroGs Install Anywhere to install the JRE if it does not alread exist.
Mlk

Similar Messages

  • Where do i get soap.jar file to download from ?

    I am writing a SOAP client class in java and am looking for a place where I can download soap.jar file.
    Can somebody inform where it is.
    Thanks

    Hi.
    You can download the SOAP stuff from http://xml.apache.org/soap/ under the 'Download' link.
    Regards,
    Lance
    Lance Walton - [email protected]
    Team In A Box - Software without Tragedy
    http://www.teaminabox.co.uk

  • Jar file for multiple client JRE version

    I have two jar file. Fjtable.jar & fjtable16.jar
    fjtable.jar is for clients those who are using JRE 1.5 & fjtable16.jar is for jre 1.6 version client Users.
    both the jar file i have given in
    In formsweb.cfg :
    Archive = fjtable.jar , fjtable16.jar
    But this give error when accessing forms for those jre1.5 users.
    Exception in thread "AWT-EventQueue-2" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    How do i give a condition in formsweb.cfg, if client java is jre1.5 then use fjtable.jar else use fjtable16.jar.

    It's used in the page that calls the Forms configuration with the correct jars : this should tell you which JRE your client is on and can be adapted for your config:
    <html>
    <body>
    <table width="100%">
    <tr><td>Click on the link below to run your app:
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
        var version = '1.6' ;
        if (deployJava.versionCheck(version)) {
          document.write("<a href=\"http://myhost.local/forms/frmservlet?config=app16\">MyApp v1.6</a>");
        } else {
          document.write("<a href=\"http://myhost.local/forms/frmservlet?config=app15\">MyApp v1.5</a>");
    </script>
    </td></tr>
    </table>
    </body>
    </html>PS. Thanks Francois I'm sure this'll come in useful at some point know how to do this :)
    Steve

  • How can a jar file is download and used on client automatically from server

    i am using JAI.jar(sun jar file),tiffimage.jar(my jar file) and some fonts(Hindi) on the client side in my project.can we download and use the above files from the server on the client side automatically without the client installation.
    please reply me as soon as possible

    you can use Java Web Start to load all the jar files. JDK 1.4.1 is come with Java web Start.

  • JWS application jar-files are downloaded almost every time

    hey,
    how can i debug the situation, where my application is downloaded very often (even if i havent updated all of the jar-files, they are all downloaded again)?
    can it be that they expire after a certain time? how can i check that?
    thanks,
    Mait

    There are jnlp parameters that can be specified that define when jars are downloaded. This information is in the JWS documentation.

  • How applet jar files are downloaded

    Hi,
    I want to deploy my app as an applet in a jar.
    So assuming the end user has a compatible JRE installed.
    The HTML in my page would point to my jar on the server and when the page is opened, the jar is downloaded to the end user machine and run in the JRE (on the page).
    How is the download actually done? (FTP?). Does the jar have to be stored on a site with an FTP server.
    Also, since the browser must be able to download my jar, I assume that also means that the user would also be able to just download my jar and redistribute / reengineer it.
    Is there any way to prevent the user getting the jar from the server without of course stopping the browser from getting it?
    Cheers,
    patumaire

    patumaire wrote:
    Thanks George,
    By 'not especially', do you mean definitely not?Yes. Like you said yourself, the jar is downloaded to the client machine. By definition, it's available to them
    I am not saying it is extraordinarily brilliant but it has taken me four years to write so I prefer that some one else can't just download it, deobfuscate it, change a few things, rejar it and pass it off as their work.Common fear. Hardly ever justified. I'm not putting you or your work down, here, by the way.
    If it is impossible, then fair enough. I would just like to know.You can obfuscate it, but it's rarely worth the effort. If it's good enough to be worth cracking, it'll get cracked, no matter what you do.

  • Jar file download

    I have an applet served from orion application server. There are several Jar files that need to be downloaded to the client in order for the application to work. I noticed in JRE 1.3.1 when a Jar file was downloading a pop up with status Bar appeared, showing the status of the download. However clients that use 1.4.0 don�t have these status bars. Is there any way to insure the use of these status bars? Does 1.4.1 include them?
    Also download of these jar files takes a while ~10 min. Is there a way to increase download time besides the obvious (faster speeds, slimming down the jar file)?

    Yes when the jar files are downloading -- there was a status bar to indicate how much of the jar file was downloaded. It was a good indicator that the browser was still doing something.

  • How to make a jar file downloadable with IE

    hello,
    I just bought a website:
    http://www.frozenfountain.net/
    and I put a jar file on it called Logo.jar
    Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
    How do I get it to download as a .jar file with IE?
    thanks

    Just post a link to the Jar. Mozilla will download
    it as a jar. Windows will download it as a zip.
    Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
    At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
    On a sidenote, how do you draw text with a gradient?

  • Multiple download of the same JAR file

    We have a collection of applets packaged in a single JAR file. Some users (web developers that use our applets) have been complaining that the applet is extremely slow to start up.
    When the html page includes more than one applet from the same JAR file then, "ONLY IN SOME CASES", the JAR file is downloaded multiple times.
    By capturing network traffic we can also think that the JAR file is downloaded even when accessing an image packaged in the applet's own JAR file.
    One further detail: this "DOES NOT OCCUR" when there is a fast connection to the server (or at leat it seems so). In these cases, the JAR file is downloaded once. It looks as if the problem only occurs on slower network connections.
    Thanks in advance for any help.

    Mmm... I don't think this is the solution... all the applets share a lot of classes (the big part of the JAR files).
    But my question is....: why in some cases the JAR is downloaded more than once???

  • Where are jar files downloaded to with Applet?

    I have an Applet and am using archive attribute in my applet tag to specify jar files needed by the applet. eg: "archive=myclassfiles.jar, foo.jar". Assume that myclassesfiles.jar has classes needed by the Applet and Foo.jar has some text files or xml files. Assume that Applet is signed.
    My question: I am assuming that all jar files are downloaded to the client when the Applet is started. Is this correct? If so, how can I open and read Foo.jar file within the Applet? I dont know the path to that file, that is, I dont know where on the client that Jar file has been downloaded to. Would the following work:
    URL aUrl = (new File("Foo.jar")).toURL();
    String path = aUrl.toString();
    would path point to the correct location of Foo.jar?

    They are downloaded to the client, and stored in a cache. I'm not sure they are readable from within the applet, however. But there are 2 solutions, depending on what you are doing.
    1) You want to get some images or other resources from the Jar file. Then do this:
    URL url = appletClass.getClass().getResource("myimage.jpg");
    ImageIcon icon = new ImageIcon(url);
    where appletClass is the applet object, and the resource ("myimage.jpg" is the relative path to the image in the Jar file.
    2) You want to muck around with the Jar (read it). Well you can't write to it that easily in an applet, as you can't access the file system without a signed applet, or you would have to POST it back to the web server via HTTP file upload. But if you want to just read it and get stuff out of it, you can always just do this:
    URL url = new URL(getDocumentBase(), "foo.jar");
    and then open the URLConnection for that URL and read the Jar in.

  • Jar file downloaded still the old version

    If I update a new jar file in the web server, The jar file being downloaded by a remote pc is still the old jar file even if the java plugin cache has been deleted. In my source below, I have already specified applet option as plugin.
    Below is the source code for applet caching:
    Hope someone could help thanks
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="0" height="0" align="baseline" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME=<%=IboReserved.SCREEN_BUILDER%> VALUE="com.weserv.ibo.gui.InternetBanking">
    <PARAM NAME="trxcode" VALUE="0">
    <PARAM NAME="langind" VALUE="en">
    <PARAM NAME="country" VALUE="US">
    <PARAM NAME="code" VALUE="McpgApplet.class">
    <PARAM NAME="codebase" VALUE="http://mcpgdev.bancnet.net/apps">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="cache_archive" VALUE="<%= appletArchive %>">
    <PARAM NAME="cache_version" VALUE="<%= appletVersion %>">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3"
    width="0" height="0" align="baseline"
    code="McpgApplet" name="mcpgApplet" codebase="http://mcpgdev.bancnet.net/apps"
    pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
    <NOEMBED>
    </COMMENT> No Java 2 support for APPLET!! </NOEMBED>
    </EMBED>
    </OBJECT>

    download the zip file unzip it under windows install the drivers you need upgrading
    thats what I did and it updated my video card driver so windows stopped crashing

  • Lazy downloading broken for updated jar-files?

    Hello,
    Using webstart-6.0 + jar-index + download="lazy" works great - jar files are downloaded on demand when they are really needed.
    However when updating all jar-files, the files that have been downloaded lazily and cached before are downloaded again before the application can be launched, not only on demand.
    Is this the intended behaviour, and is there any way to let webstart lazily download updates, just when the jar-files are needed?
    Thank you in advance, lg Clemens

    Libraries loaded from the j2ee/home/lib directory are opened and loaded at the J2EE container level. So they are accessed from the very start of the server, to the point where it is stopped.
    Therefore if you modify a class library which has already been loaded, you may run into file locking related issues (which will be OS dependent, Windows for example probably won't even let you overwrite the file) so that is what you are likely to be seeing.
    JAR files loaded at the J2EE container level aren't really suitable for dynamic updating -- the classes can be referenced in a multitude of other classloaders.
    As you have seen, replacing a J2EE container level class file, then a restart will be required along the lines of what you have written.
    Stop mid-tier, move new file in and restart?? cheers
    -steve-

  • How to load Jar Files on demand

    Hi all.
    As must of you probably know, JAR files are downloaded on the initial phase when the first form is requested from the URL. This is done through the archive parameter.
    Although i recognized the advantage of such technique, there may be times, when one would wish to download certain JAR files when really needed.
    For example, the FormsGraph.jar may be needed only with certain form modules, but probably not for most. So my question is, apart from doing a web.show_document and calling the desired form with the appropiate config section, is it possible to download specific JAR files on demand???
    Thanks in advance ...!

    This is not really an "Oracle Forms" question. This is more of a java applet question that can be discussed in the Java forums.
    https://forums.oracle.com/forums/category.jspa?categoryID=285
    However, as far as I know, jar files are pulled on demand. You can easily test this with a simple form. For example, add any jar file to the ARCHIVE parameter in formsweb.cfg. Then open the JRE Control Panel and clear the cache. Now run the provided test form (test.fmx):
    http://server/forms/frmservlet?form=test
    Once the form has successfully started, open the JRE Control Panel again and open the Cache Viewer (General tab > View). Notice that the only files downloaded and cached are frmall.jar and Registry.dat. You may see a reference to your additional jar in the console, but the file was not brought down to the client. If you are seeing that a jar is being brought to the client with your own form, this is likely because your form is coded such that some code in that jar is being called and therefore is needed.

  • Classpath and jar file question

    my application need to use few jar files i downloaded from the internet
    so i need to set the classpath so that i can import the packages in the jar file rite?
    let say set classpath=.;c:\somedir\bin;
    the ".;" after the "=" means that i search the current directory first then search the directory i have specified after that rite?
    if so, can i put all the needed jar files in the current directory so that my application can use them??
    Another question is if all the jar files in located in the same directory how can i set the class path to refer to them without sepecifying each of the jar file name??can i just put the directory path and will it locate them automatically when my application start??
    can anyone tell me about it??thanks

    No, you need to include each and every jar file in your classpath.
    Or put them all in your <jdk_installation_dir>\jre\lib\ext directory, so that they will get included in your classpath automatically.
    Sudha

  • Unsigned jacob.jar file causing forms loading slow

    Dear All,
    Oracle version : 10.1.2.0.2
    OS: Windows 2003
    Client IE version : IE 8
    JRE version : JRE 1.6 update 21
    JRE security setting : Mixed code (sandboxed vs. trusted) security verification - Disabled
    We are getting the unsigned jar file error for jacob.jar, but it is running fine in many other places and giving unsigned jar file error for other jar files.
    Loaded image: jar:http://192.168.100.88:7778/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    Trace level set to 5: all ... completed.
    cache: Reading Signers from 0 http://192.168.100.88:7778/forms/java/jacob.jar | C:\Users\samm.AGS-STORE-005\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\48\dc408b0-3aabe349.idx
    network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
    network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
    network: Connecting http://192.168.100.88:7778/forms/lservlet;jsessionid=c0a8645830d6885b096494a44406bb10e869f532355e.e38LbhmPbxyKci0La3qPa3iNa38Re6fznA5Pp7ftolbGmkTy with proxy=DIRECT
    I have seen sites to sign the jar files, but is it possible to overcome this error without signing. Since this error is taking 10-20 secs more to load the form.
    Please help.
    Thanks and Regards,
    Anand.

    HI,
    You need to sign both frmwebutil.jar and jacob.jar first the clear JAR cache ion end-user computer,so that new signed JAR files are downloaded to end-user machines..

Maybe you are looking for

  • Getting error in WLST commands

    Hello, I'm trying to attach policy to composites in SOA Suites through WLST. I did wlst.sh, connect(...) but am getting NameError for all WSM commands: wls:/offline> connect('weblogic', 'welcome1', 't3://localhost:7001'); Connecting to t3://localhost

  • Pictures are loosing quality when imported into I photo 08

    Hello all, I have just recently made the switch to mac with no regrets, only a few questions. Here is my situation. I recently took some pictures at a wedding, I have a nikon d80 set with a jpeg setting. Now the pictures when viewed on my camera, on

  • .mos files

    I am helping a gentleman who is using the Mamiya 645 AFD with a digital back from Leaf-Photography. It creates RAW files ending in .mos. We haven't been able to get Photoshop CS3, running on a Mac-Book with OSX 10.5, to open these files without going

  • Message packaging after scheduling

    Hi, our scenario is IDoc -> XI3.0 -> file. I made a message scheduling with the help of "Sender-ID"-creation, JOB-ID-creation and message filter creation. (look at SXMB_ADMIN) This is working perferct! A lot of messages will be recorded till they (ti

  • HT4623 After update iOS 6, my iphone wi-fi slow down than before update and down wi-fi stability.

    its same settings before update ios 6 but i've often connection lost problem. May be new update necessary ! . i tryed soft reset, wi-fi connect reset but the problem continues. How can i fx that issue. by the way, "THANKS STEVE, THANKS APPLE" i love