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

Quark fails to run because of exceptions thrown #512

Open
benjamin32561 opened this issue Mar 25, 2020 · 9 comments
Open

Quark fails to run because of exceptions thrown #512

benjamin32561 opened this issue Mar 25, 2020 · 9 comments

Comments

@benjamin32561
Copy link

[ Bug report title ]

Bug description

[ Please describe your bug as detailed as possible here. ]

Your setup

  • Console firmware: [ e.g. 5.1, 6.2, 7.0.1 ]

  • CFW with version: [ e.g. ReiNX 2.1 or Atmosphere 0.85 ]

  • Goldleaf version: [ e.g. 0.5 or the exact nightly build ]

  • Goldtree version: [ e.g. 0.5 ]

Bug reproduction

[ Describe as detailed as possible how to reproduce your bug, for others to be able to verify it. ]

Additional information

[ Please add some extra information or screenshots. ]

@benjamin32561
Copy link
Author

hi im using the Quark and when i run it it fails with this exeptions:
WARNING: Loading FXML document with JavaFX API of version 11.0.1 by JavaFX runtime of version 11
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/PaintConverter
at com.jfoenix.controls.JFXTextArea$StyleableProperties.(JFXTextArea.java:221)
at com.jfoenix.controls.JFXTextArea.(JFXTextArea.java:145)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:166)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:404)
at java.base/java.lang.Class.newInstance(Class.java:591)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1019)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:754)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2722)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2552)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2466)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2435)
at xorTroll.goldleaf.quark.ui.MainApplication.start(MainApplication.java:103)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
... 1 more
Caused by: java.lang.ClassNotFoundException: com.sun.javafx.css.converters.PaintConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 25 more

@lookye
Copy link
Collaborator

lookye commented Mar 26, 2020

What OS are you using?

@ttimasdf
Copy link

+1, Windows with OpenJDK is not enough to run Quark because of the lack of JavaFX.

@benjamin32561
Copy link
Author

windows 10

@benjamin32561
Copy link
Author

What OS are you using?

windows 10

@benjamin32561
Copy link
Author

+1, Windows with OpenJDK is not enough to run Quark because of the lack of JavaFX.

so i need to download JavaFX?

@ttimasdf
Copy link

ttimasdf commented Mar 27, 2020

+1, Windows with OpenJDK is not enough to run Quark because of the lack of JavaFX.

so i need to download JavaFX?

I tried. Not work.

  • AdoptOpenJDK 11 + JavaFX from openjfx.io
    • Still throw java.lang.ClassNotFoundException
  • Zulu OpenJDK 11 with JFX bundled(Maybe? I download the version of JRE FX, they don't have a doc about the differences)
    • Still throw java.lang.ClassNotFoundException, it should work but ... oh weird
  • JDK8 installed through chocolatey
    • The Quark runs, but Goldleaf freeze when browsing content from PC, maybe a Goldleaf issue? (edit: maybe because of version compatibility, I'm using an NSP version of Goldleaf which i forgot where to get it from, likely being an old version, I'll check it out later.)
  • nut + Tinfoil
    • Works smoothly 🙈

@ScallyK
Copy link

ScallyK commented Apr 11, 2020

https://www.oracle.com/java/technologies/javase-jdk13-downloads.html

This is the solution. Download the latest JDK.

@ttimasdf
Copy link

ttimasdf commented May 1, 2020

I think I've found the problem. The Quark.jar provided in the latest release just not work on Java 9 above, at least on Windows. It's an old version that only run under Java 8 with JavaFX.

I compile a newer version from source codes and it works with AdoptOpenJDK 11 without problem.
There should be some documentation here, so much misleading.,

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

4 participants