Sun Java in KUbuntu

That was not an obvious one. Under KUbuntu I typically use the KPackageKit application to install and update applications.  It did not work well. I tried to install the sun-java-jdk package many times and every time it would list the dependencies and do the install but the “java -version” would tell me that I was still using the OpenJDK.

After reading a few different posts in forums I tested the idea to use the synaptic package manager. The installation worked much better.

To finalize the install I ran a few commands at the cli:

sudo update-java-alternatives -l

This listed the fact that I now have the OpenJDK and Sun Java installed on my workstation.

sudo update-alternatives –config java

This allowed me to specify to use the Sun Java as my default JVM.

java -version

This now reports the Sun Java JRE as my JVM.

I can now use Maven to compile some test projects.

I guess there are still a few issues with the OpenJDK to be fully compatible (might just be some configuration that I am not aware of).

Advertisements

Published by

m5c

Java developper that loves photography and good coffee

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s