Questions tagged [executable-jar]

A special type of jar file which contains all non-standard libraries and definitions necessary to run an application on a JVM.

An executable java program which can be started manually by typing java -jar foo.jar. Some operating systems (including Windows, Solaris and some Linux distributions) provide means to run the jar just as any other executable on that system.

Executable JAR files are distinguished by a 'extra field' on the first file with a hexadecimal field code of 0xCAFE. They must also specify a main class in the manifest (Main-Class: fooPackage.BarClass) which will be used to start the application.

2420 questions
0
votes
1 answer

Executable JAR file not fitting screen

I wrote a program in eclipse using JFrame to display a GUI that will be run on a separate PC. In order to fit the screen I used Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); and setSize((int)screenSize.getWidth(),…
0
votes
2 answers

How to find the path of a running jar file

I'm trying to programmatically find the full path of a jar file while it's running. I know there are a number of other questions about this, but none of them seem to work for me - most notably, I've stumbled…
Derek Redfern
  • 1,009
  • 12
  • 18
0
votes
1 answer

Run an executable .jar file and confirm running prior to Windows login occurs to hide access to Windows Desktop

I wish to run an executable .jar file before the windows login screen is ever shown to the user so that when windows logs in to display the desktop, the user is first shown the full-screen view that my .jar displays without ever seeing the windows…
Thornack
  • 51
  • 1
  • 6
0
votes
0 answers

SQLite database is not responding while executing a JAR

I have a spring boot application with SQLite3 database, that I need to convert into a JAR and run it. But the problem which I am facing while running the JAR is values are not going to update into the SQLite DB. I thought it may be a code issue…
0
votes
0 answers

Main-Class has defined in MANIFEST.MF, but still can't find main class error

I build a jar file with Intellij IDEA 2019.1.3. It's a very simple Helloworld project. But once i use java jar xxx.jar, an error happened: Can not find or load main class. But i have defined main class. Here is the content in my META-INF/MANIFEST.MF…
boybeak
  • 417
  • 5
  • 19
0
votes
0 answers

Java Web Start Many Exceptions

I'm trying to figure out why my jnlp file isn't working. I'm new to all this so I'd like to check if I did everything correctly. I made a project with JavaFX, in which main class is called Main.java, and then created ExecutableJar file myApp.jar.…
NotStudent
  • 39
  • 1
  • 10
0
votes
1 answer

"Native code library failed to load" outside of IDE when running exported .jar

as stated in the title, my programm won't start outside of Eclipse. I've imported a library consisting of a xy.jar and xy_jni.dll CMD within the folder of the jar-file: java -jar myprogramm.jar is followed by the statement: "Native code library…
muka90
  • 91
  • 10
0
votes
1 answer

How to invoke a java program with classpath from Python 3.x

I am trying to execute an external java program from a python 3.7 program using the java command with classpath. I am using subprocess.Popen module in Python. Somehow I am not able to get it working! Appreciate any assistance! cmd = ['java', …
sijo0703
  • 557
  • 1
  • 8
  • 33
0
votes
1 answer

Using launch4j to build executable with encoding option

I'm trying to write korean to a txt file. I've done the coding part and exported project to runnable jar. When I run jar file using terminal as Java -Dfile.encoding="UTF-8" -jar Utul.jar it works perfectly fine. Now I'm trying to make .exe using…
0
votes
1 answer

make exe from jar using izpack

Hi i make exe from my jar file using izpack but in exe when i install it it shows izpack logo in exe file in top left corner so please give me the proper use of izpack
bhavesh N
  • 787
  • 3
  • 9
  • 27
0
votes
1 answer

jar is not giving output on command prompt but working fine in eclipse

I made one scheduler for scheduling some task public class CronTriggerApp { @SuppressWarnings("rawtypes") public static void main(String[] args) throws Exception { …
jitendra varshney
  • 3,484
  • 1
  • 21
  • 31
0
votes
0 answers

Program exits on "new MimeMessage(session)" in executable jar

I'm using javax.mail-1.6.1.jar to send emails from my gmail account. It works fine when I'm running my program on eclipse, but when I run my program as an executable jar, it halts on this row - MimeMessage message = new MimeMessage(session); No…
0
votes
0 answers

can't open java exported jar file

I'm trying to open my jar file which I exported from IntelliJ-IDEA but the jar file unfortunately doesn't open and no error happens, although the app is running on IntelliJ, I dont know if the problem is being from the jar itself or from the code !…
Sundos Altamimi
  • 29
  • 1
  • 1
  • 12
0
votes
0 answers

How to use components of custom jar into another project

I've created a jar for the custom exceptionhandler with @ControllerAdvice in springboot and used that jar in another project using maven repository. When an exception occur in the project it is not handled by that jar exceptionhandler class. If I…
0
votes
0 answers

How to build/run a maven project as both a .war and .jar?

I am writing a rudimentary blockchain for illustrative/teaching purposes in Java and have decided to use websockets for block/tx transport. The problem I am having is that in order to start the websocket server, I have to deploy the project into an…
apt-getschwifty
  • 199
  • 2
  • 12
1 2 3
99
100