Difference between revisions of "User:Mjb/Java updates"

From Offset
Jump to navigationJump to search
Line 1: Line 1:
 
Here are some notes about '''Java updates''' on Windows 7.
 
Here are some notes about '''Java updates''' on Windows 7.
  
The 32-bit JRE installation (in <code>C:\Program Files (x86)\Java</code>) updates itself, but produces strange warnings about certificate problems. There's apparently no fix for it.
+
==Default installation folders==
  
The 64-bit JRE installation (in <code>C:\Program Files\Java</code>) does '''not''' support auto updating yet (a [http://bugs.sun.com/view_bug.do?bug_id=6492837 known issue] since 2006). So you have to manually install the latest version whenever is convenient.
+
If you have a 64-bit version of Windows, you can install both the 32-bit and 64-bit JREs.
 +
 
 +
* The 32-bit JRE installation is in <code>C:\Program Files (x86)\Java</code>.
 +
* The 64-bit JRE installation is in <code>C:\Program Files\Java</code>.
 +
 
 +
==Java 7 issues==
 +
 
 +
The 32-bit JRE installation updates itself, but produces strange warnings about certificate problems. There's apparently no fix for it.
 +
 
 +
The 64-bit JRE installation does '''not''' support auto updating yet (a [http://bugs.sun.com/view_bug.do?bug_id=6492837 known issue] since 2006). So you have to manually install the latest version whenever is convenient.
  
 
The [https://www.java.com/en/download/installed.jsp Java verify/uninstall page] (doesn't work on Chrome) will tell you what you have installed and will let you uninstall and replace outdated versions. If your 64-bit version is outdated, it will uninstall it, but it won't install a replacement for you. You have to do that manually.
 
The [https://www.java.com/en/download/installed.jsp Java verify/uninstall page] (doesn't work on Chrome) will tell you what you have installed and will let you uninstall and replace outdated versions. If your 64-bit version is outdated, it will uninstall it, but it won't install a replacement for you. You have to do that manually.
  
Here's where to download the latest versions (this week):
+
Here's where to download the latest Java 7 versions (this week):
 
* http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
 
* http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
  
==Java and Serviio==
+
==Java 8 issues==
 +
 
 +
If you install both the 64-bit and 32-bit versions, <code>C:\ProgramData\Oracle\Java\javapath</code> is prepended to <var>%path%</var> by the 64-bit installer, and in that javapath folder are symlinks to the 64-bit executables. The 32-bit installer did not overwrite these, so the 64-bit version is what's in my path.
 +
 
 +
There are separate Java control panels for the 64-bit and 32-bit versions. If you installed the 64-bit version (on 64-bit Windows), then control panel (e.g. as accessed via Start Menu > Java > Configure Java) will be the 64-bit one, and it is only aware of and able to update the 64-bit version of Java. To run the 32-bit panel to configure and update the 32-bit version of Java, you have to run, for example, <code>C:\Program Files (x86)\Java\jre1.8.0_92\bin\javacpl.exe</code>.
 +
 
 +
==Java updates and Serviio==
 +
 
 +
Ideally, shut down any running Java apps before updating Java.
 +
 
 
If a 64-bit Java app like Serviio is running when you do the update, you'll be prompted for a reboot. But even after the reboot, Java doesn't be installed correctly and the Serviio service won't start. You'll get a warning (from Serviio Console, although it won't say that) about needing to set EXE4J_JAVA_HOME to point to a 64-bit JRE. Ignore the warning and just re-run the 64-bit JRE installer without Serviio running. It should prompt you about that version of Java already being installed; just continue and it should complete the installation without error. Then you can go start the Serviio service manually.
 
If a 64-bit Java app like Serviio is running when you do the update, you'll be prompted for a reboot. But even after the reboot, Java doesn't be installed correctly and the Serviio service won't start. You'll get a warning (from Serviio Console, although it won't say that) about needing to set EXE4J_JAVA_HOME to point to a 64-bit JRE. Ignore the warning and just re-run the 64-bit JRE installer without Serviio running. It should prompt you about that version of Java already being installed; just continue and it should complete the installation without error. Then you can go start the Serviio service manually.
  
Next time, before running the 64-bit JRE installer, just right-click on the Serviio icon in the system tray and choose "Exit Serviio" to shut down Serviio Console and the Serviio service. After installing the new JRE, restart both from Start Menu > Serviio.
+
So, before running the 64-bit JRE installer, exit the Serviio Console and be sure to stop the Serviio service. After installing the new JRE, restart both from Start Menu > Serviio.
 
 
==Java control panel==
 
If you're running a 64-bit version of Windows, the Java control panel will be the 64-bit version, which doesn't have an Update tab due to the issue mentioned above. I assume this control panel only affects the 64-bit JRE. You can also point it to your 32-bit JRE, but I don't know if doing so has any effect.
 

Revision as of 21:44, 20 April 2016

Here are some notes about Java updates on Windows 7.

Default installation folders

If you have a 64-bit version of Windows, you can install both the 32-bit and 64-bit JREs.

  • The 32-bit JRE installation is in C:\Program Files (x86)\Java.
  • The 64-bit JRE installation is in C:\Program Files\Java.

Java 7 issues

The 32-bit JRE installation updates itself, but produces strange warnings about certificate problems. There's apparently no fix for it.

The 64-bit JRE installation does not support auto updating yet (a known issue since 2006). So you have to manually install the latest version whenever is convenient.

The Java verify/uninstall page (doesn't work on Chrome) will tell you what you have installed and will let you uninstall and replace outdated versions. If your 64-bit version is outdated, it will uninstall it, but it won't install a replacement for you. You have to do that manually.

Here's where to download the latest Java 7 versions (this week):

Java 8 issues

If you install both the 64-bit and 32-bit versions, C:\ProgramData\Oracle\Java\javapath is prepended to %path% by the 64-bit installer, and in that javapath folder are symlinks to the 64-bit executables. The 32-bit installer did not overwrite these, so the 64-bit version is what's in my path.

There are separate Java control panels for the 64-bit and 32-bit versions. If you installed the 64-bit version (on 64-bit Windows), then control panel (e.g. as accessed via Start Menu > Java > Configure Java) will be the 64-bit one, and it is only aware of and able to update the 64-bit version of Java. To run the 32-bit panel to configure and update the 32-bit version of Java, you have to run, for example, C:\Program Files (x86)\Java\jre1.8.0_92\bin\javacpl.exe.

Java updates and Serviio

Ideally, shut down any running Java apps before updating Java.

If a 64-bit Java app like Serviio is running when you do the update, you'll be prompted for a reboot. But even after the reboot, Java doesn't be installed correctly and the Serviio service won't start. You'll get a warning (from Serviio Console, although it won't say that) about needing to set EXE4J_JAVA_HOME to point to a 64-bit JRE. Ignore the warning and just re-run the 64-bit JRE installer without Serviio running. It should prompt you about that version of Java already being installed; just continue and it should complete the installation without error. Then you can go start the Serviio service manually.

So, before running the 64-bit JRE installer, exit the Serviio Console and be sure to stop the Serviio service. After installing the new JRE, restart both from Start Menu > Serviio.