Thread: OpenJDK Help
i installed ubuntu , didnt notice openjdk 6 installed. installed openjdk 7 via apt-get. , when ran javac command compile stuff without problems.
ran java command "unsupportedclassversionerror"...
java version:
java_home:code:steve@ubuntu:~$ java -version java version "1.6.0_23" openjdk runtime environment (icedtea6 1.11pre) (6b23~pre11-0ubuntu1.11.10) openjdk 64-bit server vm (build 20.0-b11, mixed mode)
but when "whereis java" pointed "/usr/bin/java" which inturn points "/etc/alternatives/java" points "/usr/lib/jvm/java-6-openjdk/jre/bin/java"code:$ echo $java_home /usr/lib/jvm/java-7-openjdk-amd64
tried setting classpath "/usr/lib/jvm/java-7-openjdk-amd64/lib" "classnotfoundexception"
please me resolve this. willing purge java outta pc , re installing afresh if nothing works out.
thanks lot helping out! cant thank guyz enuff!
anyway... how sorted things out.
used update-alernatives --configure java set default java openjdk 7.
removed openjdk 6 , javac , rest of development binaries gone.
reason jdk7 binaries not registered. installed them manually using,
update-alternatives --install <link> <name> <path> <priority>
got sorted out , javac -version gives java 1.7 correctly
again.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] OpenJDK Help
Ubuntu
Comments
Post a Comment