Installing java 7 on centos 6 (OpenJDK)

We use to run java OpenJDK 6 on our servers, but the new version OpenJDK 7 is more secure and some of our customers have start requesting, so here are the instructions for installing and setting the correct variables.

For the previous post on installing OpenJDK 6 please see red5 installation.

Please note that it is possible to have on the same server both version OpenJDK 6 and OpenJDK 7.

First command, let us install OpenJDK:

# yum install java-1.7.0-openjdk-devel

Linux Centos servers include a utility called alternatives, which lets you change the default version for applications which allow multiple versions to be installed. OpenJDK is one such application.

  • The alternatives command is not installed by default, but may already be installed on your system. If not, install the alternatives package by running the following command:
    # yum install alternatives
  • Issue the following command:
    # /usr/sbin/alternatives --config java

the output could be something like:

# alternatives --config java

There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
1           /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2           /usr/lib/jvm/jre-1.7.0-openjdk/bin/java

Enter to keep the current selection[+], or type selection number: 2

if you type 2 the you selecting the OpenJDK 7.

and you can confirm by entering the command:

# java -version

the output should be something like:

[root@live ~]# java -version
java version “1.7.0_51”
OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-i386 u51-b02)
OpenJDK Client VM (build 24.45-b08, mixed mode, sharing)

Setup Environment Variables

Most of java based application’s uses environment variables to work. Use following commands to setup it.
# export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk/bin/java

# export CLASSPATH=.:$JAVA_HOME/lib/classes.zip

Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.
# echo export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk/bin/java >> /etc/bashrc

# echo export CLASSPATH=.:$JAVA_HOME/lib/classes.zip >> /etc/bashrc

Check if the variables are correct:

# echo $JAVA_HOME

output should be:

[root@live ~]# echo $JAVA_HOME
/usr/lib/jvm/jre-1.7.0-openjdk/bin/java
[root@live ~]#

 

That’s it.

Comparison between Wowza Media Server vs Red5 and vs Adobe Flash Media Server

The table below is a comparison between Wowza Media Server, the Red5 and the Adobe Flash Media Server. Both Wowza and Adobe Media Server are proprietary systems while Red5 is open source.

Both Wowza and Red5 are based on Java while Adobe Flash Media server uses ActionScript.

Feature

Wowza Media Server

Red5
Adobe Flash Media Server
Protocols supported RTMP
RTMPT
RTMPS
RTMPE
RTMPTE
RTMP
RTMPT
RTMPS
RTMPE
RTMPTE
RTMP
RTMPT
RTMPS
RTMPE
RTMPTE
RTMFP
Developer edition 10 Connections (Free) Free 10 Connections (Free)
Pricing $995(30 day Trial also available)Daily License (5$)

Monthly License (55$)

Free(Open Source) $4500
Supported Platforms Windows

Mac OS X

Linux

Solaris

Unix

64-bit Support on all

IPv6 Support

Windows

Mac OSX

Gentoo

Linux

Windows Server 2003 with Service Pack 2 or Windows Server 2008

Linux

Red Hat

Runs as a 32-bit software on both 32- and 64-bit operating systems.

Audio / Video Streaming (live and on-demand) FLV

H.264

MP3

AAC, LC-AAC, HE-AAC

Speex

(On Demmand)
FLV
MP3
F4V
MP4
AAC
M4A(Live)
Sorenson
VP6
h.264
Nelly Moser
MP3
Speex
AAC
NSV
FLV

H.264

MP3

AAC, LC-AAC, HE-AAC

Speex

Multi Client/ Multi Protocol Streaming Flash (RTMP)
iPhone/iPad (HTTP Streaming)
Silverlight (Smooth Streaming)
QucikTime/3GPP (RTSP/RTP)
IPTV (MPEG-TS)
Flash (RTMP) Flash (RTMP / HTTP)iPhone/iPad (HTTP Streaming)
Recording H.264/AAC to FLV containerH.264/AAC to MP4 (Quicktime) container FLV Only H.264/AAC to FLV containerMPEG-4
Inbound Live Encoder Support RTMP (Flash & H.264/AAC)
RTSP / RTP / MPEG-TS
(H.264/AAC: unicast, multicast, TCP, UDP)
ICY (MP3/AAC: SHOUTcast/ icecast)
RTMP (Flash & H.264/AAC)
Action Method Format 3 (AMF3) AMF3(Bi-directional ) AMF3 AMF3(Uni-directional )
Server Side Java Java AS2

 

Special Promotion – Video Chat Software + Domain+ 1Year Hosting=$285

ATTENTION, since this post, unfortunately Gyaro customer support has become worse and worse and for this reason we do not recommend our customers to buy this software anymore. February 2015.
—–
Hosting Marketers has partnered with Gyaro to bring a very Special New Year deal!

Gyaro is a video chat software, in fact it is the best, visichat, avchat, videowhisper they way behind Gyaro in features, stability, security and customer support. That is why we went out of our way to bring about this incredible promotion.

It is the first time in 8 years since we started that we are promoting a third party software, but we proud to do it, from the first we supported this script and we not disappointed, their customer support is second to none, we’ve seen other video chat script vendors take 3 or 4 days to answer our customers, even on the most simple question, Gyaro in this last 2 years we have worked with them are just an email away, always helpful, always with a fix.

If there is something that makes Hosting Marketers special is the dedication to our customers, when our customers email us for help we don’t answer them with a question, we do our best to answer the customer with a solution. We recognize in Gyaro the same dedication.

For these reasons we decided to promote their script, we offering:

+ Gyaro Video Chat Software with 50% discount! (Lifetime license)
+ Free Domain
+ Video Four Hosting Plan at $135/year instead of $430!!!
+ Free Installation & Setup by Gyaro Techs
+ 1 Free Upgrade

The all bundle at $285, saving you the incredible amount of $460

Order Now  (promotion is finished,  please contact Gyaro directly if they still proving the 50% discount)

Gyaro Video Chat Demo

Features:
2 Audio Codecs from low audio quality to high audio quality
Superb Video Quality with Auto Bandwidth Option
Easy Enable/Disable Options
Customize Login Page by just moving panels anywhere on the page
Bad Word Filter
UnlimitedGroups with permissions and tabs permissions
Kick/Ban Ip permanent/Close Mic/Close Webcam/Gag/Global Message/Switch Rooms
Add animated or images of wallpaper/group icons/emoticons/loading logo/logo
Change Mic Icons to animated or non animated
Change room icons to animated or non animated
Spy Chat to view all rooms chat and private chats in real time
Easy to change template by just choosing colors from drop down color menu
Remove banned ips
Enable/Disable Banners animated and non animated supported
Enable/Disable custom mood which shows in user list
Enable/Disable show time zone of user which shows in user list
Gyaro Supports Custom Sounds
Gyaro Supports Custom Avatars
Gyaro is the only chat which shows clear all screen and kick/ban ip/close mic/close webcam/gag message in real time in chat room.
Gyaro advance feature lets you record video from webcam and make it as your profile picture video.
For more information on features please visit www.Gyaro.com/features.php and don’t forget to check live demo www.red5stream.com/chat/

Order Now (promotion is finished,  please contact Gyaro directly if they still proving the 50% discount)