Unable to create .exe from java file [duplicate] - java

This question already has answers here:
How can I convert my Java program to an .exe file?
(16 answers)
Closed 8 years ago.
I have created java project that contains 6 Class file and 1 java file
And I run this project in net beans IDE now my problem is when I clean and build this project am unable to create exe file
How can I make this project as exe (an executable file)?
all 7 files in one single as executable
and found this and tried from here making executable file from a java project using NetBeans Can some one help me to solve my problem

The JAR file format provides many benefits.
You can make your Java application runnable via a double-click by packaging it into an executable jar.
This answer will help you.

Related

Create an .exe file from Java project [duplicate]

This question already has answers here:
How can I convert my Java program to an .exe file?
(16 answers)
Closed 2 years ago.
So i just finished a small Java program that I've been working on throughout the week and I want to generate an .exe file of it so I can share with my friends. I'm working on Apache Netbeans 11.3 and JDK 8.
I can successfully generate the .jar file but that's pretty much useless.
If you created a java project, then the "other" computer should have the java runtime installed, in order for the jar to be executed there (java -jar your.jar) otherwise if you really want an .exe use one of the many jar2exe converters found on the almighty internet, such as ja2exe you can download it

How to run exe file whereas currently running jar [duplicate]

This question already has answers here:
Creating non-reverse-engineerable Java programs
(14 answers)
Closed 4 years ago.
I have a spring based workflow system where the java plugins are uploaded and kept in jar format, they are referred and used by the jar file. However, I have seen that jar file is very easy to decompile and it is a security risk.
I tried obfuscation as well. I want to run exe so that it is run at byte code so it is very very hard to reverse engineer.
You could use ProGuard as optimizer and obfuscator.
ProGuard also has a maven plugin that you can use it in the build process.

How to create executable .exe file from .jar file? [duplicate]

This question already has answers here:
How can I convert my Java program to an .exe file?
(16 answers)
Closed 6 years ago.
I've created an app using netbeans IDE but it is in .jar format.How do I convert it into .exe to use on individual system ?
many responses here:
Compiling a java program into an executable
JSmooth .exe wrapper
JarToExe 1.8
Executor
Advanced Installer for Java - tutorial for Java applications
GCJ
Launch4J: http://launch4j.sourceforge.net/
If you need to just create a runnable file of your application, the JAR should be enough to do the job. You can export it as an executable jar with the manifest file and run it just by double cliking it.
Still if you require an exe, then you can use Launch4J. To create an exe, create jar file for your application using your IDE with proper MANIFEST file packaged inside. Then launch Launch4J and select your jar file and you should be able to create an exe easily.
For more details, take a look at this link here
You can use launch4j this can make jar an exe

Jar file is not running [duplicate]

This question already has answers here:
Running JAR file on Windows
(26 answers)
Closed 9 years ago.
I have created a project in netbeans and I clean and built the jar file. But I double clicked on jar file doesn't run the jar file.
Why is this jar file is not running ?
you didn't give us very much information, but if you are developing in windows, and your program is all console based, when you double click the jar, it will run, but you will not be able to see it because it has nothing to show you the output in. You can get around this two different ways.
1. Develop your own console gui
2. run the jar through cmd. you can write a batch file to do this for you if you want.

How to create an independent executable jar file [duplicate]

This question already has answers here:
Eclipse: How to build an executable jar with external jar?
(6 answers)
Closed 9 years ago.
I have written a java program which uses ojdbc14.jar and the program is working fine until it is in eclipse.when I create an executable jar file the ojdbc14.jar is not getting packaged along with it hence my program is not having the driver to make the required connection with the DB.can someone help me in coming up with the steps to create an executable jar file along with the required drivers.
PS: I am doing all this in eclipse so steps relating to eclipse would be highly appreciated.
If you Export a Runnable Jar File, the dependencies will be packaged within the file.
See: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-37.htm
Also, you can select how the dependencies will be included/packaged:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-export-runnable-jar.htm&anchor=library-handling

Categories