2017-08-23 38 views

回答

2

使用cp選項。

-classpath(-cp)路徑在哪裏可以找到用戶類文件

kotlinc -cp path_to_commons-lang-2.6.jar

>>> import org.apache.commons.lang.StringUtils; 
>>> 
>>> StringUtils.isBlank(" ") 
true 
>>> 
+0

有沒有一種方法導入上通過類似Maven的工具飛還是進口? –