1

Im trying to make my jar load a driver that will be stored inside it. Is this possible without having the user download any additional programs. I've read on another post about One-Jar but I'm not sure I understand how it works. Will The user have to download one-jar too?

I downloaded one-jar but when I run it nothing happens :S. Am I missing something?

Cody
  • 870
  • 4
  • 21
  • 38

2 Answers2

1

You can also create a shell script to append all the jars in a directory to your classpath.

BillMan
  • 9,434
  • 9
  • 32
  • 52
0

Use the Maven Assembly Plugin:

http://maven.apache.org/plugins/maven-assembly-plugin/

And build with the descriptor "jar-with-dependencies"

http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies

It is pretty easy.

thait84
  • 198
  • 6