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 java -classpath "classesOfYourContract:pathOf-gjavac.jar" gjavac.MainKt path-of-need-.class-files
to generate contract's assembler file(.ass file) and metadata file(.meta.json)uvm_ass path-of-.ass-file
to generate bytecode file(*.out)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