Search code examples
javaruby-on-railsruby-on-rails-3solarisrjb

How can i downgrade the version of java from 1.6.0 to java 1.5.0 on Sun Solaris 11


I have my system configuration on live server of Joyent

Sun Solaris 11
Ram 8 GB
HD 240 GB
VM 16 GB

I have already installed Java 1.6.0 on my server machine and i am running my Ruby on rails application on server.

For application i am using,

Ruby 1.9.2p180 
Rails 3.0.5 
Phusion Passenger version 3.0.13

It's not running fine and my application shut down periodically Passenger Shut Down Issue.

I think RJB(Ruby Java Bridge) is not compatible with Java 1.6.0. So i want to downgrade my java version to Java 1.5.0.

How can i downgrade it?

Does it effect to my application?

Somebody please help. Thanks in advance.


Solution

  • You do not have to uninstall, simply install 1.5.0 (if you can get it it) and create a JAVA_HOME variable in the environment to point to 1.5.0 - Putting it in PATH may mess up other code, I do not know what you have running.

    Comment: something else is really not right. The current version from oracle of the JDK and JRE is 1.7xxx which might be a better choice if in fact java version is the problem at all.