Tag Archives: Java


First episode of the bol.com TechLab podcast

Today we released the first episode of the bol.com TechLab podcast. The subject of this first episode is our Kotlin adoption journey.

In this podcast, we share our experience with you to learn and entertain. Peeking behind the screens of IT and Tech in general at bol.com. Showing you our approach to IT, e-commerce and retail platforms. We have a lot of fun creating the podcast episodes. It is awesome to talk about all the interesting software we create and the innovation we can achieve with our development community.

Our next episode will feature our experience with forecasting using modern data science technology. I can promise you that will be an interesting discussion too!

Installing an all 64 bit JDK JDeveloper set on Windows7

You might know that JDeveloper is supported on 64 bit versions of Java and Windows since release Fusion Middleware is supported on JDK7 both 11g and 12c versions since May 2012. So I decided to try to install an 64 bit JDK7, 64 bit JDeveloper on Windows 7 64 bit.

Since most of my JDeveloper work is aimed at SOA Suite, BPM and non-ADF Java, I choose the JDeveloper 11g IDE. On the JDK site I started with JDK7u6. However a security thingie got in the way and I switch to JDK7u7. I’m assuming you have a PC/laptop/VirtualMachine running a 64 bit version of Windows7.

Install JDK7 update 7

The latest JDeveloper support/certification info states:

  • 64 bit JDK supported for Windows as of JDeveloper
  • For JDK 6, update 24 or later is recommended
  • For JDK 7, update 3 or later is recommended

However due to the security vulnerabilities in all earlier JDK 7 versions (on all OSes and their browsers) it is recommended to install only JDK7 update 7 and up.

Download JDK 7 for Windows 7 64bit. To install JDK7 on Windows7 double click the downloaded file.

Install JDeveloper

Since we have chosen a 64 bit JDK ourselves we downloading the jdevstudio11116install.jar from OTN Developer Tools site.

Before installing we check whether the correct JDK version will be used (from the command prompt (cmd)):
C:\Oracle\jdk7u7\bin>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)


And then to install JDeveloper from the command prompt (cmd):

C:\Users\deltalounge\Downloads>java -jar jdevstudio11116install.jar
Extracting 0%...................................................................

Then a GUI starts and the most important screens are:

Install SOA Suite, BPM and AIA extensions

Follow the guidance of these post to install JDeveloper extensions:

And you are ready to go.

How to VirtualBox overview

VirtualBoxIn this post we’ll share some VirtualBox resources that will help you to use Oracle virtualization product VirtualBox.

Installing an Operating System in VirtualBox

There are several great blog post on how to install an Operating System (OS) in VirtualBox. The install Ubuntu 11.04 in VirtualBox not only offers a good step by step guide to install Ubuntu (also check the more recent Ubuntu 12.04 ) , the steps also provide great insights when you want to install other operating systems. It is fairly easy to get from there to installing Windows8 in VirtualBox.

VirtualBox appliances and extending them

There are several great VirtualBox Appliances for Developers. Oracle offers for example both an appliance to test drive SOA Suite 11g and BPM 11g and a very recent appliance running WebLogic Server 12c , including a bunch of Java tools (including NetBeans, OEPE, Subversion, Hudson, Maven).

These VirtualBox Appliances can easily be extended for example with Oracle OSB as described in installing OSB on SOA Suite 11g appliance and extend SOA Suite appliance with Oracle Service Bus. The latter showing you how to extend the SOA domain and the first how to install OSB in a seperate domain.

Dealing with real world problems using VirtualBox

There a several examples on the web. I’d like to share three of them. The first shows you how to create a duplicate disk for use in an additional virtual machine. The second shows you how to update a Vagrant box.

On the side: Vagrant uses Oracle’s VirtualBox to build configurable, lightweight, and portable virtual machines dynamically. It uses Chef or Puppet to provision them. Vagrant is used so other developers can get up and running in just a couple commands.

The third shows you how we solved VBOX_E_FILE_ERROR (0x80BB0004) :
VBoxManage.exe: error: Code VBOX_E_FILE_ERROR (0x80BB0004) – File not accessible or erroneous file contents (extended info not available)

Or how to solve VirtualBox VERR_VMX_MSR_LOCKED_OR_DISABLED (0x80004005)
Failed to open a session for the virtual machine Ubuntu 12.10.
VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).

Since Virtual Machines can be quite demanding for resources on your PC or laptop: Here are some hints to increase appliance performance in VirtualBox.

Have Fun!

VirtualBox Appliance for WLS development with Eclipse, Maven, and Hudson

With the Oracle Technet Virtual Developer Day coming up a great VirtualBox appliance came available. The developer day focusses on developing Java EE6 applications and Oracle WebLogic Suite 12c.

WebLogic Server 12.1.1 VirtualBox Appliance

The virtual machine contains:

  • Oracle Linux 5, JDK 1.6 +
  • Oracle WebLogic Server 12.1.1
  • Oracle Coherence 3.7
  • Oracle TopLink 12.1.1
  • Hudson 2.2
  • Subversion 1.4.2
  • Apache Maven 3.0.1
  • NetBeans IDE 7.1 RC2
  • Oracle Enterprise Pack for Eclipse 12.1.1 / Eclipse 3.7
  • Easter Egg: Introductory Labs for Oracle Coherence 3.7

All details on download and importing the appliance can be found on the VirtualBox instructions page. No need to say that the appliance has been released for development and testing purposes.


The image contains four Labs:

  • Total Oracle WebLogic Server Development with Eclipse, Maven, and Hudson
  • Hands on with an end-to-end Java EE6 Application
  • A Step-By-Step Guide to Oracle Coherence
  • Running the Coherence Examples Project in Eclipse

These can be found in the /home/oracle/labs/ directory. Web links to these Labs can be found here.

Memory issues after installing OER

OER assetsAfter installing Oracle Enterprise Repository (OER) we experience some memory issues. Besides the messages in the log files, we also couldn’t use the console and em as we did before (when we were just running SOA Suite). It turned out the installation of OER in the same Weblogic domain resulted in some unexpected things.

The WebLogic Server and SOA Suite are started using the startWebLogic script (for windows .cmd and on Linux/Unix .sh). This script uses the setDomainEnv script to set the environment variable for the domain. The setDomainEnv script in turn calls the setSOADomainEnv that actually sets the USER_MEM_ARGS. That in the end are used in the startWebLogic script.

After the installation of OER the setDomainEnv not only calls the setSOADomainEnv. It also calls a script that sets the USER_MEM_ARGS for the oer_server in the domain. Apparently the memory required for OER is less than needed for the SOA Suite. Since the script for OER is executed last, memory setting remain low. As shown in the smippet taken from the setDomainEnv.cmd:

call "%WL_HOME%\common\bin\commEnv.cmd"
call "%DOMAIN_HOME%\bin\setSOADomainEnv.cmd"
call "%DOMAIN_HOME%\bin\setOERDomainEnv.cmd"

To solve the memory issue when starting the WebLogic Server using the startWebLogic script we alter the sequence so the setOERDomainEnv.cmd goes before the setSOADomainEnv.cmd.

If the installer put a second call to setSOADomainEnv.cmd in the setDomainEnv.cmd. That doesn’t work because the setSOADomainEnv.cmd contains the following check:

REM Skip running this script again if it was run once
if "%XENGINE_DIR%" == "" goto set_env
echo *********************************************************
echo ** SOA specific environment is already set. Skipping ...
goto end_set_env


Installing JRockit on Ubuntu

This post will show you how to install JRockit on Ubuntu 11.04. In later posts this will be used to run both WebLogic Server and Oracle Service Bus (OSB).

First download the installer from the JRockit download page. Make sure that the .bin file is executable. You can use chmod +x filename to make the file executable.

The installation guide for JRockit can be obtained from the JRockit Documentation page.

  • Start the installer: ./jrockit-jdk1.6.0_24-R28.1.3-4.0.1-linux-x64.bin from the directory you download it or copied it to. Extracting can take some time.
  • Click Next on the Welcome screen.
  • Choose the product installation directory eg /oracle/jrockit-jdk1.6.0_24 and click Next
  • Check optional components if you need them and click Next
  • Watch the progress bar 😉
  • The installation is complete so press Done.

The screenshots of the installation process are in this gallery:

JDeveloper supports 64-bit versions of Windows and Java

There is a small note in the JDeveloper Installation Guide:

This release of Oracle JDeveloper supports the 64-bit versions of Windows and Java.

More on the question What is 64-bit Java?, can be found on this Java Hotspot FAQ.

The Installation Guide mentioned before doesn’t show additional details on How-To get JDeveloper working on Windows 7 with an 64 bit Java version….
To get this working:

  • Download and install a recent 64 bit JDK for Windows 7 64 bit, eg jdk-6u24-windows-x64
  • go to the $Middleware_Home$\jdeveloper\jdev\bin directory and edit the jdev.conf
  • Alter the SetJavaHome to the directory in which you just installed the JDK:
# Directive SetJavaHome is not required by default, except for the base
# install, since the launcher will determine the JAVA_HOME.  On Windows
# it looks in ..\..\jdk, on UNIX it first looks in ../../jdk. If no JDK
# is found there, it looks in the PATH.
#SetJavaHome C:\Oracle\Middleware\jdk160_21
SetJavaHome C:\Program Files\Java\jdk1.6.0_24
  • And then start the jdev64W.exe in the $Middleware_Home$\jdeveloper\jdev\bin directory.

Additional hints

February 2012 Spyros Doulgeridis posted on his blog on Running JDeveloper in 64 bits. He shows additional guiding on:

  • Adjust JDeveloper’s memory settings in in the C:\Oracle\Middleware\jdeveloper\ide\bin\ide.conf
  • Increasing the memory of the embedded weblogic – in the setDomainEnv.cmd file
  • Configure Windows pagefile – to avoid the Virtual Memory Minimum Too Low error in Windows