blade Failed to find Java VM after Java upgradeblade Failed to find Java VM after Java upgradehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1031437892024-03-29T02:17:03Z2024-03-29T02:17:03ZRE: blade Failed to find Java VM after Java upgradeChristophe Cariouhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117075002018-11-30T09:56:27Z2018-11-30T09:56:27Z<p>Hi all,</p>
<p> </p>
<p>Blade, JPM and GW use<strong> .ini</strong> files that are<u>
generated during the installation.</u></p>
<p>This files are in your <<strong>user>/.jpm/windows/bin </strong>folder.</p>
<p>In this .ini files, the path to <strong>jvm.dll </strong>are made
f<u>rom the current java version installed</u> on the host.</p>
<p> </p>
<p>But<u> if you update your java later</u>, <u>this paths are no longer vali</u>d... </p>
<p> </p>
<p>So you have to update thes .ini files after each java update...</p>
<p> </p>
<p>Regards</p>Christophe Cariou2018-11-30T09:56:27ZRE: blade Failed to find Java VM after Java upgradeSean Megeathhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1031782542018-01-25T21:24:37Z2018-01-25T21:24:37ZI uninstalled and re-installed my JRE and SDK of Java 1.8.0_161 and that fixed the problem.Sean Megeath2018-01-25T21:24:37ZRE: blade Failed to find Java VM after Java upgradeSean Megeathhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1031787292018-01-25T19:33:53Z2018-01-25T19:33:53ZI cleared the Java cache of "Trace and Log Files", "Cached Applications and Applets", and Installed Applications and Applets". I deleted any reference I could find to previous versions of Java from my registry using Regedit. I deleted all my temporary files. I deleted the .jpm directory in my user directory. I deleted the LiferayWorkspace directory from my user directory's AppData\Local\Temp directory. But when I reinstall with the LiferayWorkspace-1.5.0.1-windows-installer.exe, I get the same error: first, a popup saying it can't find the JVM, then a popup in the picture attached. Again, there's no problem finding java on the command-line and the JAVA_HOME variable is set correctly.Sean Megeath2018-01-25T19:33:53ZRE: blade Failed to find Java VM after Java upgradeJoye Luohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1031476312018-01-25T03:42:51Z2018-01-25T03:42:51ZHello Sean,<br /><br />I have tried 1.8.0_161 and it has no problem.<br />So I guess it's the java environment cache problem.<br />You can try to clean the registry for the old version of jdk.(manually or use software)<br /><br />If u still have that problem, please let us know.Joye Luo2018-01-25T03:42:51Zblade Failed to find Java VM after Java upgradeSean Megeathhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1031437882018-01-24T23:32:45Z2018-01-24T23:32:45ZI recently updated my Java SDK to 1.8.0_161, removing my old version. I run Cygwin on a Windows 10 machine. I've updated my JAVA_HOME and PATH environment variables, such that I get <br /><br />$ echo $JAVA_HOME<br />C:\Program Files\Java\jdk1.8.0_161<br />$ which java<br />/cygdrive/c/Program Files/Java/jdk1.8.0_161/bin/java<br /><br />But blade (or jpm) doesn't recognize it. When I tried to run blade sh lb, I got:<br />$ blade sh lb<br /> [err] Failed to find Java VM.<br /><br />When I tried to run the installer again, I get:<br />Error running java -jar "C:\Users\smegeath\AppData\Local\Temp\LiferayWorkspace\bi