Loki874 Posted March 12, 2019 Share Posted March 12, 2019 Hey guys, starting out a new project and since Kotlin is much nicer than Java I thought the next script would be kotlin based. However I keep getting java.lang.NoClassDefFoundError: kotlin/TypeCastException error. Anyone met with this problem before? I have added the Kotlin lib to the jar output directory. Quote Link to comment Share on other sites More sharing options...
Butters Posted March 12, 2019 Share Posted March 12, 2019 As far as I know OSBot doesn't allow external libraries in scripts due to security concerns, unless you use the libraries source directly. In short - won't be able to do it. Quote Link to comment Share on other sites More sharing options...
Loki874 Posted March 13, 2019 Author Share Posted March 13, 2019 Ok managed to get it to work. For future reference, in the archive you have to extract the kotlin library jar contents into it as Osbot won't be able to read library stuff from a jar Quote Link to comment Share on other sites More sharing options...