Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javafx Error #49

Closed
JoAllg opened this issue Dec 7, 2020 · 4 comments
Closed

javafx Error #49

JoAllg opened this issue Dec 7, 2020 · 4 comments

Comments

@JoAllg
Copy link

JoAllg commented Dec 7, 2020

As mentioned in #15 it is not possible to start the downloader with JDK15 on Win10 64bit and possibley other versions too.
'''
D:\Desktop\IliasDownloaderTool-aluf-v1.2.2>java -jar ./Ilias-Downloader-Tool-aluf-v1.2.2.jar
Error: Could not find or load main class view.Dashboard
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
'''
It seems that problem can be bypassed with the "--add-modules javafx.web" flag as mentioned by vonHartz #15, however that probably works only on linux where a compiled version of javafx.web is in the shared libaries.

I guess the reason is, that JavaFX is not part of JDK/JRE since JDK11. I tried downloading the current version from https://gluonhq.com/products/javafx/ but were not able to use it.

@JoAllg
Copy link
Author

JoAllg commented Dec 7, 2020

edit: This error previously described in this comment was totaly my fault :-)

@DeOldSax
Copy link
Owner

DeOldSax commented Dec 7, 2020

are you sure you can start the java gui out of your wsl?
--> Caused by: java.lang.UnsupportedOperationException: Unable to open DISPLAY

@JoAllg
Copy link
Author

JoAllg commented Dec 7, 2020

You have got a very good point there! Gotta install such features first.

@DeOldSax DeOldSax mentioned this issue Dec 13, 2020
4 tasks
@DeOldSax
Copy link
Owner

As mentioned in the readme, the current JDK is JDK 8, preferably with javafx included.
To overcome this issue in the future and make it ready for JDK 11 and upcoming LTS versions, see #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants