
Usage
Jar2Exe can run in Wizard mode and Command line mode.
Get detailed usage of Wizard mode, command line mode and generated binary files.

Configurations
Parameters can be configured to generated binary executive, such as Java VM parameters, system properties etc.
This is the descriptions of configurations, including overview introductions and detailed syntax.

Integrate API
To integrate with generated exe is not necessary. But if you want to let some of the enhanced functions to work, you need to do a little of integration. Every api to integrate is very simple.
This is the introduction and usages of API.

Demos
You can learn to use Jar2Exe by referring to the demo programs.

Solution advices
Typical usage of Jar2Exe with detailed steps and live demos in practice.
Such as console tool, desktop window, background service, webapp etc.
Services

Activate
After purchased, you need to activate Jar2Exe before you use Jar2Exe to generate exe files for redistributing. Activated Jar2Exe will authorize generated exe to run as a product.
This is to tell you how to activate.

FAQ
Typical questions asked by Jar2Exe users.
Comments
Failed to Convert to .EXE
Hello,
I have been using .exe app from 3 years, recenlty after updating to V2.5 unable to convert to exe, I'm using same jar file which converted successfully in previous version of .exe.
Please help me, I'm stuck in middle.
Thanks
Lost drag and drop
Hello
I have a java app that uses drag and drop function, the jar file run correctly but after convert to exe using jar2exe drag and drop functionalities now missing, any solution?
Which OS?
Thank you for your message.
Which OS? Could you send me a demo java program to show "drap and drop"?
Hi, its for Windows
Hi, its for Windows
Jar2exe close emergency
Hello I've perchese your software years ago it to generate exe. But my software has been haecked I was asking is there a way to track and code the exe files . So is been able to open as of it was a trail version of yours??
If possible let me know and cost involved.
Thanks.
BCEL error
I created an executable from war with the last version (2.2.4), the creation is done without error messages. But executing the exe file a message is showed and no service is started.
The Error is:
Exception in thread "main" org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at org.apache.tomcat.util.bcel.classfile.ConstantPool....
The exe file uses apache tomcat 7.0.8
Which version of Java are supported?
Java must be 32 or 64 bits?
Some framework may be not compatible with encryption
When encrypted, it is not allowed to get content of ".class" file by getResource. But some framework will try to load .class and do more by themselves, such as spring.
So, we could choose to partially encrypt our program, and let those class which need to be loaded, not encrypted.
Standard License
Hi, I have a question for Standard license.
Once I buy the product, how many users are allowed to use in our company?
Unlimited
For Standard License, the number of PC is unlimited in a company.
JXBrowser
Hi, I'm using jxbrowser and it doesn't allow me to convert jar to exe anymore, it just stuck and crash!
Jar2Exe subscription
Hello,
I have paid money for Jar2Exe standered version but I didn't received any key or response from your end, please contact me on my mail id: rajendra.shinde.bos@gmail.com
Payment done by mail id: pankajj@bookonspot.com
Waiting for your response.
Regards,
Rajendra
UTF8 default font issue
Hi.
When I am using jar file wrapped into your executable - it ignores file.encoding=UTF8 JVM property in Config Internal and writes junk characters into a file.
When the same jar file is used directly : java -jar -Dfile.encoding=UTF8.. jar.jar - it works fine.
Could you please advise.
Thank you
Mac Executable
Hello,
I tried to make executable for MAC, but it doesn't work.
Please help me on this
Please make sure 2 things:
Mac Excutable
Thanks for reply, Yes i did 64 bit executable, but i don't understand 2 point. Please explain steps to make MAC executable and running on MAC
Need to `chmod +x` when copied to mac
On Linux and Mac, executive files need to have execute privilege to run. Right now, Jar2Exe can run on Windows only, but FAT32 or NTFS could not express the `execute privilege`. So, after generated exe file is copied to Mac, we need to use `chmod +x (binary file)` to add execute privilege to let it runnable.
Generating for Mac ok but when I codesign the executable
hi
I'm using Jar2Exe fine in most cases but have hit a slight problem when generating for "mac" and applying codesigning to the executable.
to codesign I run
codesign -s "MyCompanyID" ./MyAppExecutable
But when I run this I get
$ ./MyAppExecutable
Error occurred during initialization of VM
java.lang.Error: java.lang.ClassNotFoundException: com.regexlab.j2e.Jar2ExeClassLoader
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1469)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1436)
Caused by: java.lang.ClassNotFoundException: com.regexlab.j2e.Jar2ExeClassLoader
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2209)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2195)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1456)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1436)
I have "/checksum:false" set already BTW.
Is there a way round this ? I'm sensing there is some overlap in how Jar2Exe and codesign define the executable header info.
Thanks
Which java version?
JDK 1.6 cannot run if exe is codesigned.
If higher than 1.6, I'm not sure whether codesign has corrupted the structure Jar2exe required.
You could try to download http://www.jar2exe.com/download/sites/default/files/download/integrate/j... and put along with the executive, and then add a line:
java_classpath jar2exe_integrate.jar
to config file.
64-bit service EXE not working
Bought JAR2EXE recently and I cannot get it to work...
I am trying make a 64-bit service application.
I thought that Jar2EXE would find JRE automatically but the EXE file built always fails with either Java Runtime Environment not valid or Java Runtime Environment not valid.
However, java binary is found just fine:
c:\Users\Bruger\Desktop>java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) Client VM (build 25.181-b13, mixed mode, sharing)
Since I am planning on searching for (and installing the JRE itself if missing) in my application's setup, please show me a configuration that can either always find the installed JRE or alternatively, please tell me exactly which files from the JRE directories that need to be placed relative to the service binary's directory in order for the JRE to be found ??
Thank you in advance
64 bit exe could only run with 64 bit JRE
On 64 bit Windows, 32 or 64 bit of JRE can run. Both 32 and 64 can be installed together.
Your "java -version" shows that, your JRE is not 64 bit edition.
Jar2Exe doesn't recognize the main jar file
i get a "class does not exist, are you sure it is right?
Jar2Exe doesn't recognize the main jar file
Tried the helloworld and it worked using the command line.
I then moved the jar and class files of the program to be exe'ed to the root directory (c:\) and successfully compiled the files and program. Thank you.
It seems that the directory where I currently have the files no longer is acceptable to Jar2Exe program. That was the cause of the Jar2Exe program not recognizing the main jar. Seems that Jar2Exe relies on Windows to locate the files where the "previously" compiled jar and class files resided. When the PC "user" location naming was changed, Jar2Exe still looked for it in the directory under the older user. Probably a Windows created problem of providing the Jar2Exe program wrong location info.
Which step, when creating or running?
Could you succeed when follow http://www.jar2exe.com/support/demos/hellojar2exe ?
I Cant Activate anymore
I order jar2exe in 2016 and know i can activate anymore, can you helpe me ?
Warning Message "Java Runtime
Warning Message "Java Runtime Environment not found" is shown after trying to run generated EXE!
Not run app after signing "Code signing certificate"
Currently, I use trial version, and after I sign the exe file using "Code signing certificate", the app don't run and show error message: "the exe cannot be modified after it generated". Please help me to solve this issue.
If I purchase "Personal Base License", can this issue be resolved?
Thanks,
Yes, once activated, there is a "checksum" option you can select
The checksum is forced to be checked in trial version.
Is there other payment, not Paypal?
I want to purchase Personal License. Is there other payment, not Paypal? For example, Visa Card or Crypto Currency?
Because my paypal account has limited.
There are ShareIt and RegNow
You can try Share-It and RegNow at http://www.jar2exe.com/purchase
Unable to Generate Key
Dear Support Team;
I am unable to generate my laptop key. kindly help in this regard.
my username is msibtain and purchase jar2exe personal version.
Kindly help in this regard.
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.regexlab.product.KeygenTools
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.regexlab.product.KeygenTools
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.en.regkeys.index_jsp._jspService(index_jsp.java:528)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NoClassDefFoundError: Could not initialize class com.regexlab.product.KeygenTools
com.regexlab.product.ProductKeyInfo.createKey(ProductKeyInfo.java:169)
org.apache.jsp.en.regkeys.index_jsp._jspService(index_jsp.java:126)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.
Apache Tomcat/6.0.26
Jar2Exe Personal
Improve for personal Jar2Exe and I have not yet received the change
Activación de la licencia
Hola buenas tardes, alguien que me pueda colaborar no he podido realizar la activacion de la licencia comprada la orden de compra es
3ESQFCA-A4UHC6
De antemano gracias por la atencion prestada y por una pronta solucion
Error downloading without install version
When click on download link browser say "The connectin was reset" and the URL turns to "45.64.22.68/www.jar2exe.com/download/sites/default/files/download/Jar2Exe_x86.zip"
Extend trial
I sent an email requesting to extend the trial. I was told to create a new account, so I did. I get an email for one time login, I sign in. I then have a choice to send a password to my email but entering a captcha continually fails with the following message.... I guess I can't paste the message here.. It says session reuse attack detected. The answer you entered for CAPTCHA is not correct. I have tried using IE, OPERA, and Firefox. This is getting very frustrating in order to extend a trial for a product that I am interested in.
mac, linux not working
i had licensed
but linux, mac file not working
execute-> notting happend
please help
Please `chmod +x yourbinaryfile` before run
Because the windows filesystem could not express the "execute" privilege, after you copy your generated binary file to Linux and Mac, please `chmod +x yourbinaryfile` first.
In the future release I'm thinking to generated a ".zip" file instead to contain the "execute" privilege.
Parameter /checksum:false doesn't work?
May you check command line parameter: /checksum:false
It didn't work for me. But, it works well if I use GUI in j2ewiz.exe
I used available on your site version 2.1.7.1096
This is very important for me, because I would like to use code signing for my EXE-file.
Sir,
Sir,
I tried a trial version to convert jar to exe with encryption but my application didn't work properly and as I tried without encryption it works properly.. Pls give me any suggestions so that I can purchase license....
Which type and options have
Which type and options have you checked? You contact me directly by email: support@jar2exe.com
The "checksum:false" can only be use after activated. Please make sure you are on the pc activated.
answer
Yes. You are right. I just used jar2exe in a trial mode. (another window account was involved)
Now it works fine!
Java runtime not valid
I've just downloaded a demo version and tried building an .exe. The wizard seemed simple enough to use although it surprised me I never had to specify where the jre I'd like to use is. When I execute the .exe however I get the following error message:
C:\Program Files\Java\jdk1.8.0_91/jre\bin\server/jvm.dll is not a valid Win32 application.
Java Runtime Environment not valid.
EXE crashing when using Hide or Encrypt option
I am creating a java APP and uging jar2exe to distribuite it as a exe file.
I have the following issue: when using the "Hide class files" or "Encrypt and hide class files" option my application craches when opening a certain JFrame for the second time. In other words:
1. I open my application: OK
2. I open a certain form to input some data: OK
3. I reopen the same form to input other data: crashes
Using other forms it is OK, I do not know what to look for.
If I use the original .jar or I do not use Hide or Encrypt option it works fine.
Here is the generated error file:
https://dl.dropboxusercontent.com/u/42217759/hs_err_pid9988.log
What can I do?
Thanks
Carlo
Java Runtime Environment not found
Hi,
I have the Java SDK installed. When I start the .exe generated by jar2exe, I get the error message: "Java Runtime Environment not found.". So I installed the latest JRE, and I still get this error message.
May you please advise ?
Regards,
Patrick
"Modify" the final *.exe
Hi, how are you? I'm trying your product and it's perfect but, I have a question.
I want to pack my final exe generated with MoleBox (to improve security) and it's impossible because exe modifications is prohibited.
Is there any way to do it?
Thanks
To modify the exe is not allowed in Trial edition
After purchased and activated, there is an option at step 6 to let the final exe file editable.
There is some advices to let the exe file more safe: http://www.jar2exe.com/solutions/safety
working with UTF-8 file names
Dear Sir/Madam:
It seems that the EXE file created by your JAR2EXE doesn't work with some file names containing "strange" characters.
How to correct this error?
David
.exe deleted by Antivirus
I have converted my .jar file to .EXE with my paid jar2exe converter,but the exe file is deleted by most of the antivirus like QuickHeal,Avast etc in 32 and 64 bit both,what should i do looking for a solution
jmx error
hi
I test jmx example program jmx_example.zip
I compile and test this code in the ide.
I make jar and wrap with j2e.
but I didn't connect exe file with jconsole local process
jmx is not running
Hi
This is config of my service.
/config "property com.sun.management.jmxremote.port=9999" /config "property com.sun.management.jmxremote.authenticate=false" /config "property com.sun.management.jmxremote.ssl=false"
and it's log
Line 5899: 2016-04-04 11:48:03.484 DEBUG 5308 --- [main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'com.sun.management.jmxremote.authenticate' in [systemProperties] with type [String] and value 'false'
but jmx is not running
what do jar2exe execute jar by?
hi
what do jar2exe execute jar by?
java.exe? javaw.exe? jvm.dll?
Pages
Add new comment