How to obtain JRE programmatically? eg via http or ftp

hi,
as part of our product build process we need to obtain java run-times for win, sol and linux, and of many versions and minor releases.
At the moment we do this by hand installing the JRE and rezipping and various other forms of munging (all within the redistribution license agreement)
does anyone know of a way that we could get this to happen as part of an ant script?
the equivalent problem with eclipse can be solved just by grabbing the distributed .zip file and processing that eg with the ant GET task - this isn't possible with the downloads of java since they come wrapped in an InstallShield wizard, and also because the URLs are randomly generated (presumably to ensure you've been through the click-through license)
thanks,
asjf

You can use Java Web Start to download the approriate version of java.
When you run the application this way it loads the JRE as required.

Similar Messages

  • How to obtain JRE programmatically?

    hi,
    does anyone know how to download the JRE without human intervention? ie in a script or program?
    as part of our product build process we need to obtain java run-times for win, sol and linux, and of many versions and minor releases.
    At the moment we do this by hand installing the JRE and rezipping and various other forms of munging (all within the redistribution license agreement)
    does anyone know of a way that we could get this to happen as part of an ant script?
    the equivalent problem with eclipse can be solved just by grabbing the distributed .zip file and processing that eg with the ant GET task - this isn't possible with the downloads of java since they come wrapped in an InstallShield wizard, and also because the URLs are randomly generated (presumably to ensure you've been through the click-through license)
    thanks,
    asjf
    ps. this is a multi-post
    http://forum.java.sun.com/thread.jspa?threadID=598928&tstart=15

    thanks for the link - I hadn't seen that! :)
    the problem is that we need to download
    1) all platforms (well - windows, linux and solaris)
    2) position in our product image for distribution rather than install (ie no registry changes, no desktop changes)
    the ideal way would be to do what we do for eclipse - which is have an ant file that just does a GET (ant task) of a zip file via a URL and then unzips it to the appropriate place
    thanks,
    asjf

  • How to block youtube and facebook via HTTPs in CX on ASA-X ?

    How to block youtube and facebook via HTTPs in CX on ASA-X ?
    now i use decrypt feature on CX module but can not block https traffic. Could you help me.

    Hi,
    Double-check your CX configuration with this guide:
    http://tools.cisco.com/squish/fCA6D
    And make sure you are redirecting HTTPS traffic to the CX
    Luis Silva
    "If you need PDI (Planning, Design, Implement) assistance feel free to reach us"
    http://www.cisco.com/web/partners/tools/pdihd.html

  • How to send a pdf file via http call

    Hi Experts,
    Please try to think on how you would send a file like a pdf file via the http call. You might need to convert the pdf in a character string which can be sent via http. The character string then might need to  get converted back into a pdf and saved in a file. Read through the Archive Link API guide to see how they send the body of a file.
    Please it is urgent......
    Thanks
    Basu

    so you want to push the PDF file over http to external system.
    where is pdf file stored.
    for examle if its in the clients desktop, you can use gui_upload to upload to internal tabble (type BIN) then use FM SCMS_BINARY_TO_XSTRING to conver the binary table to type string.
    then use cl_http_client class to push the file to the destination.

  • How to send command to device via HTTP

    Hy everyone,
    i have installed olite on a number of wince device.
    If i try to send command to the device when connected with the desktop computer on wich the mobile server is installed everything goes well.
    My devices are connected by wifi to the lan of my company and i would like to send command via HTTP.
    I tried to change the settings on the mobile server setting the Network Protocol to HTTP and setting the ip of the device but it does not work.
    Does anyone know how to solve the problem?
    David.

    Hi Ravi,
    yes the command is queued but anything happens.
    I tried to wait for long time but the command never succeed to execute.
    If i try to send again the command from the Command History windows the command fails.
    David.

  • How to Obtain Applet -servlet communication through https protocol

    We are trying to use https protocol.
    First I will explain Our Architecture. We are using JRun 3.0
    as servlet engine. We are using iplanet as a webserver.
    There are two iplanet webservers.
    There is a firewall between two iPlanet servers. i.e, one webserver
    is outside the firewall. JRun is communicating with inside iplannett
    webserver and inside iplannett webserver is communicating with
    outside iplannet server.
    If we are trying to run the application with
    this firewall, our applet is not loading,
    but the servlets and jsp pages are all working fine.
    Without the firewall, everything is working fine.
    The applet is also working fine.
    But, with the firewall, our applet is not loading.
    We are using JRE 1.3 as java plug-in.
    What is the problem so that the applet is not loading.
    and How to resolve this? can anybody give suggestion in this regard?
    Thanks in advance.

    No, I am not getting any security exception for the applet, but I am getting the following exception when working with HTTPS. The same application works fine with the default HTTP protocol
    java.net.UnknownServiceException: Input from HTTPS not expected until OutputStream is closed
         at sun.plugin.protocol.https.BrowserHttpsURLConnection.getInputStream(Unknown Source)
         at JBSchedulerXNew.initReceiveAppointmentData(JBSchedulerXNew.java:122)
         at JBSchedulerXNew.initReceiveAppointmentData(JBSchedulerXNew.java:92)
         at JBSchedulerXNewDemo.init(JBSchedulerXNewDemo.java:110)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • How to setup a network printer via http

    I have a router with a USB printer attached to it. It looks like this:
    Printer status: Ready
    Printer location: http://192.168.2.1:1631/printers/My_Printer
    In Windows you setup a network printer and the printers address is the http address above. How do you add this type of printer in the printer setup utility on Mac OSX 10.4.11 and 10.5.x?

    For OS X 10.5, you use the following settings
    As mentioned by bdaqua, open Print & Fax and click the IP icon and then select IPP from the top drop menu. Then in the Address field just enter the IP address; don't enter the leading 'http://' and don't enter the :631 (the mere fact that you have selected the IPP protocol means that it will communicate on port 631)
    Then in the queue field you can enter printers/My_Printer, although some router perform a translation for the shared printer so you only need to enter the shared printer name in the queue field.
    As for the name and location fields, these are just free text for the local user and have no bearing on the queue details.
    And as for 10.4 I have no idea or way to test this at home. But if you use a mix of mine and bdaqua's information you should be okay.

  • How to make folder readable/listable via http?

    So I added new website in my server, loch point to a folder in which there is no webpage, but only files... What I want is access to files via browser, like this:
    But right now I'm getting this:
    Permissions on a folder are like this:
    What do I need to do else?

    Silly me.... Found it:

  • How to make a transaction call via https protocol

    Hi,
    Recently we have got a new requirement that requires the protocol to be used for a particular transaction as https.
    Is there any way that we can use https for only few transactions instead of all the transactions on MII (12.x)?
    For Example :
    Instead of
    http://<servername>>/XMII/Runner?Transaction=<transactionpath>
    We want to make call as
    https://<servername>>/XMII/Runner?Transaction=<transactionpath>
    Thanks in Advance
    Amit

    Amit,
    Since this is a NetWeaver setting to use https, it is either all or nothing for MII.  So if you have https turned on all of your MII Runner calls will need to use https and vice versa.  You are not able to pick and choose.
    Also to note if you are on MII 12.1 a new Service Pack (SP8) for MII is coming out soon, most likely by the end of the year.  This service pack takes advantage of the new security features (including https) that have been added in NetWeaver EHP1 SP5 or greater.  I would highly recommend moving to this if you are using https.  I'm not sure of all the pros but a SAP Note will be delivered with this release explaining in more detail.
    Thanks,
    Erik

  • How do I download the JRE programmatically?

    Hi,
    I want to implement installJRE(), found in the Java Deployment Toolkit -- http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit -- but for desktop applications. How can I download a specific JRE programmatically? Sun's site obfuscates the download URLs.
    Thanks,
    Gili

    The current Web Start / JNLP will supposedly download and install a JRE even if there is none installed, and allows you to specify which version. Here is an older web page that you can test with. I believe it will only install the current JRE.
    [http://www.java2s.com/Article/Java/Graphics-Desktop/Java_Web_Start_AutoInstall_Demo.htm]

  • How to send XML via HTTPS in Servlet

    I am new to Java. I need to make a servlet which can send a message via HTTPS with a content type of XML to another web server when it is called. each msg is proceeded with a header in the following format:
    requestID=rid&userID=uid&password=mypd
    and a detail information in XML:
    <S_Request>
    <requestControllID>1-rf200</requestControlID>
    <zipCode>99012</zipCode>
    <orderQuantity>35</orderQuantity>
    </S_Request>
    I have basic idea of how to send an http post with parameter string by using the Redirect function but don't know how to deal with the XML detail. Any one has idea about this? Any help will be greatly appreciated!

    This is what I did for one of my projects;
    String myXML = "all the xml tags and fields";
    URL url = new URL("https://www.somesite.com");
    HttpsURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.setDoOutput(true);
    OutputStream outXML = connection.getOutputStream();
    outXML.write(myXML.getBytes());
    I think you can add the requestID and all to the begining of the string myXML
    Good luck
    Rajesh

  • How the external system will talk to ECXpert 3.5 for transfering files via HTTP SSl?

    We are using ECxpert3.5 on Solaris box. One of our Trading Partner want to communicate through HTTP-SSL and we are doing XML/EDI mapping. Could you guide us what steps we need to take care to implement this.
    How the external system will talk to ECXpert for transferring files. (We need the syntax for the URL). How ECXpert will receive XML file through HTTP-SSL protocol from External System and file submittion.
    Please send is there any other document which explain about. Thanks in advance for your help. [email protected] or [email protected]

    Hi Steve,
    You can bring the GRC framework to a state equivalent to a raw install by following options:
    Option 1.) You should have a base-line backup before GRC installation. If so then apply that base-lin backup and deploy GRC components. If there is no base-lin backup, then
    Option 2.) Uninstall and re-install J2EE and then follow up with rest of the installation process. If you don't want to go through re-install process, then
    **Correction to Option 3**
    Option3.) SAP is in process of creating a SAP Note for Delete script, Instead of delivering Delete Script script via OSS message.  Will update you as soon as the Note gets released.
    Please refere to Note # 1416728 to Manage your deletion in RAR 5.3 SP10.
    Hope this helps.
    Best Regards,
    Sirish Gullapalli.

  • How to invoke BPEL process via HTTP POST (or GET)

    Hi,
    I'd like to know how to invoke BPEL process via HTTP POST (or GET), is there anyway simple to do it?
    Thank you

    Look at my blog http://orasoa.blogspot.com search for plsql
    or use SoapUI.org
    or look in the Examples directory in the BPEL directory of the installation

  • How application call servlet via https

    Hi guys
    Does anybody know how application call servlet via https? Is it same as
    http? How can I set up trusted certification? Thanks in advance.
    Regards,
    Mark.

    I meant to give a code example in the last one, sorry.
    URL u = new URL("https://mysecureURL.com");
    javax.net.ssl.HttpsURLConnection conn = (javax.net.ssl.httpsURLConnection) u.openConnection();There is other good info in the JSSE forums.
    Cheers,
    Peter.

  • How can my applet communicate with servlet via HTTPS?

    hi all,
    I'm using jdk1.4.2_03. Tomcat 4.1.27/29.
    My applet used to communicate to serlvet/JSP via http protocol. However, I wish to apply SSL in my tomcat standalone. Is there any implication towards my existing applet to servlet codes?
    For example,
    URL servletURL = new URL("http://www.myhost.com/Shopping");
    // open connection between applet and servlet
    URLConnection servletConnection = servletURL.openConnection();
    servletConnection.setDoOutput(true); // allow connection do output
    servletConnection.setDoInput(true); // allow connection do input
    servletConnection.setUseCaches(false);
    servletConnection.setRequestProperty("Content-Type", "application/octet-stream");
    ObjectInputStream input = new ObjectInputStream(servletConnection.getInputStream());
    resultset = (Vector)input.readObject(); //get Object from Servlet
    input.close();

    http://java.sun.com/j2se/1.4.2/docs/api/javax/net/ssl/HttpsURLConnection.html
    I never used it though, you can check for some code here:
    http://javaalmanac.com/cgi-bin/search/find.pl?words=HttpsURLConnection

Maybe you are looking for

  • Best way to install Windows 8 on an iMac with 1tb Fusion drive

    I just ordered my first iMac. Not my first mac, I have owned numerous Mac laptops in the past but am finally ready to make the switch for my main desktop . Now I need to installed windows 8.1 because I need to run visual studio. That is literally the

  • Any way to identify emails that were open when Mail crashed?

    Admittedly, I probably had too many emails sitting open (plus a bunch of open tabs in 3 different browsers). Mail crashes, and I Force Quit. When I reopen mail, a few emails do repoen, but the majority do not. Is there any way of identifying which em

  • I rebuild a photo library without a backup?

    I rebuild a photo library without a backup .. it shows "The photo library needs to be upgraded to works with this version of photo library Quit or Upgraded .. i exit the app .. and then i looked up in my application then i have few folders Metadata b

  • Why do we use getExtensionData()

    Can anybody tell me what we are doing here... String totalDueStr = (String)headersalesdocument.getExtensionData("ZZTOTAL_DUE"); Why do we use getExtensionData().

  • Inbox mail not deleting?

    inbox mail not deleting?