Loki874 Posted March 12, 2019 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.
Butters Posted March 12, 2019 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.
Loki874 Posted March 13, 2019 Author 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