Thank you for your answer!
I used your javaenv image. I try the "
Write your FIrst Application" tutorial for java and when I run the app after building dependencies: (
mvn test for fabcar application and
gradle runApp for asset-transfer-basic application) I get the error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: failed to load the required native library
at io.netty.handler.ssl.OpenSsl.ensureAvailability(OpenSsl.java:474)
at io.netty.handler.ssl.ReferenceCountedOpenSslContext.<init>(ReferenceCountedOpenSslContext.java:196)
at io.netty.handler.ssl.ReferenceCountedOpenSslContext.<init>(ReferenceCountedOpenSslContext.java:185)
at io.netty.handler.ssl.OpenSslContext.<init>(OpenSslContext.java:34)
at io.netty.handler.ssl.OpenSslClientContext.<init>(OpenSslClientContext.java:189)
at io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:827)
at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:576)
at org.hyperledger.fabric.sdk.Endpoint.<init>(Endpoint.java:262)
at org.hyperledger.fabric.sdk.Endpoint.createEndpoint(Endpoint.java:487)
at org.hyperledger.fabric.sdk.Peer.setTLSCertificateKeyPair(Peer.java:447)
at org.hyperledger.fabric.sdk.Channel.addPeer(Channel.java:669)
at org.hyperledger.fabric.gateway.impl.GatewayImpl.getNetwork(GatewayImpl.java:245)
at application.java.App.main(App.java:53)
Caused by: java.lang.IllegalArgumentException: Failed to load any of the given libraries: [netty_tcnative_linux_aarch_64, netty_tcnative_linux_aarch_64_fedora netty_tcnative_aarch_64, netty_tcnative].....................
I searched the error on google and I tried to build the netty-tcnative from source:
git clone https://github.com/netty/netty-tcnative.git
cd netty-tcnative
cd netty-tcnative
mvn instal
Failed to execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.11:build (build-native-lib) on project netty-tcnative: build failed: org.apache.maven.plugin.MojoExecutionException: Requested download does not exist.: Failure to find io.netty:netty-tcnative:zip:native-src:2.0.35.Final-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forcedAny help? Does anyone have tried java application on arm architecture?
Thanks in advance.