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
Problem with FlatLaf Look & Feel dependencies with Java 11 on Windows 10 #19
Comments
Issue gaborbata#19: Problem with FlatLaf Look & Feel dependencies with Java 11 on Windows 10
Small addition: on my Linux laptop the installed Java version is a bit older: Oracle jdk 11.0.5 (instead of the 11.0.9 installed on my Windows 10 laptop). This might account for the different behavior on the respective platforms. |
Hi, I'm the author of FlatLaf. Class The inner class So this is a strange exception... You built JPass yourself, right? Do you have the same problem with 0.1.20 from here: For me, JPass 0.1.20-RELEASE (downloaded from GitHub) works on Windows 10 with Oracle JDK 11.0.9: |
Hi @wjc-van-es and @DevCharly, thanks for looking into the issue. I could reproduce the issue when I build the application with JDK 11. Building with JDK 8 -- used for the release package -- does not have this issue, and as far as I know it runs well with Java 11. I suspect, the issue must be in the build process, possibly during creating a fat/uber jar. But I have to dig deeper when time permits |
@wjc-van-es can you provide some details on:
|
@wjc-van-es it seems upgrading maven assembly plugin has resolved the issue, could you please check #20 if it works for you? Related issue: https://issues.apache.org/jira/browse/MASSEMBLY-891 |
@gaborbata building from your Aside: probable cause for different behavior on my Linux and my Windows LaptopIn addition I may have discovered what caused the different behavior between Linux and Windows (the former continuing whilst the latter froze). Now I noticed that running jpass this way the jpass.properties is ignored. I took more notice because I changed the |
@wjc-van-es thanks for the verification. I am closing this issue, and raise a new one for the |
1. 修复多版本Java打包缺失类的问题(gaborbata/jpass#19)
Dear Gabor Bata,
first of all I would like to thank you for sharing this application. I have used it for quite some time on different platforms and it used to work without any effort. Now I have upgraded to your latest release to be able to work in a Java 11 environment.
On Windows 10, however, I have encountered a show stopping classloading problem with the
com.formdev.flatlaf.FlatLaf
look and feel, which stalled the applications at startup, no password prompting popup window will show up. Strange enough the stalling doesn't happen on my Linux Mint laptop (though the samejava.lang.NoClassDefFoundError
stacktrace is shown in the console). See below for a detailed description and work around.Kind regards,
Willem van Es
Problem description
When building the latest snapshot with
and running the resulting jpass-0.1.21-SNAPSHOT.jar from a command line terminal also with Java 11,
I see the following stacktrace logging in the console:
There is one crucial difference in the behavior in my Linux Mint laptop and the Windows 10 Laptop from the company I work for:
First analysis
Investigating the
com.formdev:flatlaf:0.43
dependency reveals that the inner classcom.formdev.flatlaf.util.MultiResolutionImageSupport$MappedMultiResolutionImage
is indeed missing from both the flatlaf-043.jar and the resulting jpass-0.1.21-SNAPSHOT.jar.Maybe this problem could easily be resolved with updating the com.formdev:flatlaf:0.43, but I did not pursue this possibility yet.
Work around
In my fork of this project at https://github.com/wjc-van-es/jpass I just disabled the use of the com.formdev.flatlaf.FlatLaf lookAndFeel in jpass.JPass#main and used the platform default instead.
I admit this is a rather quick and dirty solution, but it works fine for me as the application now starts normally with the default Windows 10 look and feel without any errors.
Here is what I changed to make it work:
The text was updated successfully, but these errors were encountered: