executable-jar Questions

3

Solved

I just installed Oracle JDK 11 on my Windows 10. I noticed that the PATH variable doesn't include the JDK 11 path. Also the .JAR file extension is not associated with javaw. Our users used to doubl...
Biotin asked 27/9, 2018 at 12:24

1

Solved

I created a JAR artifact in IntelliJ with option to extract JAR files to the target JAR. Look like this: I filled the manifest information properly: I checked the content of the JAR file with...
Seismic asked 27/2, 2019 at 15:1

1

What are the differences between JAR, Fat JAR and Executable JAR? How are they created from command line and gradle.build task(in case of gradle project)? Are there any other JARs apart from above ...
Paleography asked 10/2, 2019 at 11:47

2

Solved

I need to use maven (for a school project) to create an executable file from a single maven command. I've never used maven and tried many solutions here on stackoverlow. The solutions created a jar...
Irrelevant asked 7/2, 2019 at 13:48

6

Solved

I have deployed my app to jar file. When I need to copy data from one file of resource to outside of jar file, I do this code: URL resourceUrl = getClass().getResource("/resource/data.sav"); File ...
Zoosperm asked 13/4, 2012 at 15:54

2

I am trying to package(maven package) and run(java -jar file.jar) a project that contains both java and kotlin code. I have followed the tutorial at: https://michaelrice.com/2016/08/hello-world-wit...
Daiseydaisi asked 14/3, 2018 at 22:40

1

i'm trying to find the location of the running jar file using the method: File jarFile = new File(JarPath.class.getProtectionDomain().getCodeSource().getLocation().toURI()); when i run it on the...
Rostock asked 17/8, 2015 at 12:16

2

Solved

I need to exclude a specific dependency from springBoots bootJar gradle task (similar to the provided scope in maven). I tried a custom configuration, but the dependency-which-should-not-be-in-boo...
Woodshed asked 26/6, 2018 at 17:36

5

Solved

The Problem is as follows: I have a Java Application packed in a ".jar"-File. I can start the App (Swing Application) by either doubleclick on the jarfile commandline java -jar MyApp.jar Howev...
Affirmative asked 17/4, 2012 at 14:41

5

Solved

When using Maven to build an executable JAR, how do I specify the JVM arguments that are used when the JAR is executed? I can specify the main class using <mainClass>. I suspect there's a si...
Triquetrous asked 11/10, 2008 at 0:43

3

I'm using IntelliJ IDEA, and I have my JavaFX application ready for deployment. The problem is that when I generate the JAR file, it won't run, when I run it in the command line, I get an Exception...
Exterior asked 9/5, 2015 at 22:40

2

I am developing a web application using an executable jar with embedded Jetty. My jar contains a dependent jar.(jar in jar) I referenced to the JarRsrcLoader and RsrcURLStreamHandlerFactory that de...
Kosygin asked 20/1, 2012 at 7:51

1

Solved

I'm trying to create a modular, executable jar file, that can be run with java -p <jar file> -m <module> on Java 9.0.1. This works as expected when creating a jar with jar cfe test.jar...
Sericin asked 19/12, 2017 at 1:12

2

Solved

I would like make an executable jar archive with eclipse. So into my project I created file src/META-INF/MANIFEST.MF : Manifest-Version: 1.0 Main-Class: MainClass Class-Path: . But when I expor...
Digressive asked 15/6, 2010 at 13:39

4

Solved

I created a desktop app and I have run into a problem with my generated runnable jar. Everything works fine in the Eclipse environment, but when I generate the jar it only shows theswtcomponents (m...
Norge asked 21/12, 2012 at 12:0

1

I have made a Jar file, but I cant make it to run by double clicking. It works fine using java -jar name.jar or by making a batch file. I have already reinstalled jdk1.8.0_102, set the JAVA_H...
Menarche asked 11/10, 2016 at 7:42

5

Solved

Can you tell me, if this is possible, how to export a Scala application to a normal runnable JAR that can run directly in the JVM ? Thanks
Karee asked 9/11, 2011 at 12:0

4

Solved

i have build a jar file from my spark app with maven (mvn clean compile assembly:single) and the following pom file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3....
Bautista asked 2/6, 2015 at 13:21

3

Solved

I'm trying to do something like URL clientks = com.messaging.SubscriptionManager.class.getResource( "client.ks" ); String path = clientks.toURI().getPath(); System.setProperty( "javax.net.ssl.key...
Avignon asked 5/12, 2008 at 18:31

2

Solved

Okay so I made a game using Libgdx and I intended it to be a android app(which is why i use android studio) but I want to let my friend without android phones try it out. The project is already set...
Endotoxin asked 30/8, 2015 at 23:39

1

Solved

I have a multi module Gradle project and I tried to upgrade to 2.0.0-M3. Following the instructions here, I added this to my build script: springBoot { executable = true } But when I build I ge...
Whenever asked 2/8, 2017 at 8:47

1

Solved

I have a fat jar where I'm trying to get the instance of Kotlin's ScriptEngine. For the debugging purposes I'm iterating through available Script Engine Factories and getting the engines. val sc...
Olga asked 27/6, 2017 at 13:24

1

Solved

Trying to create a fat jar including all the dependencies using maven-assembly plugin. Tried a bunch of things, but end up with main class not found error. Seems like I've hit a wall, been here for...
Smoothspoken asked 16/5, 2017 at 16:51

3

I have a TestNG project. Don't have any main class, currently it is running like "Run As TestNG". I want to export it as runnable jar or jar so that any one can just hit a command from command lin...
Extraction asked 15/7, 2013 at 14:59

1

Solved

First of all: I am new to maven. I made my first maven Application and successfully tested it within the IDE. The build was always successfull and everything worked like a charm. Now I want ...
Trehalose asked 9/2, 2017 at 6:24

© 2022 - 2024 — McMap. All rights reserved.