Page 1 of 1

Running/debugging Downlord Client

PostPosted: 30 Apr 2019, 06:21
by HeWhoHasBigHump
Hello everyone!
I cloned the git repo for the DL client and tried to get it going in Eclipse.
I have openJFX12 and Java 12 installed but every time I try to do application/bootRun from gradle, it blows up with "Error: JavaFX runtime components are missing, and are required to run this application"

I added module-path and add-modules for all JavaFX modules in the run configuration. Still the same error.

I've never used Gradle before. Maybe I'm doing it wrong?
What do I have to do to debug the client from Eclipse?

Re: Running/debugging Downlord Client

PostPosted: 01 May 2019, 13:26
by axel12
Ask a mod to invite you to our slack

Re: Running/debugging Downlord Client

PostPosted: 01 May 2019, 13:27
by axel12
But fun fact you need oracle jdk 10 or ortherwise you will need to fix a lot of bugs occurring from the updating of the version

Re: Running/debugging Downlord Client

PostPosted: 01 May 2019, 14:08
by Brutus5000
There are still issues with the client using JavaFX methods that are not exported in the new module system and other shenanigans that are still unresolved.
If you can fix them, a PR would be appreciated. Otherwise you will need to use Oracle JDK10 for now.

Re: Running/debugging Downlord Client

PostPosted: 01 May 2019, 20:43
by HeWhoHasBigHump
Brutus5000 wrote:There are still issues with the client using JavaFX methods that are not exported in the new module system and other shenanigans that are still unresolved.
If you can fix them, a PR would be appreciated. Otherwise you will need to use Oracle JDK10 for now.


The code compiles using Java10 and OpenJFX12 but I had to add a bunch of JVM options to get it to work. Now it's caught on finding faf-uid.

What are the command line options for FAFClientApplication?
Also, can you send me an invite for Slack to hewhohasbighump@gmail.com ?

Re: Running/debugging Downlord Client

PostPosted: 02 May 2019, 17:02
by Brutus5000
You need to run the gradle task downloadNativeDependencies, but it should be a part of gradle build.

Also, my current command line arguments are:
-DnativeDir=build/resources/native -Dprism.dirtyopts=false -Xms128m -Xmx512m -XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=33 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseStringDeduplication -javaagent:webview-patch/build/libs/webview-patch.jar

+ -Dspring.profiles.active=prod or set the spring profile in your IDE.


Slack invite is on the way.