This repository was archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[MXNET-1181] Added command line alternative to IntelliJ in install instructions #13267
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Run MXNet Java Examples Using the IntelliJ IDE (macOS) | ||
|
|
||
| This tutorial guides you through setting up a simple Java project in IntelliJ IDE on macOS and demonstrates usage of the MXNet Java APIs. | ||
| This tutorial guides you through setting up a simple Java project in IntelliJ IDE on macOS and demonstrates usage of the MXNet Java APIs. | ||
|
|
||
| ## Prerequisites: | ||
| To use this tutorial you need the following pre-requisites: | ||
|
|
@@ -108,6 +108,15 @@ TODO | |
| After clicking Finish, you will be presented with the project's first view. | ||
| The project's `pom.xml` will be open for editing. | ||
|
|
||
| **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 : | ||
| ```bash | ||
| mkdir java-proj | ||
| cd java-proj | ||
|
||
| mvn archetype:generate -DgroupId=mxnet -DartifactId=mxnetJava -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false | ||
| ``` | ||
| This command will create a new Java project folder with name `mxnetJava` inside `java-proj` folder. | ||
| 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). | ||
|
|
||
| **Step 3.** Add the following Maven dependency to your `pom.xml` file under the `dependencies` tag: | ||
|
|
||
| ```html | ||
|
|
@@ -120,6 +129,10 @@ The project's `pom.xml` will be open for editing. | |
|
|
||
| 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) | ||
|
|
||
| Note : | ||
| - Change the osx-x86_64 to linux-x86_64 if your platform is linux. | ||
| - Change cpu into gpu if you have a gpu backed machine and want to use gpu. | ||
|
|
||
|
|
||
| **Step 4.** Import dependencies with Maven: | ||
|
|
||
|
|
||
123 changes: 0 additions & 123 deletions
123
docs/tutorials/scala/mxnet_java_install_and_run_examples.md
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.