Java

Install/Update JAVA

Java Javascript SDK

Description

Simple agent procedure that update or install JAVA and write install log in agent procedure log.

Feel free to improve the agent procedure as you wish.

Category
Developer
  • Name: Sies
  • Company: SIES
  • Website: http://www.sies.it
  • Contact Developer
  • Summary
  • Install/Update JAVA
  • 166 Downloads
  • Released on June 24th, 2016
  • Reviews

    Install/Update JAVA has no reviews.

    Discussion
    Gravatar for Jonathon Blacklidge
    Jonathon Blacklidge 11 months ago

    Does this only update to 8u60? It looks like that version is locked in.

    Gravatar for Sies
    Sies 10 months ago

    Hello, seems Java changed some URLs. I've changed the script and tested it. Should be ok now. Please donwload .zip again and replace "javaUpdate.cmd" with the new one in your Kaseya Manage Folder. Review the procedure if you find it useful :)

    Gravatar for Jonathon Blacklidge
    Jonathon Blacklidge 7 months ago

    It looks like this new cmd is locked into 8u101, we're on 8u111 now. I don't think java provides dynamic URLs, not that I've seen anyways.

    Gravatar for lee shaw
    lee shaw 7 months ago

    Have tested and it also does not remove any currently installed versions if present well it didn't in my case on 3 separate PC's

    Gravatar for lee shaw
    lee shaw 7 months ago

    Have tested and it also does not remove any currently installed versions if present well it didn't in my case on 3 separate PC's

    Gravatar for Sies
    Sies 7 months ago

    @Jonathon: edit "javaUpdate.cmd" with Notepad++ like this: line 140 (32bit Java version) change from "set url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211997" to set "url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=216432" (without quotes) and line 149 (64 bit Java version) from "set url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211999" to "set url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=216434" (without quotes) In general, when a new Java version will be avaiable, change the BundleId of the latest Java version. You can find it from the link "https://www.java.com/en/download/manual.jsp" (just move your cursor over the link "Windows Offline" and "Windows Offline (64-bit)" to see the new BundleId. I can't script this because I can't predict the new BundleId use by new Java version @lee: I will look forward up this. Keep in mind that this is just an hobby :-)

    Gravatar for Matt Stanzel
    Matt Stanzel 7 months ago

    Without a significant amount of development, you could write a VBScript to call cURL to fetch the download page (https://www.java.com/en/download/manual.jsp), then get only the line in the output that contains "title="Download Java software for Windows Online"". Then, quickly parse that HREF for the download URL.

    Gravatar for Matt Stanzel
    Matt Stanzel 7 months ago

    ...Rather, get only the line that contains "contains "title="Download Java software for Windows Offline""

    Gravatar for Chris Bonner
    Chris Bonner 3 months ago

    Did anyone update this script to work with current versions of Java?

    Gravatar for lee shaw
    lee shaw 3 months ago

    I have not but would love it if someone can point me in the right direction to ? also if anyone knows the best way to have it check your version and remove it if its old ?

    Gravatar for Brad Huffaker
    Brad Huffaker about 1 month ago

    I could use this as well . Anyone able to make a script that will work with future versions, etc...?