Kenerate is (supposed to be) a tool for generating Java code for me. Also I'd like to play with Kotlin language.
- Install Kotlin first:
$ curl -s 'https://get.sdkman.io' | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk install kotlin- To compile a program:
$ kotlinc main.kt -include-runtime -d kenerate.jaror simply
$ make- Now, let's run it:
$ java -jar kenerate.jar class Test -package com.example
Generating file com/example/Test.java
$ cat com/example/Test.java
package com.example;
class Test {
}