Sunday, March 16, 2014

Red5 and Java installation

Red5 requires Java to work. Proper Java installation can give you a headache though. Yes, decades after Java was introduced its installation is still an issue quite often!

Here's my way to get it right (on Windows) without delving too much into the reasons of Sun/Oracle's inability to sort this out in so many years:
  • Find and uninstall all Java related entries in "Uninstall a Program" (Control Panel)
  • Remove any related environment variables like CLASSPATH, JAVA_HOME, JRE_HOME and QT_JAVA
  • Also uninstall Red5 if it is already installed
  • Download the latest 32-bit JDK from the Oracle site and install it - make sure you install the JRE version that comes with it (the 64-bit version of the JDK is rarely needed and is mostly incompatible with software that requires Java, including Red5; therefore only install it if ABSOLUTELY needed or you may run into complications and trouble)
  • Now install Red5 and input "" and "5080" in the two dialog popups that come up at the end of the installation.
  • You should now be able to start the Red5 windows service without problem
  • In case it still does not start, set both JAVA_HOME and JRE_HOME to "C:\Program Files (x86)\Java\jre7" and try again.

1 comment:

  1. Thank for your tips, I install java successfully, now I can input barcode in java.
    Best regards.