Questions tagged [onejar]

One-JAR lets developer package a Java application together with its dependency Jars into a single executable Jar file.

One-JAR provides custom classloader that knows how to load classes and resources from a jars inside an archive, instead of from jars in the filesystem. It discovers dependency jar files based on the internal structure of the archive, there is no custom code required to do this. One-JAR archives can be constructed using Ant or Maven2. Application can be run using command: java -jar my-app.jar.

67 questions
0
votes
1 answer

One-Jar for Applet

I have an applet that needs to import another libraries. I used Apache Ant to build this applet and libraries into same jar files, but there is no way to connect classes with libraries. I got NoClassDefFoundError. Because of that I decided to use…
Maozturk
  • 339
  • 1
  • 5
  • 20
0
votes
2 answers

Onejar-maven-plugin to set the order of jar loading

I've been using the library apache-log4j-extras for logging. It contains class org.apache.log4j.Logger. Now I had to reference some 3rd party library, that uses logback and has among its dependencies log4j-over-slf4j (jar). Unfortunately, latter jar…
Alec
  • 1,486
  • 2
  • 14
  • 30
0
votes
1 answer

How to Create Jetty Spring App With HBase Connection

I am creating a Spring app with Embedded jetty in a single jar package using the OneJar Maven Plugin. It is meant to be an api that service requests backed backed by Apache Hbase. It compiles fines but when I run it: $ java -jar…
David Williams
  • 8,388
  • 23
  • 83
  • 171
0
votes
1 answer

Including a second jar file that's not a dependency into a fat onejar

I have a project that only builds the fat onejar file for testing purposes. Thus, there's a separate testing class that I don't want as a dependency to the main source, but I do want it included into the onejar. Odd scenario, I know. I'm using the…
Depressio
  • 1,329
  • 2
  • 20
  • 39
0
votes
1 answer

Creating a single distributable jar file for Android projects which includes other jar files

My objective is to create a single distributable jar file for Android projects which includes a few other jar files. As I understand a "standard" jar file is not allowed to have other jar files inside, so guess I need to learn a trick here. I have…
Crocodile
  • 5,724
  • 11
  • 41
  • 67
-1
votes
1 answer

Reference a jar within a jar

I have a jar file that references 6 other jars through a manifest file. I now, however, want to try and compile the jars into one jar file, reasons being: I want them to be cached so the applet does not have a long loading time as one of those jars…
Corne
  • 496
  • 2
  • 8
  • 22
-2
votes
1 answer

One-Jar bundled app doesn't render Jasper Report Scriptlet content

I'm working on a legacy Java application that has many compiled .jasper reports. Recently something changed with the way that the office IT company I work with is deploying the app, and reports stopped working, with the app no longer being able to…
idbentley
  • 4,188
  • 3
  • 34
  • 50
1 2 3 4
5