Enable 64-bit computing in your windows based development environment – JDeveloper 11gR2 and WebLogic Server 10.3.5.0
June 16th, 2011 | Posted by Bogdan Petridean in Oracle ADF | 2 Comments
In what follows we will enable 64-bit computing capabilities in our windows 7 x64 based development environment – JDeveloper 11gR2 (11.1.2.0.0) and WebLogic Server 10.3.5.0.
Prequisites
64-bit capable machine with 64-bit OS – we’ ll be using Windows 7 Professional x64.
JDeveloper 11gR2 and WebLogic Server 10.3.5.0 – JDeveloper Studio Edition 11.1.2.0.0 package for Windows contains them both.
JDK for Windows x64 – Sun JDK or Oracle JRockit JDK.
JDeveloper
JDeveloper 11gR2 (as the two versions before it) comes with two 64-bit launchers (jdev64.exe and jdevW64.exe), but if you try to run any of them the following error will be displayed:
In order to enable JDeveloper IDE for 64-bit computing you need to follow the steps below:
i1. Install Sun JDK (or other JDK) for Windows x64 and remember the install path.
i2. Go to Middleware_Home/jdeveloper/jdev/bin/
i3. Open jdev.conf file and change the value of SetJavaHome param to point to the newly installed JDK; in my case:
SetJavaHome C:\Oracle\Middleware_11.1.2.0.0\jdk160_25_x64
i4. Right click on jdev64W.exe -> Pin to taskbar and from now on use this launcher.
Hint: You could also use the default JDeveloper launcher, but then the launched instance will not be binded to the existing taskbar entry and instead a new temporary entry will be created in the taskbar.
You’ re done!
Extra configuration – increase JDeveloper memory
By switching to 64-bit you will be able to assign more memory for JDeveloper.
For example, let us increase JDeveloper memory to 2048M (which was not possible with a 32-bit JDK):
Open Middleware_Home/jdeveloper/ide/bin/ide.conf
and configure it as below:
AddVMOption -Xmx2048M AddVMOption -Xms128M
Restart JDeveloper and you’ re done!
WebLogic Server
To enable the Integrated WebLogic Server Instance for 64-bit computing follow the steps below:
ii1. Open Middleware_Home/wlserver_10.3/common/bin/commEnv.cmd
ii2. Look for JAVA_USE_64BIT param and set it to true (by default is false) as below:
set JAVA_USE_64BIT=true
ii3. Make sure that JAVA_VENDOR param equals Sun (the default value):
set JAVA_VENDOR=Sun
ii4. Open Users/your_user/AppData/Roaming/JDeveloper/system11.1.2.0.38.60.17/DefaultDomain/bin/setDomainEnv.cmd
ii5. Look for SUN_JAVA_HOME param and set its value to the path of the 64-bit Sun JDK (installed at step i1); in my case:
set SUN_JAVA_HOME=C:\Oracle\Middleware_11.1.2.0.0\jdk160_25_x64
Hint: To configure the Integrated WebLogic Server Instance to run using Oracle JRockit JVM, instead of Sun, download and install Oracle JRockit JDK for Windows x86-64 and folow the steps described in this link.
ii6. Change the source code located immediately under the SUN_JAVA_HOME param as follows:
if "%JAVA_VENDOR%"=="Oracle" ( set JAVA_HOME=%BEA_JAVA_HOME% ) else ( if "%JAVA_VENDOR%"=="Sun" ( set JAVA_HOME=%SUN_JAVA_HOME% ) else ( set JAVA_VENDOR=Sun set JAVA_HOME=%SUN_JAVA_HOME% ) )
Save and you’ re done!
Extra configuration – increase WLS memory
To increase the WLS memory from 512M (default value) to 1024M open setDomainEnv.cmd file and set XMX_SUN_64BIT param as below:
Now, check that your changes were applied by opening JDeveloper -> Run -> Start Server Instance and in the console log you should see that WLS is using the 64-bit JVM and that the memory is set to 1024M:
Spyros approach:
http://adfhowto.blogspot.com/2011/02/run-jdeveloper-111140-in-64bits.html
http://adfhowto.blogspot.com/2011/05/run-embedded-weblogic-in-64-bits-run-it.html
Cheers!






Almost the same stands since 11.1.1.4.0
http://adfhowto.blogspot.com/2011/02/run-jdeveloper-111140-in-64bits.html
http://adfhowto.blogspot.com/2011/05/run-embedded-weblogic-in-64-bits-run-it.html
Hi Spyros,
Yes, almost.
Regards,
Bogdan