Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Saturday, 10 August 2013

Why doesn't java work properly on Solaris?

The Solaris operating system can default to a really old version of java. To verify which version you've got, run:

# java -version

To fix it, simply download the latest version from Oracle, then update your PATH variable like so:

# export PATH=/PATH/TO/LATEST/JAVA/bin:$PATH

After this, "java -version" should return a sensible version number.