lanking520 closed pull request #13412: Minor fixes to documentation
URL: https://github.com/apache/incubator-mxnet/pull/13412
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/tutorials/java/mxnet_java_on_intellij.md 
b/docs/tutorials/java/mxnet_java_on_intellij.md
index 349aa5fdc95..f4d4ea5ab83 100644
--- a/docs/tutorials/java/mxnet_java_on_intellij.md
+++ b/docs/tutorials/java/mxnet_java_on_intellij.md
@@ -65,7 +65,7 @@ mxnet
 ```
 **ArtifactId**
 ```
-ArtifactId: javaMXNet
+javaMXNet
 ```
 **Version**
 ```
@@ -85,17 +85,27 @@ Set the project's location. The rest of the settings can be 
left as their defaul
 After clicking Finish, you will be presented with the project's first view.
 The project's `pom.xml` will be open for editing.
 
-**Step 3.** Add the following Maven dependency to your `pom.xml` file under 
the `dependencies` tag: 
+**Step 3.** The Java packages are currently available as nightly builds on 
Maven. Add the following Maven repository to your `pom.xml` to fetch the Java 
packages :
  
+```html
+<repositories>
+    <repository>
+      <id>Apache Snapshot</id>
+      <url>https://repository.apache.org/content/groups/snapshots</url>
+    </repository>
+</repositories>
+```
+
+Also, add this under the `dependencies` tag :
+
 ```html
 <dependency>
   <groupId>org.apache.mxnet</groupId>
   <artifactId>mxnet-full_2.11-osx-x86_64-cpu</artifactId>
-  <version>1.4.0</version>
+  <version>1.3.1-SNAPSHOT</version>
 </dependency>
 ```
-
-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)
+The official Java Packages will be released with the release of MXNet 1.4 and 
will be available on  [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.
@@ -113,8 +123,8 @@ Click "Import Changes" in this prompt.
 **Step 5.** Build the project:
 - To build the project, from the menu choose Build, and then choose Build 
Project.
 
-**Step 6.** Navigate to the App.java class in the project and paste the code 
from HelloWorld.java from [Java Demo 
project](https://github.com/apache/incubator-mxnet/blob/java-api/scala-package/mxnet-demo/java-demo/src/main/java/sample/HelloWorld.java)
 on MXNet repository, overwriting the original hello world code.
-You can also grab the entire [Java Demo 
project](https://github.com/apache/incubator-mxnet/tree/java-api/scala-package/mxnet-demo/java-demo)
 and run it by following the instructions on the 
[README](https://github.com/apache/incubator-mxnet/blob/java-api/scala-package/mxnet-demo/java-demo/README.md)
+**Step 6.** Navigate to the App.java class in the project and paste the code 
in `main` method from HelloWorld.java from [Java Demo 
project](https://github.com/apache/incubator-mxnet/blob/java-api/scala-package/mxnet-demo/java-demo/src/main/java/sample/HelloWorld.java)
 on MXNet repository, overwriting the original hello world code.
+You can also grab the entire [Java Demo 
project](https://github.com/apache/incubator-mxnet/tree/java-api/scala-package/mxnet-demo/java-demo)
 and run it by following the instructions on the 
[README](https://github.com/apache/incubator-mxnet/blob/java-api/scala-package/mxnet-demo/java-demo/README.md).
 
 **Step 7.** Now run the App.java. 
 
@@ -159,7 +169,7 @@ The build generates a new jar file in the `target` folder 
called `javaMXNet-1.0-
 
 To run the App.java use the following command from the project's root folder 
and you should see the same output as we got when the project was run from 
IntelliJ.
 ```bash
-java -cp target/javaMXNet-1.0-SNAPSHOT.jar:target/dependency/* mxnet.App
+java -cp "target/javaMXNet-1.0-SNAPSHOT.jar:target/dependency/*" mxnet.App
 ```
 
 ## Next Steps
diff --git a/docs/tutorials/java/ssd_inference.md 
b/docs/tutorials/java/ssd_inference.md
index a16469d9390..3a20329f9a9 100644
--- a/docs/tutorials/java/ssd_inference.md
+++ b/docs/tutorials/java/ssd_inference.md
@@ -156,7 +156,7 @@ The build generates a new jar file in the `target` folder 
called `javaMXNet-1.0-
 
 To run the ObjectDetectionTutorial.java use the following command from the 
project's root folder.
 ```bash
-java -cp target/javaMXNet-1.0-SNAPSHOT.jar:target/dependency/* 
mxnet.ObjectDetectionTutorial
+java -cp "target/javaMXNet-1.0-SNAPSHOT.jar:target/dependency/*" 
mxnet.ObjectDetectionTutorial
 ```
     
 You should see a similar output being generated for the dog image that we used:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to