Skip to content
Advertisement

Tag: jar

Include third party library in wildfly jar (keycloak SPI)

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

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

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

Advertisement