Skip to content

Whitecoin-XWC/xwc-gjavac

Repository files navigation

gjavac

Java and Kotlin compiler for uvm

Dependencies

  • JDK1.8+
  • Maven 3

Examples

  • You can find a kotlin demo contract and a java demo contract in gjavactestjavacontract directory and gjavatestkotlincontract directory

Usage

  • 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

About

Java and Kotlin compiler for uvm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published