45

I would like to install Java on one of our servers, but I am reticent due to Oracle's bundling of an Ask.com toolbar and some virus scanner. I've read that the java updater even installs these for important security fixes if they are missing, and the toolbar install has a 10 minute delay built-in so you can't immediately remove it if you realized you installed it by accident.

There is no need or desire to have even the java browser plugin installed, I just want a nice clean JRE install.

I've noticed some applications such as Atlassian Stash install their own JRE, is there some automated installer that I can't find? Can I just copy the JRE directory to my server from one of these?

  • 8
    throw-the-baby-out-of-the-bath-solution: switch to Linux and install Java from the package manager, and you will never have to deal with these kind of malware ever again. – Lie Ryan Feb 27 '15 at 11:11
  • Would you be able to compile from oppenjdk sources? – hexafraction Feb 27 '15 at 11:35
  • 3
    IBM also publishes a very good JVM with much better debugging facilities (ibm.com/developerworks/java/jdk) and none of that Oracle adware/spyware baggage attached. – zxq9 Mar 1 '15 at 2:12
  • @zxq9 A non-Oracle JVM? Oh thank god. Or perhaps more pertinently, thank you. – KRyan Mar 1 '15 at 6:07
59

The off-line installers at http://oracle.com/technetwork/java/javase/downloads/index.html do not include bundled software.

  • 3
    +1 Only the on-line installer has the bundled software. – Chris S Feb 26 '15 at 4:28
  • 5
    Awesome! The "Server JRE" is exactly what I was looking for. – Jason Goemaat Feb 26 '15 at 4:52
32

There is an option to disable future adware installation in the Java Control Panel.

The Java Control Panel (jre\bin\javacpl.exe) can be found in the start/app menu under the name Configure Java or in the Windows Control Panel, under the Programs group.

In the Java Control Panel, the option is hidden under the Advanced tab, at the very bottom. It is named Suppress sponsor offers when installing or updating Java.

Java Control Panel > Advanced > Suppress sponsor offers when installing or updating Java

10

If you are willing to use third-party software, try Ninite (ninite.com). I've been using it for the past few years for a lot of updating.

It's a free unattended installer/updater for things like Java, Flash, Silverlight, web browsers, utilities, developer tools etc., The install/update doesn't need any interaction, just start it and it will install everything by itself, excluding any toolbars or other things bundled with the applications you are installing.

On their website, just select which stuff you want from a list, and then a small ~300kb exe file will either update the selected software to the latest version, or install it if it's not installed already. I actually put it on a Task Scheduler job on some computers to make sure their software is kept updated (esp. the Flash runtime).

They don't have every piece of software available, but it covers most of what I need, including the Java JRE and JDK. The paid-for Pro version also gives you centrally managed updating, which could be useful for a server.

Disclosure: I'm only a satisfier free-tier customer, never had the paid service from or worked for them.

Note: Adobe asked them to remove Flash from update choices. It's still available if you pay for the Pro version or if you find an old Ninite Flash installer file online (just verify the signature first).

  • 7
    Also worth looking at is Chocolatey.org which is command line/powershell based and based on NuGet. – James Snell Feb 26 '15 at 12:43
1

Allow me to refer to the answers given to a similar question I asked over at Superuser.com, which I think are especially suited for the ServerFault.com/enterprise segment.

Ninite packages cannot, as far as I know, be installed silently (unless you pay) and GUI options are not practical in any environment larger than a few computers.

Two answers include registry settings (which can be deployed using Group Policy Preferences) and administrative templates, which can be deployed via traditional GPO's.

In this answer, Danilo Roascio notes that you can add a REG_SZ registry value of SPONSORS in HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft. Set the value to DISABLE. This value can of course also be deployed using Group Policy Preferences.

In another answer, Mike provides a neat administrative template that configure the same, for importing into a GPO.

-1

No. Installing Ask is completely optional (although this option is checked by default). So uncheck it and only Java gets installed!

  • Even if you uncheck it though, when Java does an automatic update it will try to install it again. Forget to uncheck it and it will install itself 10 minutes later, then you have to remember to uninstall it after that later and you've still probably lost your search and home page to ask in your browsers. – Jason Goemaat Feb 26 '15 at 4:54
  • 2
    @JasonGoemaat I think you can also uncheck it during installing updates. I'm not advocating adware - it totally sucks, and it sucks that it's included with jre, but I installed countless updates, unchecked and never had problems. – Andrew Savinykh Feb 26 '15 at 6:38
  • Unfortunately I'm not the only one that would perform updates on the server, besides I've breezed through what I thought would be a normal update without installing additional software without recognizing the box to uncheck myself :) – Jason Goemaat Feb 26 '15 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.