Skip to content

Commit

Permalink
Added run description on Raspberry Pi, extended with SDKMAN installed…
Browse files Browse the repository at this point in the history
… Java
  • Loading branch information
Frank Delporte committed May 26, 2023
1 parent 8df5679 commit 8c506b2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,26 @@ $ curl -s "https://get.sdkman.io" | bash
$ sdk install java 17.0.7-zulu
```

* Get this project from GitHub.
* Get this project from GitHub and package it.

```shell
$ git clone https://github.com/Pi4J/pi4j-springboot.git
$ cd pi4j-springboot
$ mvn package
```

* Run it as sudo to make sure Pi4J starts correctly.

```shell
$ sudo java -jar pi4j-spring-boot-starter-sample-app/target/pi4j-spring-boot-starter-sample-app-0.0.1.ea.jar

# Or when installed with SDKMAN
$ sudo ~/.sdkman/candidates/java/19.0.2-zulu/bin/java -jar pi4j-spring-boot-starter-sample-app/target/pi4j-spring-boot-starter-sample-app-0.0.1.ea.jar
```

* Check the output of the application:

```shell
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
Expand Down

0 comments on commit 8c506b2

Please sign in to comment.