Forum Discussion

AJohansen's avatar
AJohansen
New Contributor
12 years ago

[Resolved] Specifying a different JAVA_HOME/Java version

In our project we need to use a third-party library that has compatibility issues with Java 7. It is known to work under Java 6, though. For this reason I would like to try running SoapUI 5.0 under Java 6.

What is the best way to start SoapUI with a particular JRE? I have modified soapui-pro.bat to specify JAVA_HOME, but this seems to have no effect. The SoapUI log always says:
INFO:Used java version: 1.7.0_51

3 Replies

  • Hi,

    I have modified soapui-pro.bat to specify JAVA_HOME, but this seems to have no effect.


    You should set JAVA_HOME to your JRE\JDK directory (outside of the batch file) and then starting soapui-pro.bat should pick up and use the JAVA you set.

    You can also download and use the zipped version of SoapUI Pro that does not come with a JRE bundled.
    http://www.soapui.org/Downloads/latest-release.html



    Regards,
    Marcus
    SmartBear Support
  • AJohansen's avatar
    AJohansen
    New Contributor
    SmartBear Support wrote:
    You should set JAVA_HOME to your JRE\JDK directory (outside of the batch file) and then starting soapui-pro.bat should pick up and use the JAVA you set.


    This does not appear to work with the stand-alone version of SoapUI. You may want to treat this as a bug.

    On a fresh install of 5.1.0 I see the following:

    C:\Program Files (x86)\SmartBear\SoapUI-Pro-5.1.0\bin>echo %JAVA_HOME%
    C:\dev\Java\jdk1.6.0_38

    C:\Program Files (x86)\SmartBear\SoapUI-Pro-5.1.0\bin>soapui-pro.bat
    ...
    12:33:26,206 INFO [SoapUI] Used java version: 1.7.0_55


    SmartBear Support wrote:
    You can also download and use the zipped version of SoapUI Pro that does not come with a JRE bundled.
    http://www.soapui.org/Downloads/latest-release.html


    Thanks, this worked.
  • Hi,

    This does not appear to work with the stand-alone version of SoapUI. You may want to treat this as a bug.


    I believe that is intended and not a bug, that's is why there is a non bundled JRE version of SoapUI Pro. I checked the batch file of the bundled JRE version and thought maybe setting JAVA_HOME and starting SoapUI Pro with the batch file could be a workaround to using your own JAVA, but apparently not .

    Anyway, since your all set with this I will mark this post as "resolved".


    Regards,
    Marcus
    SmartBear Support