Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum

[mraa]

idata
Community Manager
955 Views

Hi,

Well, I have to admit I not follow the standard path.

First of all, I installed Fedora 23 on top of the Edison card.

Now up I tried to run the java code example provided on https://github.com/intel-iot-devkit/mraa/tree/master/examples/java mraa/examples/java at master · intel-iot-devkit/mraa · GitHub

So, I was able to make the Example.java running well.

However, I was not able to run the HelloEdison one.

Compilation went fine but execution was not giving me the expected outcome.

java -cp "/usr/lib/java/mraa.jar:." HelloEdison

Exception in thread "main" java.lang.UnsatisfiedLinkError: mraa.mraaJNI.INTEL_NUC5_get()I

at mraa.mraaJNI.INTEL_NUC5_get(Native Method)

at mraa.Platform.(Platform.java:20)

at mraa.mraa.getPlatformType(mraa.java:25)

at HelloEdison.main(HelloEdison.java:46)

Could you please give me some hint on how to fix it ?

Thanks.

0 Kudos
1 Solution
idata
Community Manager
93 Views

Hi fhornain,

 

 

If I understood you well, you are running Fedora instead of Yocto, is that correct?

 

 

The error you are getting seems to be caused when trying to get the platform type. The fact that you are using Fedora might be the reason why you are getting the error. Since Fedora is not the supported OS, MRAA might not work as expected. In the Example.java code, you are only importing mraa.mraa, but in the HelloEdison.java code, you are importing more libraries. MRAA is not adapted to work in other OS like Fedora so I recommend you to use Yocto.

 

 

Regards,

 

Diego

View solution in original post

1 Reply
idata
Community Manager
94 Views

Hi fhornain,

 

 

If I understood you well, you are running Fedora instead of Yocto, is that correct?

 

 

The error you are getting seems to be caused when trying to get the platform type. The fact that you are using Fedora might be the reason why you are getting the error. Since Fedora is not the supported OS, MRAA might not work as expected. In the Example.java code, you are only importing mraa.mraa, but in the HelloEdison.java code, you are importing more libraries. MRAA is not adapted to work in other OS like Fedora so I recommend you to use Yocto.

 

 

Regards,

 

Diego
Reply