I installed the Java 6 JRE on my VPS just fine, but I can\'t get the EE SDK installation to even run.
root@vps [/usr/java]# java -version
java version \"1.6.
I got the same error. I removed OpenJDK using apt-get (I'm running Ubuntu 11.10) then downloaded Java JDK 1.7 (which comes of course with JRE) and unpacked this under /usr/local/java - this gave me new directory:
/usr/local/java/jdk1.7.0_04
Next I added:
/usr/local/java/jdk1.7.0_04
to $PATH, set $JAVA_HOME and $JRE_HOME as
/usr/local/java/jdk1.7.0_04
/usr/local/java/jdk1.7.0_04/jre
respectively.
Everything works nice. I can compile java progams using javac and run them using java. Jar program runs fine as well. So why does java ee installer complain about that? Any clues as how to fix that?