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.

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

    Install/Update JAVA has no reviews.

    Discussion
    Gravatar for Jonathon Blacklidge
    Jonathon Blacklidge over 2 years ago

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

    Gravatar for Sies
    Sies over 2 years 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 about 2 years 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 about 2 years 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 about 2 years 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 about 2 years 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 about 2 years 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 about 2 years ago

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

    Gravatar for Chris Bonner
    Chris Bonner over 1 year ago

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

    Gravatar for lee shaw
    lee shaw over 1 year 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 over 1 year ago

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

    Gravatar for Jack Senesap
    Jack Senesap about 1 year ago

    I need to script to remove all OLDER versions of java.

    Gravatar for Duane Godwin
    Duane Godwin about 1 year ago

    Visit Upstream.se and look for their Kaseya Pack.

    Gravatar for Brian Downs
    Brian Downs 11 months ago

    Doesn't Work :-(

    Gravatar for Jack Aitken
    Jack Aitken 4 months ago

    Trying to find the bundle ID's.  When I go to the above URL, and hover over the Windows Offline, it doesn't show the ID.  What am I doing wrong?