如何修复此错误无法 运行 程序 "svn" 错误 Java

How to fix this error Cannot run program "svn" Error in Java

我在加载开源应用程序时遇到问题

我已按照这些步骤操作

Perform a fresh checkout from SVN
1. Start IntelliJ IDEa.

2.In the "Quick Start" menu, select "Check out from Version Control".
This will display a drop-down box.

3.In the drop-down box, select "Subversion". 
This will open a "Checkout from Subversion" dialog.

4.In the "Checkout from Subversion" dialog, click the "+" button in the top left to add a new Repository. 
This will open a "New Repository Location" dialog.

5.In the "New Repository Location" dialog, enter the svn checkout location of cTakes.
Click "Ok". 
This will inspect the repository.

6.Click the "Expand" triangle.
This should display the directory listing of trunk.
Click "Checkout". 

This will open a "Destination Directory" dialog.
Enter a local directory in which to keep trunk (your sandbox).
Click "Ok". This will open a "Checkout Options" dialog. 
The default options ("Head", etc.) are fine for most users.
Click "Ok". 
This will open a "Working Copy Format" dialog.
Select a (version) format and click "Ok". I use version 1.8, but any should be fine. 
This will start the actual checkout and display a progress dialog. The checkout may take a little while.
After the checkout has completed, a new dialog will ask you if you'd like to open the project. Click "No".

但是当我到达第 5 步时,我输入了 svn 位置

并得到这个错误

Cannot run program "svn" (in directory "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3"):

CreateProcess error=2, The system cannot find the file specified

注意这是我第一次使用 Java

如何才能加载我的应用程序并使 运行 成功?

来自jetbrains官方blog:

... it is now required to use a command-line svn client for integration with Subversion.

In 2018.1 the SVNKit library has been removed from the IntelliJ platform, resulting in the above changes.

而且市场上似乎没有svn客户端的插件。

所以你应该按照建议安装 svn 命令行 here

IntelliJ IDEA comes bundled with the Subversion plugin. Apart from it, you also need to download and install the command line client on your machine.