I am creating plugins (providers) for keycloak using the Service Provider Interface. I have been able to build a couple. Now I need to add the smallrye-graphql-client library to query a graphql server. However, the library is not found in the classpath when I deploy the pluging. Questions Is it possible to still create a jar which includes the dependency
Tag: jar
package com.mongodb.client does not exist for a java console program
So here is the back story … I need to make a simple java console project that accesses a MongoDB database and makes some changes to the records within so that another (much larger) program doesn’t seg-fault when it tries to read from them. Now I’m trying to get my java console project to connect to the MongoDB, but the
Intellij Junit causes java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
I am trying to integrate sendgrid into one of our repo’s that handles emails. But my Junit tests keep throwing the mentioned Exception. I’ve skimmed through most of the posts on here talking about running the jar and issues around cglib and I do have the latest Mockito-all (1.10.19) pulled down. I’m able to build the jar and get it
Generate and consume gradle dependency without POM
I am trying to generate the .jar of my Gradle project but when it is generated using Maven publishing it is also generating a .pom file. The problem is that I have another project that when it implements this dependency before it only looked for .jar and now it looks for .pom in all the others, what I want to
Visual Studio Code Java Project export location
I’m using Visual Studio Code with the Java Extension Pack for a java application. As you can see in the image above, the downwards facing arrow button exports my project to a Jar, which is saved to the project folder. Is there an option anywhere I can set the export location, or post-build events where I can copy the jar
How to get .jar resources path?
I’m using a custom method to get pictures from the resources/ folder. The hardcoded path works well when programming during production (src/main/resources/). However when delivering, I would need to make this path relative to the .jar root. So I made this. The printed path is valid and points to the corresponding picture. However, the program raises an IOException. Why can’t
Cannot run Launch4j (illegal access)
I would like to create an .exe file for my java desktop application. Hence, i saw that Launch4j was the best option. When I ran. the file, i have the following error message. I am working under Mac OS Catalina, version 10.15.3. and my Java version environment: openjdk version “11.0.7” 2020-04-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10) OpenJDK 64-Bit Server
How can I import a custom package in IntelliJ IDEA (Java)?
There is such term like CLASSPATH which is using that JVM could find custom classes or jar files to import them to another packages (Am I right?). So, I created a few custom classes and placed them into package net.ederika, then I created another project with net.bartikan package name. My main idea is to import classes from net.ederika package to
How can I create .JAR to Do a specific task , then use this JAR in another project?
e.g : i have a simple code that take an array list of numbers and computes Sum. I am created a .JAR of this code. now my question is how can I import this JAR in another project and pass array list to it , and JAR give me the result to reuse it ?? Answer This is an example
execute a .jar file from C# but it generates files at wrong location
I have coded a Minecraft Server Runner in C# WinForms which lets you run a Minecraft Server, a .jar file which needs to generate files. The problem is that I launch this .jar file via the .exe application, and the files generate at the .exe application location. — What I have tried: I tried moving the .exe application to the