Adamcake / Bolt

An alternative launcher for your favourite MMO
GNU Affero General Public License v3.0
122 stars 18 forks source link

java.lang.RuntimeException: Assertions are not enabled, add '-ea' to your VM options #13

Closed Robert-Rendell closed 5 months ago

Robert-Rendell commented 5 months ago

Using custom jar from bolt: Screenshot from 2024-01-07 01-30-46

Error when running: Screenshot from 2024-01-07 01-31-21

I can replicate this error by omitting the "-ea" flag: `$ java -jar runelite-plugin-development.jar"

Robert-Rendell commented 5 months ago

I don't have any assertions in my java code

Screenshot from 2024-01-07 02-05-47

Robert-Rendell commented 5 months ago

image

Robert-Rendell commented 5 months ago

Screenshot from 2024-01-07 02-43-55

Adamcake commented 5 months ago

That should be fixable by setting _JAVA_OPTIONS="-ea" in your env when running Bolt?

I'm not familiar with runelite plugin development, what's that jar file you're trying to run? Is it a custom build or did you get it from somewhere? It might be that it's a build of the runelite game client, whereas Bolt expects to be running the launcher.

Robert-Rendell commented 5 months ago

image

Robert-Rendell commented 5 months ago

That should be fixable by setting _JAVA_OPTIONS="-ea" in your env when running Bolt?

I'm not familiar with runelite plugin development, what's that jar file you're trying to run? Is it a custom build or did you get it from somewhere? It might be that it's a build of the runelite game client, whereas Bolt expects to be running the launcher.

Ok so it sounds like the setting on Bolt called "Use custom RuneLite JAR", isn't what I was expecting it to be. To replay what you said, that field on Bolt is expecting a jagex launcher jar and not a runelite client jar (the latter is what I'm using).

Is my understanding correct? Can you point me in the right direction for running my custom runelite jar with jagex launcher on ubuntu?

image

Adamcake commented 5 months ago

Well you could create your own build of the launcher and run that. But that might need a lot of modification. The launcher downloads a lot of JAR files, not just one, and it launches them as a --classpath. image

Robert-Rendell commented 5 months ago

I'll have a go of making my own build of the launcher. Any modifications that are strikingly obvious to you to get me started?

Robert-Rendell commented 5 months ago

image

Adamcake commented 5 months ago

I meant a custom build of runelite's launcher not Bolt. Runelite has separate JAR files for its launcher and its client.

Robert-Rendell commented 5 months ago

Are there any instructions for building runelite's launcher? image

Robert-Rendell commented 5 months ago

Thanks for all your help @Adamcake. I've created an issue on runelite launcher repo. Closing this issue since there are no modifications required to Bolt to get my runelite client jar working.