Questions tagged [fatjar]

134 questions
2
votes
1 answer

Exception `java.lang.IllegalStateException: zip file closed`, when running code from Fat-JAR/Uber-JAR

I have an issue with my software, when building and running it as an FatJAR/UberJar built with Maven. In this case I get this error: Uncaught error fetching image: java.lang.IllegalStateException: zip file closed at…
packoman
  • 1,230
  • 1
  • 16
  • 36
2
votes
1 answer

Apache FOP cannot find external image by URI in fatJar

I'm trying to generate PDF with Apache FOP 2.2 and got some problem I'm using full URI like file:///Users/mac/Desktop/image.png. and here is part of myTemplate.
Ivan
  • 63
  • 1
  • 1
  • 10
2
votes
1 answer

Maven Jar file cannot find main class

I am trying to compile my first fat jar with Maven using Intellij IDEA, having a Scala project with one Scala file. The project structure is as follows: This is the pom.xml file: test test
2
votes
1 answer

How to run a gradle JUnit test job without source files but with a fat jar?

I am very new to the JVM world and can't figure how to solve the following problem: I have a gradle project that creates an test uber jar (built with the shadowJar plugin) with JUnit tests as its output. I can run this uber jar within the same…
derwasp
  • 802
  • 8
  • 17
2
votes
1 answer

Is it somehow possible to create VS Code extension using Xtext Fat Jar language server?

I'm trying to create VS Code extension out of the FatJar language server created by Xtext. I saw the example project also (https://github.com/itemis/xtext-languageserver-example) but there is just an example using reference to parent xtext project…
2
votes
0 answers

Issue using Mobbeel Fataar plugin with uploadArchives task

I'm in the process of trying to create a fat AAR to distribute my Android library. I'm using the Mobbeel Fataar plugin to package all of my dependencies into an AAR for ease of distribution. This works perfectly, and when I run ./gradlew build, I…
user1902853
  • 399
  • 1
  • 12
2
votes
1 answer

Gradle fatjar from directory

I have a folder ($buildDir/some/lib) that has a lot of jars inside. I want to create a jar that has all of those jars inside but unzipped. I've tried numerous things but all of them failed including the one below: task fatJar(type: Jar, dependsOn:…
Manos Ntoulias
  • 513
  • 1
  • 4
  • 21
2
votes
0 answers

FileNotFoundException on method tomcat.addwebapp() running embedded tomcat in fat jar, outside target folder of maven

I am trying to run a fat jar somewhere outside maven project. The runnable jar is created from eclipse (Export-->Runnable jar-->Extract required libraries in generated jar). This jar have got all dependencies jars & external jars in lib as well as…
2
votes
1 answer

Max size of a fat JAR for Apache Flink

I've build an Apache Flink app and packaged it in a fat JAR with Gradle Shadow Plugin. The resulting file size is ~114 MiB. When I'm trying to upload it with Flink's web UI it is stuck in "Saving…" phase. And if I use curl to upload it manually the…
madhead
  • 31,729
  • 16
  • 153
  • 201
2
votes
0 answers

creating fatjar from obsufucated jar and library jar depedencies?

I have a a fatjar, which is a deployable jar with main method defined, and which depedencies are copied via gradle. This works fine. I want to obsufucate/encrypt my jar. Using proguard I can obsufucate myJar, and specify libraryjars. How do I get a…
NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
1
vote
0 answers

spark-submit DependencyUtils: Local jar does not exists, skipping

Context: Windows 10/Linux Ubuntu 8 LTS Spark: 3.3.0 (spark-3.3.0-bin-hadoop3) I'm running spark-submit with a fat jar, but I receive a "jar does not exists" from DependencyUtils, even if the JAR is in place. As a consequence the mainClass is not…
LorenzoGi
  • 256
  • 4
  • 14
1
vote
0 answers

How to configure a Shadow Plugin fat jar to bundle and access web.xml and context.xml locations?

I have a Tomcat Embedded project that I want to run using a fat jar with Shadow Plugin My Gradle in build.gradle.kts configuration looks like this for the parts related to Shadow: plugins { ... id("com.github.johnrengelman.shadow") version…
buzoherbert
  • 1,537
  • 1
  • 12
  • 34
1
vote
1 answer

How to make jar use gradle?

I use version Gradle 6.8.3 I want to use gradle clean build, but I have cannot make fatJar use gradle. Here is my task for fatJar task fatJar(type: Jar) { manifest { attributes 'Implementation-Title': 'Gradle Jar File Example', …
jujol
  • 21
  • 2
1
vote
2 answers

While running as a jar application, Not able to access static files in springboot

I have a basic springboot application with the following folder structure. inside webapps i have some images and css. If i run it using my Intellij IDE, I am able to access images and css at localhost:8080/images/test.png But if i create a fat jar…
Andromeda
  • 12,659
  • 20
  • 77
  • 103
1
vote
1 answer

Why is there no easy way to create a fat Jar with Gradle?

I am building a lightweight API client that depends on a few small libraries. I need to package it into a jar to distribute to clients. I am using IntelliJ, Gradle, Kotlin ecosystem. Gradle offers a task to build a Jar but it doesn't include the…
Arturs Vancans
  • 4,531
  • 14
  • 47
  • 76
1 2
3
8 9