Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 7d51241

Browse files
piyushghaiyzhliu
authored andcommitted
[MXNET-1181] Added command line alternative to IntelliJ in install instructions (#13267)
* Added command line alternative to IntelliJ * Removed the duplicate file * Fixed typos * Fixed minor command issue
1 parent 52bead0 commit 7d51241

File tree

2 files changed

+14
-124
lines changed

2 files changed

+14
-124
lines changed

docs/tutorials/java/mxnet_java_on_intellij.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Run MXNet Java Examples Using the IntelliJ IDE (macOS)
22

3-
This tutorial guides you through setting up a simple Java project in IntelliJ IDE on macOS and demonstrates usage of the MXNet Java APIs.
3+
This tutorial guides you through setting up a simple Java project in IntelliJ IDE on macOS and demonstrates usage of the MXNet Java APIs.
44

55
## Prerequisites:
66
To use this tutorial you need the following pre-requisites:
@@ -108,6 +108,15 @@ TODO
108108
After clicking Finish, you will be presented with the project's first view.
109109
The project's `pom.xml` will be open for editing.
110110

111+
**IntelliJ IDEA Alternative** If you want to use only Maven to create the project, you can create a new folder and run the following in the newly created folder :
112+
```bash
113+
mkdir java-proj
114+
cd java-proj/
115+
mvn archetype:generate -DgroupId=mxnet -DartifactId=mxnetJava -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
116+
```
117+
This command will create a new Java project folder with name `mxnetJava` inside `java-proj` folder.
118+
More on creating Maven projects can be found on this Maven tutorial : [Maven in 5 Minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html).
119+
111120
**Step 3.** Add the following Maven dependency to your `pom.xml` file under the `dependencies` tag:
112121

113122
```html
@@ -120,6 +129,10 @@ The project's `pom.xml` will be open for editing.
120129

121130
To view the latest MXNet Maven packages, you can check [MXNet Maven package repository](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.mxnet%22)
122131

132+
Note :
133+
- Change the osx-x86_64 to linux-x86_64 if your platform is linux.
134+
- Change cpu into gpu if you have a gpu backed machine and want to use gpu.
135+
123136

124137
**Step 4.** Import dependencies with Maven:
125138

docs/tutorials/scala/mxnet_java_install_and_run_examples.md

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)