Java and Kotlin compiler for uvm
- JDK1.8+
- Maven 3
- You can find a kotlin demo contract and a java demo contract in
gjavactestjavacontract
directory andgjavatestkotlincontract
directory
- need to add reference to
gjavac-core
as lib in you java contract project mvn pacakge
to generategjavac-compiler/target/gjavac-${version}-jar-with-dependencies.jar
to generate gjavac.jargjavac.jar path-of-need-.class-files
to generate contract's assembler file(*.ass file)uvm_ass path-of-.ass-file
to generate bytecode file(.out) and metadata file(.meta.json)package_gpc path-of-bytecode-file path-of-metadata-json-file
to generate contract file(*.gpc)- now you can use *.gpc file to register contract in the blockchain