Comments (7)
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.
from jpass.
Hi, I'm the author of FlatLaf.
Class com.formdev.flatlaf.util.MultiResolutionImageSupport$MappedMultiResolutionImage
is in jpass-0.1.20-RELEASE.jar
(and flatlaf-043.jar
) in directory META-INF/versions/9
.
This is because this are multi-release JARs (https://openjdk.java.net/jeps/238)
So when running in Java 9 or later, the JRE first looks into META-INF/versions/9
and loads classes from there.
The inner class MultiResolutionImageSupport$MappedMultiResolutionImage
is only used when the Java 9 version of MultiResolutionImageSupport
form META-INF/versions/9
is used.
There is a second version of MultiResolutionImageSupport
for Java 8 in the JAR (in default directory), which does not use the inner class.
So this is a strange exception...
You built JPass yourself, right?
Maybe there is a problem with the build on your machine.
Do you have the same problem with 0.1.20 from here:
https://github.com/gaborbata/jpass/releases/tag/v0.1.20
For me, JPass 0.1.20-RELEASE (downloaded from GitHub) works on Windows 10 with Oracle JDK 11.0.9:
from jpass.
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
from jpass.
@wjc-van-es can you provide some details on:
- do you have multiple java versions on you Windows?
- what is default java version?
- what version JAVA_HOME environmental variable points to
- if PATH points to %JAVA_HOME%\bin
- do you build project using your IDE or running just via commandline
- if IDE: what version of java is your project set up to
from jpass.
@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
from jpass.
@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 bugfix.jdk11-build
branch with mvn clean package
appears to solve the problem for me as well.
Both in Linux Mint and Windows 10 the resulting jar file could be run normally and without exceptions appearing in the console.
In conclusion I think this has fixed the issue.
Aside: probable cause for different behavior on my Linux and my Windows Laptop
In addition I may have discovered what caused the different behavior between Linux and Windows (the former continuing whilst the latter froze).
In windows I start the jar from a batch file that is in the same directory as the jar and the jpass.properties file.
In linux I had a bash file in a different location and in the bash file uses variables:
${java11Home}/bin/java -jar ${jpassDir}/${jarFile} ${jpassDir}/${jpFile}
Here the ${jpassDir}
specifies the directory that contains the jar, the jpass.properties and the encrypted *.jpass file containing the password entries. I did this mainly because I was comparing different versions of jpass builds (different resulting jars) and run with different versions of the JDK, each configuration run with its own bash file. (In Windows I only have the JDK 11.0.9 installed).
Now I noticed that running jpass this way the jpass.properties is ignored. I took more notice because I changed the ui.theme.dark.mode.enabled=true
to see if the FlatDarkLaf
was really used with your fix. On Windows I saw the dark look and feel, but in Linux I didn't.
However, when I run in a console in the same directory where jar, jpass.properties and *.jpass file are in then the dark theme is enabled, which looks cool, by the way.
~/resources/pw/jpass$ /home/willem/App/Java/jdk-11.0.5/bin/java -jar jpass-0.1.21-SNAPSHOT.jar myPasswords.jpass
from jpass.
@wjc-van-es thanks for the verification. I am closing this issue, and raise a new one for the jpass.properties
loading issue.
from jpass.
Related Issues (15)
- Logo/Icon Proposal HOT 6
- Open File Dialog in the actual Directory HOT 2
- Store the date of last modification of an entry HOT 3
- modification of .jpass is possible by anyone... HOT 3
- jpass.properties is ignored when the application is started from other directory where the jar file is
- Improve application icon rendering on Windows taskbar HOT 1
- Cannot process document (Not in GZIP format) HOT 2
- Demand suggestions
- Lag HOT 4
- Multilanguage interface HOT 3
- Password strength estimation feature HOT 3
- Possible contribution HOT 2
- jpass doesn't work with java9 HOT 2
- Passwords saved on java 8 couldn't be opened on java 9 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpass.