【问题标题】:How to fix this error Cannot run program "svn" Error in Java如何修复此错误无法在 Java 中运行程序“svn”错误
【发布时间】:2019-11-30 07:55:09
【问题描述】:

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

我已按照这些步骤进行

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 位置

得到这个错误

无法运行程序“svn”(在目录“C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3"):

CreateProcess error=2,系统找不到指定的文件

注意这是我第一次使用 Java

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

【问题讨论】:

  • @guleryuz 我已经检查了这个问题,我没有 Subversion 设置中的“使用命令行客户端”选项。 !!

标签: java maven svn ctakes


【解决方案1】:

来自jetbrains官方blog

... 现在需要使用命令行 svn 客户端进行集成 使用颠覆。

在 2018.1 中,SVNKit 库已从 IntelliJ 中删除 平台,导致上述变化。

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

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

IntelliJ IDEA 与 Subversion 插件捆绑在一起。除此之外, 您还需要download 并在您的 机器。

【讨论】:

    猜你喜欢
    • 2019-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多