Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ for more details.
I use SoapUI on a regular basis and today I wanted to change the JDK that it uses. I've noticed that by default the OS X installation of SoapUI 5.1.2 is using JRE 1.7. On my system, I've had the 1.8 JDK set as the default for quite some time, my ~/.profile file pointed to the 1.8 JDK bin directory for the PATH and the JAVA_HOME was set correctly, so it was puzzling to me why 1.7 was being picked up by SoapUI. I dug a little deeper and found the answer.

The answer lies in the /Applications/SoapUI-5.1.2.app/Contents/PlugIns/jre.bundle/Contents/Home directory. There is a 'jre' directory inside, when I checked the version of java installed there, it was 1.7. Bingo.
 SoapUI default JRE
$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)


This is confirmed inside SoapUI (Help > System Properties):
soapuijdk_2.png


Now to change which JRE is used is as simple as creating a symlink to the correct directory. I renamed the existing 'jre' directory first, just so that it is possible to go back, then I created a symlink to the 1.8 JRE inside my installed JDK's directory.
 Terminal
cd /Applications/SoapUI-5.1.2.app/Contents/PlugIns/jre.bundle/Contents/Home
mv jre jre.old
ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre jre




Running SoapUI with this change did the trick. The correct JRE is being picked up now.
soapuijdk_1.png


-i

Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...