Questions tagged [fatjar]
134 questions
0
votes
0 answers
Making a spring boot fat jar file with gradle WITHOUT a spring boot gradle plug-in (no access to bootJar)
I have a spring-boot application in which I loaded all the necessary (or so I believe) dependencies to run without using spring-boot initializer or the spring-boot gradle plug-in. These tools are not available for me at my work. I can run the…

NemraOx
- 123
- 7
0
votes
0 answers
Fat jar with Spring core and Spring jdbc
I have a Gradle project which uses Spring core and Spring JDBC and it runs succesfully if I do a Gradle run. The project does not run when I convert that into a fat jar.
I suspect that Spring configuration is not getting loaded before the main…

user1655210
- 27
- 5
0
votes
3 answers
NoClassDefFoundError for Gradle fat jar with tests Spring Boot
I need to create fat jar in Gradle project with tests where Main method is under src/test.
Now I have
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser when I run fat jar created by 'gradle…

Roman Harasymenko
- 11
- 5
0
votes
2 answers
Java maven project - works when running from main class, but not from 'fat' jar
I am trying to use a chess PGN parsing library to parse a PGN file and simply create a text file.
The lib:
https://github.com/bhlangonijr/chesslib
My maven project:
https://github.com/divukman/chess_pgn_text/tree/master/pgntotext
Problem:
I can…

Dimitar Vukman
- 421
- 6
- 15
0
votes
1 answer
how can i determine the working directory a fatjar was invoked from
I have a project which i have made into a fatjar. Gradle pus this into the /build/libs
I have gone to this directory and invoked the fatjar with a file as a param.
steps
cd /build/libs
java -jar .jar --execute script.groovy
this launches the…

WILLIAM WOODMAN
- 1,185
- 5
- 19
- 36
0
votes
1 answer
main class in fat jar fails when using static factory method, but works fine in IDE
I have a small project that i'm using shadowJar to create a fatjar to run from command line..
the main class entry point gets ref to class in the project using static factory method like this
static void main (args){
MessageSystemClient mclient =…

WILLIAM WOODMAN
- 1,185
- 5
- 19
- 36
0
votes
1 answer
Compile a groovy script with all it's dependencies which are managed by gradle and then run it as a standalone application via the command line
I have a simple groovy script with a single java library dependency:
package com.mrhacki.myApp
import me.tongfei.progressbar.ProgressBar
class Loading {
static void main(String[] arguments) {
List list =…

Sif
- 87
- 1
- 7
0
votes
1 answer
How is Openshift starting a fat-jar
I deploy an image with a Spring-boot fat-jar on Openshift. I base my image on redhat-openjdk18-openshift:1.2.
My application starts fine and i see in the terminal the following
Starting the Java application using /opt/run-java/run-java.sh ...
exec…

user1578293
- 215
- 2
- 10
0
votes
0 answers
Fat jar open source applications for testing
I've been browsing GitHub in order to find open source repositories that are compiled into a fat jar and hence are executable on their own. My program takes as input a fat jar and I'd like some real, relatively big applications for testing…

Manos Ntoulias
- 513
- 1
- 4
- 21
0
votes
1 answer
Fat Jar to Implement a Language Server
I am trying to build a language server to be implemented as a sidecar for eclipse che. I built a fat jar from a xtext language server that I've created. Can I use this fat jar to implement my language server in a dockerfile in order to run my…

SharkJ
- 49
- 1
- 12
0
votes
0 answers
get No Class Def Found Error:scala/Product$class when packaging fat jar
Created a simple helloworld scala program on intellij and tried to add assembly plug in. But every time I run "assembly" on sbt console I get no class def. found error.
Build.sbt:
name := "testsbt"
version := "1.2.1"
scalaVersion :=…

78092347
- 1
0
votes
1 answer
java.lang.NoSuchMethodError when loading external FAT-JARs in Zeppelin
While trying to run a piece of code that used some FAT JARs (that share some common submodules) built using sbt assembly, I'm running into this nasty java.lang.NoSuchMethodError
The JAR is built on EMR itself (and not uploaded from some other…

y2k-shubham
- 10,183
- 11
- 55
- 131
-1
votes
1 answer
Why can't I start my camel3 fat-jar route as systemd service on raspberry pi?
I have created a fat-jar for my apache camel 3 route. I put that on my raspberry pi (bullseye) in /opt/myhome and could start it successfully with java 17 (also works with sudo):
/usr/bin/java -jar…

PowerStat
- 3,757
- 8
- 32
- 57