When trying to test using “mvn test” the test fail with error: java.nio.file.ProviderNotFoundException: Provider “jar” not found. Compiling the app and running works without issues. It is this piece of code, that for some reason fails, when testing: final FileSystem zipfs = FileSystems.newFileSystem(jarPath, Collections.emptyMap()); I use openjdk-11 and this import to get the zip library into the code: import java.nio.file.FileSystems;
Tag: openjdk-11
How to find the JRE location to use the system JRE in eclipse
I’m trying to set up a java project to use openjdk-11 and all the answers I have found so far have me going in circles. I’m using ubuntu 20.04, so I used the command ‘sudo apt install openjdk-11-jre’. The installation seemed to be successful but now I can’t seem to figure out the file path to the installed JRE. I
JFR: OutOfMemoryError while reading .jfr file
I’m trying to analyze a large Flight Recorder file (1.5 GB) that I created previously. When executing the jfr print command, the tool runs into an OutOfMemoryError: Is there a way to increase the heap size (-Xmx) for the jfr tool itself? I haven’t found a corresponding option in the documentation. Any help is appreciated 🙂 Answer As suggested by
Docker Unable to find user: no matching entries in passwd file for OpenJdk11
I’m trying to build and run the image with a non-root user and keep getting the error: “unable to find user test: no matching entries in passwd file.” Here’s what my Docker file looks like: I already tried searching for the error and looked at other places but none seems to work for me. Could someone help me out here?
Adding module export to mvn test execution runtime
Getting this error during tests: I’ve tried creating jvm.config at the root, next to pom.xml as such That doesn’t change anything. So i try to configure maven compiler plugin as such: for the record i even tried it so: Nothing. Then i tried surefire plugin like so : Two days working on this and failing miserably. Please help. Using OpenJdk11