Questions tagged [runnable-jar]

39 questions
1
vote
1 answer

Java runnable jar no longer works (but was working in October)

I have a runnable jar file that I've built to work as a form so people can submit help tickets via email to our IT team. There were a few bugs so I thought I'd go back and attempt to fix those minor inconveniences. I finished and tested in Eclipse…
1
vote
0 answers

How to create a runnable Jar file using Jigsaw modules

I try to learn about the modules introduced in java 9. I try to create a runnable Jar. I have the main module, which I want to run and one dependendency module, helloWorldModule. Module: mainModule main/Main.java public class Main { public…
M. Lee
  • 99
  • 3
  • 7
1
vote
1 answer

How to save an PNG via code in a Runnable JAR file?

I'm having trouble fixing this issue, I have created a Client\Server side application and created a Method where a user can "Send" a PNG file from his side to Server side, then the Server side "Creates" and saves the image in a Package that only…
Soske
  • 541
  • 1
  • 4
  • 10
1
vote
2 answers

Export a JavaFX project in eclipse to a runable jar

I need to send a project made by JavaFX SDK 16 and Java SE-15 using Eclipse to my friends, but when I try to export it, i'm getting surprised that Eclipse doesn't insert the VM arguments to the exported file : and as you know since JavaFX SDK 10,…
Youssef Idraiss
  • 396
  • 5
  • 19
1
vote
2 answers

Dependencies in fat jar not working outside of IDE (Java 8)

So im working on this JavaFx application (Java 8) which copies a .xlsx file and fills it with data from a .txt-file, for this I use the apache poi dependency. I have successfully build a fat jar through the maven-assembly-plugin. Here my…
1
vote
2 answers

Spring Boot runnable Jar file for production?

Is spring boot runnable jar file meant for production environments with any optimizations needed for production or it is meant for testing/prototyping and we should generate and deploy WAR files on app servers in the prod machines?
Naeem
  • 171
  • 8
1
vote
2 answers

Where to put log4j.properties in a maven project?

I know it's a cliché question and I readed all the documents and I tried many solutions but always no solution worked for me !! but I put the log4j.properties in the src/main/resources and also in src/main/java and I've added…
MAryem
  • 182
  • 1
  • 2
  • 14
1
vote
1 answer

Creating Runnable jar file of lower version

I currently have java version of 1.8 but i want to make a Runnable jar file of version 1.7 through eclipse because i'm not able to execute the generated jar file of version 1.8 on the server. So that, I want to downgrade the version of the jar file.…
UFO_Rider
  • 111
  • 2
  • 12
1
vote
0 answers

Can not build runnable jar file in eclipse using JavaFX 13

I have a problem with JavaFX. If I create a .jar file, and I will try to run it through the cmd, I will get an error - Graphics Device initialization failed for : d3d, sw. I found there a solution in Intellij idea ide, but I am working with eclipse…
Truksič
  • 11
  • 2
1
vote
1 answer

Creating Uber/Fat Jars with Log4j

I am creating an uber jar using maven assembly plugin. One of the dependencies of my program is an application that can launch either by launching inside my program via a thread or can be launched independently as it is its own uberjar. My problem…
Tacitus86
  • 1,314
  • 2
  • 14
  • 36
1
vote
1 answer

Using embedded Tomcat 8, how can I initialize the Websocket Containter if the tomcat-embed-websocket.jar is not in the class path?

I am using a runnable jar (with-depenencies) to start an embedded tomcat that hosts a webapplication which uses struts2 and websockets. The application works propperly when running in an Tomcat installation, but when run from the mentioned runnable…
Juan
  • 5,525
  • 2
  • 15
  • 26
1
vote
1 answer

Why appear this error when run optaplanner .jar?

I have an optaplanner aplication, and i want to export it as a runnable jar, but when i run the jar, appear a error and I don't know why. I'm using the Vehicle Routing example, and i want to use the GUI interface without eclipse. Exception in thread…
Mini Nihat
  • 38
  • 5
1
vote
2 answers

Cannot build with jar command - java.io.IOException: line too long

I have folder that looks like so: foo/ Bar.java Bar.class Foo.java Foo.class manifest.mf the .java files are both in a package called x: package x; I generate the .class files with: javac foo/*.java then I try to package to runnable jar…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
0 answers

BootJar not bundling all the dependencies including static files

I'm working on Gradle 7 able run my spring-boot app with eclipse and trying to create executable jar with all dependencies to run with java -jar command but I'm not able to achieve it and I'm new to gradle.What is needed to be added or changed in my…
0
votes
1 answer

How to deploy and execute javaFX application as runnable jar from eclipse when I don't have VM arguments in my project

I have written a javaFX windows application that runs great from within eclipse. I'd like to deploy it so that it can be executed on other windows computers. I have exported it as a runnable jar file. However, when I try to execute it, I get an…
benino
  • 577
  • 2
  • 6
  • 16
1
2 3