A Jar file which can be executed similar to an .EXE in Windows.

learn more… | top users | synonyms

380
votes
16answers
204k views

How can I create an executable jar with dependencies using Maven?

I have written a little utility to run from the command line using Java. I want to package it in a single executable jar for distribution (.jar file). How can I make maven package all dependend jars ...
119
votes
14answers
101k views

How to get the path of a running jar file?

My code runs inside a jar file, say foo.jar, and I need to know, in the code, in which folder the running foo.jar is. So, if foo.jar is in C:\FOO\, I want to get that path no matter what my current ...
61
votes
12answers
217k views

Running Jar file in Windows

I have a "helloworld.jar" file. For running a JAR file I am using a command-line window and executing the following command: java -jar helloworld.jar By using this command I can execute the JAR ...
1
vote
2answers
925 views

Pass String as params from one Java App to another

I'm trying to pass String as parameter from one Java Aplications to second as StartUp parameter for example I have Aplications that must call start another Java Aplication (just contains only ...
37
votes
2answers
29k views

Problem building executable jar with maven

I am trying to generate an executable jar for a small home project called "logmanager" using maven, just like this: ...
1
vote
4answers
3k views

How to make an executable jar file?

I have two simple java swing files, one file will take name and phone number as user input and will write in the database. Another will fetch this two value from the database and will show it on the ...
24
votes
4answers
11k views

Distributing my python scripts as jars with jython?

I have been a python programmer for almost 2 years and I am used to writing small scripts to automate some repetitive tasks I had to do at office. Now, apparently my colleagues noticed this and they ...
7
votes
2answers
19k views

Executing a Jar on Vista with a double click

This pretty much has me defeated. On XP and earlier versions of Windows you could customise Open With filetypes to include java - jar "myjar.jar", but on Vista this functionality seems to have been ...
22
votes
5answers
34k views

NoClassDefFoundError while trying to run my jar with java.exe -jar…what's wrong?

I have an application that I'm trying to wrap into a jar for easier deployment. The application compiles and runs fine (in a Windows cmd window) when run as a set of classes reachable from the ...
3
votes
4answers
10k views

“Could not find the main class” error when running jar exported by Eclipse

I have a java project that works perfectly fine when running it from within Eclipse. When I try to export it to either a "JAR file" or "Runnable JAR file" the .jar file is created, but when I double ...
36
votes
3answers
25k views

Building a runnable jar with Maven 2

I'm relatively new to the Maven mantra, but I'm trying to build a command-line runnable jar with Maven. I've setup my dependencies, but when I run mvn install and attempt to run the jar, two things ...
2
votes
3answers
2k views

How can I get an executable file of a Java program? [duplicate]

Possible Duplicate: How can I convert my java program to an .exe file ? I'm trying to export a program written in Java 6 to a JAR file. My project contains one Java library from the ...
2
votes
3answers
8k views

java eclipse create executable jar

I used eclipse to create executable jar. It relies external other jars. In Eclipse, It is simple that you just need to choose Extract required libraries into generated JAR. You can create an ...
12
votes
4answers
7k views

Create deployable JRuby JAR file?

I need to compile my JRuby application into a standalone JAR file. How can I do this?
6
votes
3answers
539 views

Jersey exception only thrown when depencencies assembled into a single jar

I'm writing a server that embeds Jetty w/ Jersey. When I execute from Eclipse, everything is great. However, if I assemble my server and all dependencies into a single jar using Maven's ...

1 2 3 4 5 6
15 30 50 per page