Skip to content
Advertisement

Tag: executable-jar

Adding external jar dependency in JAR file

Backgorund : I am trying to add UserStorageSPI for my legacy application, so that we can use existing user credentials to log in. I have followed this tutorial, and the full source code for the sample application is available here. This application is storing plaintext passwords and compares them directly. However, my legacy database stores the passwords in an encrypted

.jar File can’t find image file path

I’m creating a simple program that I now want to export as a executable jar file. Everything works fine except the jar file can’t find the image. For creating the runnable JAR file I used the second option in Eclipse 2021-12 (Package required libraries into generated JAR). This seems to work well, because I only have the jar and no

Program to find from where the program is called

The requirement is very simple, I want to write a simple hello world program or anything so the program knows about its execution parent. For eg. Since I am from a Java background I will give a Java example. I want to write a jar that runs and outputs the following: Running from command line: but when running from myscript.sh:

gradle executable jar can’t include local jar dependencies

SOLVED WaitingDatabase.connect(WaitingDatabase.java:17) (Sorry for bad english.) I have to connect my oracle database, so I downloaded oracle jdbc driver and added in my dependencies. It connected well when I run at intellij, so I built executable jar file with gradle. However, it couldn’t connect to my oracle database. I think it was built without oracle jdbc driver file, because it

“Invalid signature file” when attempting to run a .jar

My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error: Exception in thread “main” java.lang.SecurityException: Invalid signature file digest for Manifest main attributes I’ve googled for over an hour searching for an explanation and found very little of

Advertisement