Error by compiling the java libraries


#1

Hello,
I would like to use the java libraries to test my GrovePi.
I followed the documentation from https://github.com/DexterInd/GrovePi/tree/master/Software/Java
But when and try to compile it, I get the following error:

pi@dex:~/GrovePi/Software/Java $ ./scripts/compile.sh
./src/com/dexterind/grovepi/Grovepi.java:40: error: unreported exception Exception; must be caught or declared to be thrown
instance = new Grovepi();
^
1 error

What I’m doing wrong?

Best regards
Patricio


#2

Not a java expert, but could you trya different script? Maybe its just a bug.


#3

That is the script that comes with the Java library. I have not been able to use the library, ever. I have a few posts about it previously.


#4

Hi @patricio.galeas, @noname580,

We will come very soon with a step-by-step tutorial for getting started with Java.
Stay tuned!

Thank you!