简体   繁体   English

如何在Sun Solaris 11上将Java的版本从1.6.0降级到Java 1.5.0

[英]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 我在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. 我已经在服务器计算机上安装了Java 1.6.0 ,并且正在服务器上运行Ruby on rails应用程序。

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 . 运行不正常,我的应用程序会定期关闭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. 我认为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. 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. 提前致谢。

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. 您不必卸载,只需安装1.5.0(如果可以安装它)并在环境中创建一个指向1.5.0的JAVA_HOME变量-将其放在PATH中可能会弄乱其他代码,我不知道该怎么办你已经跑步了。

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. Oracle的JDK和JRE的当前版本是1.7xxx,如果实际上是Java版本是问题,这可能是一个更好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM