Skip to content

Latest commit

 

History

History
executable file
·
24 lines (16 loc) · 707 Bytes

README.md

File metadata and controls

executable file
·
24 lines (16 loc) · 707 Bytes

IC4J Java sample demonstrating POJO object serialization and deserialization to/from Candid Record type.

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

This application requires Java version 11.

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

ic.location=https://icp-api.io/
ic.canister=wzcaa-wqaaa-aaaab-qadhq-cai

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

gradle build

Run Java with fat jar

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