Problems installing Java EE SDK on Linux

前端 未结 8 977
我寻月下人不归
我寻月下人不归 2020-12-30 01:34

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.         


        
8条回答
  •  萌比男神i
    2020-12-30 02:11

    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?

提交回复
热议问题