[ot] installing java on centOS 5.2

Hi all –

On most days I’m glad to be a “one man show” (as it were) but today I’m wishing for an IT department. Maybe someone here can help.

My web server is CentOS and therefore does not have java included. So following some instructions I found on the 'net, I did this:

cd /opt

wget “URL_FOR_v6_13”

[the above command downloaded jdk-6u13-linux-i586-rpm.bin]

alternatives --install /usr/bin/java java /opt/jdk1.6.0_13/bin/java 2

[i have no idea whether that last line actually did anything, just following instructions]

alternatives --config java

There are 2 programs which provide ‘java’.
Selection Command

  • 1 /opt/jdk1.6.0_07/bin/java
  • 2 /opt/jdk1.6.0_13/bin/java

#java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

can anyone say what reserving enough space for object heap means? do i need more RAM on that server?

thanks

kazar