executable-jar Questions
41
Solved
I want to execute my program without using an IDE.
I've created a jar file and an exectuable jar file. When
I double click the exe jar file, nothing happens, and when I try to use the command in ...
Profligate asked 14/8, 2012 at 0:1
7
Solved
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...
Hornbeam asked 7/1, 2010 at 16:57
8
Solved
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 CLAS...
Circumvolution asked 30/10, 2008 at 13:26
7
I know how to convert "jar" to windows executable file(.exe). But I want to know how to convert "jar" to Linux executable file(.?). I have searched google but didn't get exact answer what i want, h...
Adjournment asked 8/6, 2017 at 5:32
14
Solved
Is there any way I can make an executable .jar that will open up the command line when double clicked?
I'm making a text-based adventure game. As of right now it is just a maze with rooms. Eventua...
Digestif asked 9/10, 2011 at 15:4
6
Solved
I have a program which consists of two simple Java Swing files.
How do I make an executable JAR file for my program?
Shamrock asked 10/3, 2011 at 10:10
5
As titled, I'd like to know how to modify the gradle.build.kts in order to have a task to create a unique jar with all the dependencies (kotlin lib included) inside.
I found this sample in Groovy:...
Moonier asked 22/1, 2017 at 18:56
3
Solved
Suppose that we have a Java application, rather than a library, which is available through Maven central. For example, one such project is jol, which has its corresponding CLI interface in Maven ce...
Presber asked 22/7, 2014 at 16:18
9
Solved
"Could not find main method from given launch configuration" when using Java+Scala+Slick2D
I've got a project in which I'm using Java+Scala+Slick2D.
The project itself runs well when launched from within eclipse. But when I try to make a jar file, it just refuses to work. Here's the err...
Exemplificative asked 23/11, 2012 at 11:9
10
I'm trying to launch the jar file I've builded for my Spring Boot project. First I did:
mvn clean package spring-boot:repackage
then I've tried to launch the jar file, and I had the following er...
Indigestible asked 21/5, 2019 at 9:43
17
Solved
I am currently working on a J2ME polish application, just enhancing it. I am finding difficulties to get the exact version of the jar file.
Is there any way to find the version of the jar file for ...
Dispersant asked 29/4, 2011 at 16:36
8
I had written several simple java applications named as A.jar, B.jar.
Now i want to write a GUI java program so that user can press button A to execute A.jar and button B to execute B.jar.
Also i...
Deboradeborah asked 24/8, 2009 at 4:26
24
Solved
My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error:
Exception in thread "mai...
Dacha asked 16/6, 2009 at 3:49
3
Solved
I have java project, and many class that have main method (just for testing purpose). When I create executable jar file by Eclipse, Eclipse will automatically selects which file is main class. (and...
Misology asked 10/10, 2012 at 3:40
13
I want to prevent the user from running my java application multiple times in parallel.
To prevent this, I have created a lock file when am opening the application, and delete the lock file when c...
Alister asked 12/8, 2011 at 5:54
6
I have a java program that reads a lot of input data from a database, manipulates it, then writes data back out to another database (using ODBC drivers, excel and access databases, on a new windows...
Excelsior asked 6/6, 2012 at 17:54
19
Solved
I have a multiproject build and I put a task to build a fat JAR in one of the subprojects. I created the task similar to the one described in this cookbook.
jar {
from configurations.compile.colle...
Vert asked 2/2, 2011 at 7:9
8
Solved
I've got a simple project in Gradle 4.6 and would like to make an executable JAR of it. I've tried shadow, gradle-fatjar-plugin, gradle-one-jar, spring-boot-gradle-plugin plugins but neither of the...
Forwards asked 14/3, 2018 at 12:40
2
Solved
Intellij fat one jar artifact does not generate a working output. Below you can see my settings and project structure(left). When i click build artifact and then the generated output, nothing happe...
Mendez asked 17/7, 2017 at 22:54
11
Solved
Execution default of goal
org.springframework.boot:spring-boot-maven-plugin:1.0.1.RELEASE:repackage
failed:
Unable to find a single main class from the following candidates
My project has more...
Carothers asked 22/4, 2014 at 10:31
10
In Eclipse IDE, I add a JAR library using
Project > Build Path > Configure Build Path...
What is the equivalent in VisualStudioCode?
I had a look into launch.json. There is a classpath defi...
Flashcube asked 8/5, 2018 at 11:30
4
I have extracted a jar file and made some change on it. Now, how can i compress again it as an executable jar file?
Thanks.(Sorry for my bad english.)
Sidedress asked 18/6, 2014 at 7:22
33
Solved
I want to package my project in a single executable JAR for distribution.
How can I make a Maven project package all dependency JARs into my output JAR?
Antidepressant asked 22/2, 2009 at 8:43
5
I've written a small application. I've put the database specific information in a properties file.
db.url=jdbc:mysql://localhost:3306/librarydb
db.user=root
db.passwd=pas$w0rd
When I build the ...
Monde asked 19/5, 2013 at 7:24
9
Solved
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 doubl...
Anjanette asked 8/3, 2012 at 4:32
1 Next >
© 2022 - 2024 — McMap. All rights reserved.