executable-jar

How do I include external JARs in my own Project JAR

Hi I've built a nice little Java App and created a JAR file and deployed it. The App uses external JARs such as the Log4J JAR. My question is this: When creating my JAR file, how do I include all external dependent JARs into my archive? In order to get my App working, I'm having to copy the Log4J JAR into the same directory as my own...

Executable Jar with depedencies

Hi all, I'm trying to build an executable jar from the command line (I don't want to use ant or OneJar ) . Here is the content of my file.jar: jar tvf file.jar 0 Mon Sep 20 17:16:12 CEST 2010 lib/ 45396 Mon Sep 20 17:16:12 CEST 2010 lib/org.apache.commons.logging_1.0.4.v201005080501.jar 321330 Mon Sep 20 17:16:12 CEST 2010 lib/or...

JAR hidden inside EXE?

Minecraft, a Java game, is free this weekend. The Windows version downloads as an exe file. I was curious what the EXE file is doing and where it's unpacking and running the actual game JAR from. So using a command, I found the command-line arguments to the running javaw.exe process; and oddly enough, it was launched with a classpath poi...

java runnable jar from netbeans 6.9.1

Hi, I have a project in NetBeans6.9.1. It works fine from inside the IDE. But when I try to run the jar, that NetBeans has automatically created under the dist directory, I get a NoClassDefFoundError for classes inside my project. What am I doing wrong? Should I be using Ant or something (don't know Ant) In eclipse I do a "create runna...

Compile a jruby on rails application to a jar?

Is there a quick way to pack a jruby on rails application into a jar? Is there an ec2 on rails like virtual appliance for jruby on rails apps? ...

referencing data files in jars

Hi, My Java program references a lot of data files. I put them in a top level directory called data/, along with src/ and bin/. In Eclipse, references to data/ and ../data/ both seem to work. When I run it from the command line, only ../data/ works. When I put the bin/ and data/ directories in a jar and correctly set the entry poi...

Windows UAC do not popup (Access Denied)

I have made an installer using izpack which is packaged as an executable jar file. Normally when I double click the jar/installer file the windows 7 UAC box pops up and I grant temporary administrator rights when installing the application (my UAC level is second lowest). But for some reason this box no longer pops up when I double cli...

Rawr-created jar throws ClassDefNotFoundError

I am trying to use Rawr to turn a simple 3-file Ruby project into an executable jar to be run on Ubuntu. I ran jruby -S rawr install to create the Rakefile and set up the directory layout. All my .rb files are under the src directory at the root of the project. When I run jruby -S rake rawr:jar, it compiles all the Ruby files and creates...

eclipse, export multiple projects (using a shared binary directory) in one runnable jar

I have three projects which are build to the same /bin directory and anoher projects (let's call it A) where this is not necessary. A requires all the other projects. When I export A as a runnable JAR, then only one of the three projects makes it into the JAR. I can add other projects (build to different directories) which are copied in...

.jar working in command line but NOT in windows explorer

I have an SWT application that I'm trying to create a runnable .jar for; unfortunately, I cannot seem to run it from Windows Explorer, as I get an error from the Java Virtual Machine Launcher stating it: "Could not find the main class gui.MainWindow. Program will exit." However, it will run through command line java -jar xxxxx.jar ...

Integrating .jar in a flash project

I must integrate a .jar file into a flash project. The project is like this: There'll be a flash video player for a Web Browser with Play, Pause, Stop commands. I must use voice commands to trigger the player actions. I have a .jar that makes the voice recognition so I want to integrate this file with my Flash Player. Is this possible?...

deployment of application using third party libraries in java

I have seen many people asking this but not a clear answer. I guess that it would depend on each case, so here is my situation: My application performs encryption and decryption using the methods provided by the default JRE installation. I decided to use Bouncy Castle (BC) as a provider, so I would need to include their jars in my appli...