March 12, 20196 yr 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.
March 12, 20196 yr 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.
March 13, 20196 yr Author 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
Create an account or sign in to comment