Can I run kotlin as script with Java Scripting API

后端 未结 2 775
小鲜肉
小鲜肉 2021-01-05 13:13

I want to run kotlin code as script from java with Java Scripting API similar to this for javascript:

import javax.script.*;
public class EvalScript {
    pu         


        
2条回答
  •  遥遥无期
    2021-01-05 13:50

    Kotlin support for the Java Scripting API is planned, but as of version 1.0.3 is not available yet. For the mean time, you can try to use an existing open-source implementation.

提交回复
热议问题