Got createProcess error=2 FIle not found when trying to connect to a database
I'm trying to connect to an Local Oracle Database.
When i tested the connection for the first time (each time i reinstalled DataGrip), it's successful. But then, it failed with the following error : (I took the full stack in the logs) :
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Users\Jules LAURENT\AppData\Local\JetBrains\Toolbox\apps\datagrip\ch-0\173.4127.18\jre64\bin\java" (in directory "C:\Users\Jules LAURENT\AppData\Local\JetBrains\Toolbox\apps\datagrip\ch-0\173.4127.18\bin"): CreateProcess error=2, Le fichier spécifié est introuvable
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:386)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:44)
at com.intellij.execution.configurations.SimpleJavaParameters.createOSProcessHandler(SimpleJavaParameters.java:192)
at com.intellij.database.run.ConsoleRunConfiguration$3.startProcess(ConsoleRunConfiguration.java:142)
at com.intellij.database.run.ConsoleRunConfiguration$3.execute(ConsoleRunConfiguration.java:135)
at com.intellij.execution.rmi.RemoteProcessSupport.a(RemoteProcessSupport.java:214)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:143)
... 39 more
Caused by: java.io.IOException: Cannot run program "C:\Users\Jules LAURENT\AppData\Local\JetBrains\Toolbox\apps\datagrip\ch-0\173.4127.18\jre64\bin\java" (in directory "C:\Users\Jules LAURENT\AppData\Local\JetBrains\Toolbox\apps\datagrip\ch-0\173.4127.18\bin"): CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:415)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:382)
... 45 more
Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 47 more
I tried to put the java.exe (from the phpstorm files) in the bin folder and to fully reinstall datagrip many times , but it seems to be deleted after the first connection test.
请先登录再写评论。
Hi,
There is an issue https://youtrack.jetbrains.com/issue/DBE-5762 you can track and vote for.
As a temporary workaround, you can launch DataGrip by running exe file or reinstall application without Toolbox.
Thank y ou.