2

I have downloaded java8 and then created a folder "java" in "/usr/local". Later I set the JAVA_HOME and PATH using export.
echo $JAVA_HOME output /usr/local/java/jdk1.8.0_20

Now, when I open terminal and type java -version it prompts to choose any package from below to install java. But when I do $JAVA_HOME/bin/java -version it gives

java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b23)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b22, mixed mode)

and when I run
sh /home/SOAPUI_HOME/soapui-4.0.1/bin/soapui.sh gives

================================
=
= SOAPUI_HOME = /home/SOAPUI_HOME/soapui-4.0.1
=
================================
/home/SOAPUI_HOME/soapui-4.0.1/bin/soapui.sh: 141: /home/SOAPUI_HOME/soapui-4.0.1/bin/soapui.sh: java: not found
9
  • You've entered all of these commands in the same shell, or in different shells? Aug 22, 2014 at 11:14
  • I have tried in different terminals and same terminals. But it gave same results...
    – paul
    Aug 22, 2014 at 11:21
  • So what's line 141 of soapui.sh ?
    – Kayaman
    Aug 22, 2014 at 11:22
  • @paul export sets environment variables on a per-shell basis. You need to be in the same shell that you've run export in. Aug 22, 2014 at 11:23
  • Oh, @PatrickCollins, I am sorry, while setting java home and path , I was in same shell. If java wasn't properly installed I would've not been able to run other apps which need java support like eclipse and running webdrive scripts.
    – paul
    Aug 22, 2014 at 11:26

3 Answers 3

3

SoapUI doesn't use JAVA_HOME in its launcher .sh files. You could add /usr/local/java/jdk1.8.0_20/ before java on line 141 (if you are using SoapUI 4.0.1, but I would suggest to upgrade to 5.0.0, then it's line 72).

Another solution would be to to make sure your java installation is the PATH variable.

Third, and easiest in my opinion, is to download the installer version of SoapUI. It is a .sh file which installs both SoapUI and Java.

2
  • I wanna go 3rd option, but how to run that in terminal. I tried bash SoapUI-x32-5.0.0.sh and it says gzip: sfx_archive.tar: Function not implemented I am sorry, but the installer file seems to be corrupted. If you downloaded that file please try it again. If you transfer that file with ftp please make sure that you are using binary mode.
    – paul
    Aug 25, 2014 at 10:13
  • The installer should be 119226387 bytes and the md5 hash of it should be 0b4c4244224cd985f2cc1ef4a0a00e36. Maybe the download of the installer failed somehow. Aug 25, 2014 at 12:10
0

I turned off the Internet Connection, because in the logs I saw many HttpConnection errors. Launch SOAP UI from terminal

sh /Applications/SoapUI-5.1.3.app/Contents/java/app/bin/soapui.sh 

and then turn on the internet again.

0

When I want my systems Java version to overrule the SoapUI Java version, I rename the jre folder within the soapUI folder to temp or whatever. After that SoapUI picks up the Java version that you are running on your system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.