0

I'm setting up a Red5 server on Cygwin

I get this

/usr/share/red5$ sh red5.sh
Running on  CYGWIN_NT-6.1-WOW64
Unable to locate Java. Please set JAVA_HOME environment variable.

However, I can also do this: javac -version and get javac 1.7.0, so I know that's installed, at least.

I can also go into the emacs .bash_profile and see that I've added this to the bottom:

export PS1='\w\$ '
export EMACS_HOME=~/emacs-22.3
export JAVA_HOME =/cydrive/c/Program\ Files/Java/jdk1.6.0_32
export PATH=$PATH:$EMACS_HOME/bin:$JAVA_HOME/bin
export PATH=$PATH:$EMACS_HOME/bin

So what's missing?

2 Answers2

1

You have a SPACE character between the JAVA_HOME and the =. Thus the variable never properly gets defined and exported.

mdpc
  • 11,914
1

I found it.

Before: export JAVA_HOME =/cydrive/c/Program\ Files/Java/jdk1.6.0_32

After: export JAVA_HOME =/cygdrive/c/Program\ Files/Java/jdk1.6.0_32