Skip to content

Commit

Permalink
Merge pull request #2184 from cyberbotics/fix-improve-instructions-fo…
Browse files Browse the repository at this point in the history
…r-extern-java-controllers

Update running-extern-robot-controllers.md
  • Loading branch information
omichel authored Sep 1, 2020
2 parents f2e5cee + bc055c6 commit 486dcf6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/guide/running-extern-robot-controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,14 @@ No specific setup is needed.

%tab "Java"

Add the `-Djava.library.path=${WEBOTS_HOME}/lib/controller/java` option to the `java` command line launching the Java controller.
Add the following options to the `java` command line launching the Java controller:
- `-classpath $WEBOTS_HOME/lib/controller/java/Controller.jar:$WEBOTS_HOME/my_project/controllers/MyController/`
- `-Djava.library.path=${WEBOTS_HOME}/lib/controller/java`

For example to launch the `Driver` Java controller, type:
```bash
java -classpath $WEBOTS_HOME/lib/controller/java/Controller.jar:$WEBOTS_HOME/projects/languages/java/controllers/Driver/ -Djava.library.path=$WEBOTS_HOME/lib/controller/java Driver
```
%tab-end


Expand Down

0 comments on commit 486dcf6

Please sign in to comment.