I got the following error after running obfuscated jar:
Caused by: java.io.UncheckedIOException: Error loading FXML: /fxml/main.fxml
Caused by: javafx.fxml.LoadException: unknown path
But the FXML file is exists on the specified path.
My ProGuard config file contains following rules:
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,LocalVariable*Table,*Annotation*,Synthetic,EnclosingMethod,javafx.fxml.FXML
-adaptresourcefilenames **.fxml,**.png,**.css,**.pdf,**.ttf,**.otf,**.txt
-adaptresourcefilecontents **.png,**.css,**.pdf,**.ttf,**.otf,**.txt
-adaptresourcefilecontents **.fxml,**.properties,META-INF/MANIFEST.MF
-adaptclassstrings
-keepclassmembernames class * {@FXML *;}