Kotlin for Java Card

I am researching a possibility to develop Java Card applets using Kotlin.
I can’t say I am very good at Java Card development, though using Java the process is straight forward.
So I was wondering if anyone tried to compile Kotlin code to Java Card applet? What are your thoughts?

Basically, it you can use Java bytecode, you can use Kotlin. If you use kotlin jvm gradle plugin or withJava() function in kotlin multiplatform, you can use any Java gradle plugin with it.

Will the Kotlin runtime library be available (and work) on Java Card?

Kotlin does not have “runtime library”. Kotlin standard library is seen like a regular library from Java. I am not familiar with Java Card development. But if you can use a JVM library, you can use Kotlin.

1 Like