So I’ve been stuck with this problem for a few days now. I found and read a lot of posts here on stackoverflow and other sites, but none of the solutions worked for me. I have a problem with my JavaFX in my maven project. I use java 15 and JavaFX 15.0.1. Here are files that I have in my
Tag: maven
how to pass –add-opens JDK module configuration to maven test
I’m upgrading java version in our production code from java 8 to java 11. I have to add the below JDK module configuration in the application java start command due to usage of third party libraries like flume, zookeeper etc. –add-opens java.base/java.lang=ALL-UNNAMED –add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED After adding this configuration and java application is starting fine. But when I run the tests
Can’t find io.jsonwebtoken.impl.DefaultJwtBuilder when starting project in a docker container
When starting my Quarkus project locally with mvn quarkus:dev I have no errors when executing a function which utilizes JJWT. However when I export my project into a docker container it gives me an error stating that it can’t find DefaultJwtBuilder. When dockerizing my project I first execute ./mvnw package -Pnative -Dquarkus.native.container-build=true as stated in the Quarkus docs for creating
input arabic characters with scanner in maven project
i work on netbeans 8.2 and i create a java maven project, i want just take an input with arabic characters and display it and that don’t work properly : NOTES: i have already change netbeans configuration (/etc/netbeans.conf) to accept UTF-8 encoding but i have this probleme just with MAVEN projects. Answer Try to run code in other environment. May
No Main Class found when running a dockerizing image
I have a university project which consist of building a Java Spring Boot application that can handle multiple APIs that can start new docker containers running jar applications. For the moment, I was able to experiment how Spring Boot works, so I built a simple jar to deploy a simple greeting API that returns “Hello World!” So I have built
How can I fix NoClassDefFoundError: org/hibernate/HibernateException?
at the moment I’m developing a little program, which uses Maven and Hibernate. I wrote 130 Junit tests. Half of them are testing my DAOs. All of them are successful and don’t make any problems. Now I started to write some REST methods and wanted to test them with Postman. The problem is that I get an exception as response
Non-resolvable parent POM for xxx
I’m trying to package a maven project and the IDEA console says “Non-resolvable parent POM for xxx”. The parent pom has been put in my maven local repository but can not be resolved by the submodules. The submodule’s pom.xml reports errors like this. The parent pom.xml looks like this The project seems like downloading the parent pom from the central
Why is my maven build not finding Netty’s EventLoopGroup class when executing?
I wrote my code following Netty’s documentation, then I execute: It builds successfully. Then I run: And it promts me with this error: Exception in thread “main” java.lang.NoClassDefFoundError: io/netty/channel/EventLoopGroup at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: io.netty.channel.EventLoopGroup at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) … 7 more To
Kotlin, Java 8 and Sonar coverage showing as 0
I have a kotlin project using Java 8 and I use Sonar to measure code coverage I am using the latest version of Sonar and noticed the coverage has gone down due to changes in the openjdk. My tests are using Mockito and PowerMockito. Some tests are failing due to reflection errors. When I add the following jvm args –
Dependency error in Spring boot for Spring session and Redis. What is the correct dependency i have to use?
I have angular 2 front-end and spring boot back-end.I want to use username and password for login and then use x-auth-token to check session for each request sent from angular.I want to use Redis to store session.But i keep getting the below error when connecting to Redis.My assumption is my dependency version of spring session is causing the issue but