Github在Intellij Idea中克隆

密码:

我想使用创建稀疏矩阵Efficient Java Matrix Library (EJML)。这是链接(http://ejml.org/wiki/index.php?title=Main_Page)。我正在使用Intellij I Idea进行Java编码。在EJML网站中,建议

克隆它的命令是:git clone https://github.com/lessthanoptimal/ejml.git

我单击从版本控制中签出。然后从中选择Github并收到错误消息。Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified我在安装Git后解决了这个问题。创建一个新的项目文件夹。但是请不要在哪里写下我的Java代码。在普通的Intellij Idea项目中,会创建一个src文件夹。然后,我右键单击它并创建一个类文件。这里没有创建类文件的选项。我添加了当前状态的图片。

这是Intellj Idea的主页 在此处输入图片说明

在此处输入图片说明

克隆完成后

先感谢您

戴维·康拉德(David Conrad):

你想使用 EJML,或者你想在工作 EJML?您不太可能要克隆它。

而是创建一个项目并将EJML添加为依赖项。使用Maven,将其添加到您的pom.xml中:

<dependency>
  <groupId>org.ejml</groupId>
  <artifactId>ejml-all</artifactId>
  <version>0.33</version>
</dependency>

使用Ivy,将其添加到ivy.xml:

<dependency org="org.ejml" name="core" rev="0.33"/>

使用Gradle,将其添加到build.gradle:

compile group: 'org.ejml', name: 'core', version: '0.33'

Update: I tried adding it to a project of mine, and while the EJML web site mentions version 0.34, Maven Central only seems to have 0.33 currently.

To create a project in IntelliJ IDEA from scratch:

  • Click "Create New Project"
  • Make it a "Java Project" (default), and click Next
  • Click Next to bypass creating from a template
  • Give the project a thoughtful name, like "Sparse", and click Finish
  • Right-click on the project at the upper left and click "Add Framework Support..."
  • Check "Maven" and click "OK"
  • In the pom.xml, add these lines after the :

    org.ejml ejml-all 0.33

  • IntelliJ IDEA will prompt that the Maven project needs to be imported. Allow it.

On the left side under the project you can open src/main/java in the tree and right-click on java and choose New > Java Class and you should be ready to go.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章