{"id":4416,"date":"2013-10-09T16:23:52","date_gmt":"2013-10-09T20:23:52","guid":{"rendered":"https:\/\/pitss.org\/us\/2013\/10\/09\/how-to-switch-from-jrockit-to-jdk-in-weblogic\/"},"modified":"2017-05-15T13:52:12","modified_gmt":"2017-05-15T17:52:12","slug":"how-to-switch-from-jrockit-to-jdk-in-weblogic","status":"publish","type":"post","link":"https:\/\/pitss.org\/us\/2013\/10\/09\/how-to-switch-from-jrockit-to-jdk-in-weblogic\/","title":{"rendered":"How to Switch From JRockit to JDK in WebLogic"},"content":{"rendered":"<p>If you have configured Oracle WebLogic Server (whether as a standalone product or as a part of Oracle Fusion Middleware) to use JRockit, you can use these steps to configure your WebLogic environment to switch from Oracle JRockit to Oracle JDK (formerly Sun JDK).<\/p>\n<p><strong>NOTE: Please make a backup of all configuration files that will be updated.<\/strong><\/p>\n<p><strong>NOTE: The Oracle Middleware home will represented by the environment variable %MW_HOME% in this article. Also, we will use JDK 1.6.0_45 (64-bit) installed in C:\\Program Files\\Java\\jdk1.6.0_45 as an example.<\/strong><\/p>\n<ol>\n<li>Edit the file %MW_HOME%\\wlserver_10.3\\common\\bin\\commEnv.cmd\n<ol>\n<li>Look for \u201cset\u00a0 JAVA_HOME=\u2026\u201d and change the path so that it reads \u201cset\u00a0 JAVA_HOME=C:\\Program Files\\Java\\jdk\\1.6.0_45\u201d (or in whichever directory your JDK is installed)<\/li>\n<li><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2013\/10\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" src=\"https:\/\/pitss.org\/files\/2013\/10\/image_thumb3.png\" alt=\"image\" width=\"608\" height=\"251\" border=\"0\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Edit the file %MW_HOME%\\user_projects\\domains\\%DOMAIN%\\bin\\setDomainEnv.cmd for each of your WebLogic domains (which you wish to move from JRockit to JDK)\n<ol>\n<li>Look for \u201cset BEA_JAVA_HOME=\u2026\u201d. Unset this variable so that it reads \u201cset BEA_JAVA_HOME=\u201d.<\/li>\n<li>Look for \u201cset SUN_JAVA_HOME=\u201d right below it and change the path so that it reads \u201cset SUN_JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_45\u201d (or in whichever directory your JDK is installed)<\/li>\n<li>Not far below, look for \u201cset JAVA_VENDOR=Oracle\u201d. Change this to \u201cset JAVA_VENDOR=Sun\u201d.<\/li>\n<li>Look for \u201cset JAVA_HOME=\u2026\u201d right below it and change the path so that it reads \u201cset JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_45\u201d (or in whichever directory your JDK is installed)<\/li>\n<li><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2013\/10\/image4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" src=\"https:\/\/pitss.org\/files\/2013\/10\/image_thumb4.png\" alt=\"image\" width=\"626\" height=\"351\" border=\"0\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Edit the file %MW_HOME%\\wlserver_10.3\\common\\nodemanager\\nodemanager.properties\n<ol>\n<li>Look for any set parameters called \u201cJavaHome\u201d and change the parameter\u2019s value to \u201cJavaHome=C\\:\\\\PROGRA~1\\\\Java\\\\JDK16~1.0_4\\\\jre\u201d<\/li>\n<li><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2013\/10\/image5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" src=\"https:\/\/pitss.org\/files\/2013\/10\/image_thumb5.png\" alt=\"image\" width=\"629\" height=\"319\" border=\"0\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Edit the file %MW_HOME%\\utils\\bsu\\bsu.cmd\n<ol>\n<li>Look for the line \u201cset JAVA_HOME=\u2026\u201d and change the path so that it reads \u201cset JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_45\u201d (or in whichever directory your JDK is installed).<\/li>\n<\/ol>\n<\/li>\n<li>Edit the file %MW_HOME%\\utils\\quickstart\\quickstart.cmd\n<ol>\n<li>Look for the line \u201cset JAVA_HOME=\u2026\u201d and change the path so that it reads \u201cset JAVA_HOME=C:Program Files\\Java\\jdk1.6.0_45\u201d (or in whichever directory your JDK is installed).<\/li>\n<\/ol>\n<\/li>\n<li>Edit the file %MW_HOME%\\utils\\uninstall\\uninstall.cmd\n<ol>\n<li>Look for the line \u201cset JAVA_HOME=\u2026\u201d and change the path so that it reads \u201cset JAVA_HOME=C:Program Files\\Java\\jdk1.6.0_45\u201d (or in whichever directory your JDK is installed).<\/li>\n<\/ol>\n<\/li>\n<li>Restart all WebLogic servers.<\/li>\n<\/ol>\n<p>Your WebLogic servers should now be using the JDK instead of JRockit.<\/p>\n<p><strong>Source: Oracle Support note 1309855.1<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have configured Oracle WebLogic Server (whether as a standalone product or as a part of Oracle Fusion Middleware) to use JRockit, you can use these steps to configure your WebLogic environment to switch from Oracle JRockit to Oracle JDK (formerly Sun JDK). NOTE: Please make a backup of all configuration files that will [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4,19,71,10],"tags":[41,44,38,40],"class_list":["post-4416","post","type-post","status-publish","format-standard","hentry","category-install-config","category-unix-linux","category-weblogic-software","category-windows","tag-configuration","tag-java","tag-node-manager","tag-weblogic"],"_links":{"self":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/comments?post=4416"}],"version-history":[{"count":4,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4416\/revisions"}],"predecessor-version":[{"id":8494,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4416\/revisions\/8494"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/media?parent=4416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/categories?post=4416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/tags?post=4416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}