multiple java versions on WebLogic

与世无争的帅哥 提交于 2020-01-24 00:34:08

问题


Is it possible to run multiple versions of Java on WebLogic 10.3.6 and/or 12c? We have applications that use different versions of Java. For example, is it possible to use JRE6 and JRE7 at the same time for different applications?


回答1:


Unless you have different instances of Weblogic running at the same time, then I can't see how this would be possible. A JVM instance (running a Weblogic instance) runs one and only one version of Java.

However, I expect you will find that an application that is implemented for Java 6 will run just fine using a Java 7 JRE.




回答2:


I recommend to use the highest required Java version (JVM7 in the current situation). There is backward compatibility, and I can hardly imagine that a Java6 application would not run on Java7.

Also, it reduces the operational costs (much easier to setup, to to maintain, to update patches, etc.) - you just don't have to worry about it.




回答3:


The answers above make the good point that you shouldn't NEED to run different JVMs for Java6 or Java7.

If there is some valid reason why this doesn't apply, the WebLogic console allows you to specify different JVM settings for each server.

Go to:

 Environment -> Servers -> [Server Name] -> Configuration -> Server Start 

and specify the Java Home, Classpath, Arguments, etc.

I have not ever tested this with different versions on the same machine, so please test before committing yourself to your business :-)



来源:https://stackoverflow.com/questions/14476902/multiple-java-versions-on-weblogic

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!