Jump to content
volatile474

Script Development in Scala

Recommended Posts

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.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...