Skip to content

Latest commit

 

History

History

IC4JJava17Sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

IC4J Java JDK 17 sample demonstrating use of ReplicaTransport based on Java 11 HTTP Client API.

To install the canister Dapp, use Motoko code main.mo, copy/paste to Motoko Playground and deploy.

This application requires Java version 17.

Modify application.properties file to set canister location and id.

ic.location=https://icp-api.io/
ic.canister=yhlsk-rqaaa-aaaab-qacfq-cai

Run Gradle build. Modify Java version in the build file if higher than 17.

gradle build

Run Java with fat jar

java -jar build/libs/ic4j-sample-java17-0.7.0.jar