JDK Vs JRE Version


Got stuck while running an executable jar due to different version of JRE.
Unsupported major.minor version 51.0

Hence, I have to figure out what version of the JRE that I am currently using in my box.

nurrak@nbtplan002:/tmp$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK Server VM (build 20.0-b12, mixed mode)

then, I have to modify my current java version by using following command :

sudo update-alternatives --config java

  1. I use this private jre for eclipse development on a usbstick. The only thing I do is to set PATH and perhaps JAVA_HOME env-vars. there are no registry settings needed. the jdk has some registry entries. but as i know this settings are only for referenz to find the jdk installation quickly. you could delete the registry entrie JavaSoft and use the jdk only with env-vars.

  2. Remember to set “JAVA_JDK” for intelliIDE to run. Also make sure it’s not using openjava jdk which may have installed if you installed icetea jre in firefox, then you’re JRE and JDK may have switched. Remember to reset your JAVA_HOME env (which java install never does for you) if you updated and they’ve decided to break your symlink. Updated Ubuntu? No problem someone will have decided that .bash_profile is now to be called .bachrc, why you ask? God knows – but I’m sure they will change it back again to piss you off on the next update. Java would be great if it wasn’t for all the moronic bullshit you have to configure and their insane versioning… oh yeah it’s JEE now with Java6 that I work with not 1.6!!. Couple this with Linux vendors stupid changing of config files with every release and you’ve got one giant mess.

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s