Jdeveloper - unrecognized option: -jrockit

Every time I try to run the webclic webcenter application on Jdev, I get the following error, and I cannot find a link to how to fix this anywhere on the Internet.

start of weblogic with Java version: Java virtual machine could not be created virtual machine. Unrecognized option: -jrockit

+7
source share
4 answers

Try changing the startWebLogic.cmd file (WIN7)

c:\users\{user}\AppData\Roaming\JDeveloper\system{version}\DefaultDomain\bin\startWebLogic.cmd 

contain

 set JAVA_VM=-server set MEM_ARGS=-Xms512m -Xmx1024m -XX:MaxPermSize=512m 
+7
source

Jdeveloper 11g does not support jdk 1.7

https://forums.oracle.com/thread/2482850

I fixed it by adding c: \ users {user} \ AppData \ Roaming \ JDeveloper \ system {version} \ DefaultDomain \ bin \ setDomainEnv.cmd to the beginning:

 set SUN_JAVA_HOME=E:\Oracle\Java\jdk1.6.0_37 set JAVA_VENDOR=Sun 
+4
source

On OSX, find this folder /Users/{USERNAME}/.jdeveloper/system{VERSION}/DefaultDomain/bin

Edit the setDomainEnv.sh file and find SUN_JAVA_HOME and make sure that the value has the same meaning as your JAVA_HOME , i.e. /Library/Java/JavaVirtualMachines/jdk${JDK_VERSION}.jdk/Contents/Home , by default it is set to the empty string "" .

Edit the startWebLogic.sh file and add the following before calling setDomainEnv.sh .

JAVA_VENDOR=Sun

You can check it by running sh ./startWebLogic.sh , if it works with the -jrockit error, then everything will be fine :)

I also tested the Java JDK 1.7 and it seemed to work.

+1
source

The reason is that older versions of Weblogic use the Java VM "JRockit" http://www.oracle.com/technetwork/middleware/jrockit/overview/index.html

JRockit VM is no longer supported in Java 7 or later.

All the other solutions here seem to be hacks, and none of them helped me. I had the same problem with Weblogic 10.3.5 and I found out that the installation was wrong.

The problem is that there is no Java version check in the installer, so if you do not know that you cannot use Java 7 or higher, you are screwed.

These steps fixed it for me:

  • You need to make sure you have Java 6 or lower installed.
  • Reinstall Weblogic and do not forget to specify the correct JDK
+1
source

All Articles