mavlink / MAVSDK-Java

MAVSDK client for Java.
73 stars 42 forks source link

Using jshell in java example #100

Closed ThomasCarstens closed 2 years ago

ThomasCarstens commented 2 years ago

I tried to load jshell with mavsdk classes as per https://github.com/mavlink/MAVSDK-Java/tree/main/examples/java-client

I can't seem to use jshell within the java example project, even though jshell works with jshell on my installation. Am I missing a vital step? Thanks!

Behaviour:

./gradlew jshell

FAILURE: Build failed with an exception.

* What went wrong:
Task 'jshell' not found in root project 'MAVSDK-Java-example'. Some candidates are: 'help'.
JonasVautherin commented 2 years ago

Yeah I always had trouble running with jshell. I would recommend just building and running from a file :grin:

ThomasCarstens commented 2 years ago

Ah I see, thanks for the heads up.

JonasVautherin commented 2 years ago

Let me know if you find a good way to import a project in jshell. In the meantime I'll close this.