./opatch: line 839: [: too many arguments Java (1.x) could not be located

After writing article How to Upgrade OPatch to Latest Version, a few reader raised concerns that they got following error when calling opatch binaries. Even after ensuring that java is installed and all relevant environment variables were also set correctly. The OPatch utility’s md5sum was compared and there was no corruption. To fix this we…