Open file ~/.bshrc and put the following at the top
export JAVA_HOME=<insert path to JDK installation dir her>
Then do
source ~/.bashrc
and try the command again
Main Topics
Browse All TopicsHave a dedicated server. I want to install red5 on it.
Following the instructions on the website.
http://osflash.org/red5/li
Seems i dont have java installed on my server....
when i do this step
" cd red5
/opt/ant/bin/ant prepare
"
i get an error saying Error: JAVA_HOME is not defined correctly.
i don't know much linux ..... ... so if you can give me a step by step it'll help a lot...
I want to get red 5 flash media server installed.
i have root access etc... thanks for the help !!!
i'm using centOS
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
the export java_home does not work ...
can you guys give me a link for a rpm or install i can use .. mabe i did the java install wrongly ... i looked onlien and i'm not sure what version i'm supposed to use and i cant even find the versions on suns java site
i will try the other solutions shortly
when i type java -version i get
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
Ok, let´s start it over:
When you type:
>root@local [~]# find / -name jdk*
you get:
>/usr/java/jre1.6.0_16/lib
>/home/cpins/perl588instal
>/var/cpanel/perl/easy/Cpa
It seems that you have a JRE (/usr/java/jre1.6.0_16/) not a JDK. If you want to use ant (/opt/ant/bin/ant prepare) you need "javac" which comes with JDK.
So, go to:
http://java.sun.com/javase
Choose "Linux" or "Linux x64" as your platform
Click on: Continue
Click on: "Skip this step"
Click on: "jdk-6u17-linux-x64-rpm.bi
When its done as root type:
# ./jdk-6u17-linux-x64-rpm.b
When its done, check again:
"/usr/java/" directory
and look for some "jdk-1.6.x"
And now you have a JDK
Then try again:
# export JAVA_HOME=/usr/java/jdk-1.
#/opt/ant/bin/ant prepare
Good luck !
Business Accounts
Answer for Membership
by: a_bPosted on 2009-11-07 at 10:05:08ID: 25767302
Can you type java -version on the command line and see what output does that give?