Jump to content

Script Development in Scala


Recommended Posts

Posted (edited)

Hello all, 

I am new to the osbot script development community (wrote some scripts for a different bot back in the day). Was wondering if anyone has had experience building scripts in a language that compiles down to Java (scala, kotlin, etc). I am working on a simple POC (fish, chop trees, cook, repeat) in scala and running into a bunch of classdefnotfound exceptions during runtime. ie:

```
java.lang.NoClassDefFoundError: scala/collection/Seq

java.lang.NoClassDefFoundError: scala/math/Ordering
```

I have tried packaging scala into the jar through intelliJ's project structure page, but no positive results. This is probably because the OSBot client doesn't package the scala jars itself, and just dynamically loads the selected script? (but not that script's dependencies)

Would love to be able to write these scripts in scala, code looks much cleaner that way.
Any suggestions would be much appreciated.

Edited by volatile474
removed references to censored text.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...