Recaf: 2.0 does not patch itself

openjdk-bin-11

bash$ java -jar recaf-1.15.10.jar 
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
Detected JDK 11+ without OpenJFX dependencies
Dependencies will be downloaded and Recaf will restart...
Rerunning


bash $ java -jar recaf-2.0.0-J8-jar-with-dependencies.jar 
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
INFO: Recaf-2.0.0
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/concurrent/Task
        at me.coley.recaf.command.impl.Initializer.run(Initializer.java:43)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1769)
        at picocli.CommandLine.access$900(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2150)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2144)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
        at picocli.CommandLine.execute(CommandLine.java:1904)
        at me.coley.recaf.Recaf.main(Recaf.java:41)
Caused by: java.lang.ClassNotFoundException: javafx.concurrent.Task
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 9 more

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (14 by maintainers)

Most upvoted comments

It’s a rarely used feature as most of the time it’s just easier to shade the dependencies in.

Oh my god I forgot that was even possible. I think its been 4-5 years since I’ve done that.

you didn’t want lots of files/folder cluttering the working directory?

I was actually for having everything be local until recently when I was convinced to use a standard home directory (system property/configurable).

Just a side note, Amazon Corretto 8 is an OpenJDK 8 distribution with JavaFX bundled.