Jar2Exe can run in Wizard mode and Command line mode.
Get detailed usage of Wizard mode, command line mode and generated binary files.
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.
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.
You can learn to use Jar2Exe by referring to the demo programs.
Typical usage of Jar2Exe with detailed steps and live demos in practice.
Such as console tool, desktop window, background service, webapp etc.
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.
Typical questions asked by Jar2Exe users.
Maybe because of the version of class file
Maybe the version of JDK which you compile the class files with on Windows 7 is higher than the version of JRE which you run with on Windows XP.
If so, please use a -target parameter when 'javac'.
java is backwards compatible....
since java is backwards compatible why i should specificaly define the target jre since it should run in any older version? furthermore, the jar file runs fine both on win7 and XP. only the exe file doesn't run on xp.
Is there any other exceptions
Is there any other exceptions shown when "The main startup class could not be found"?
The target of class is one of the possible reasons I thought. The java is not backwards compatible if you did not use a "-target" parameter when compile, please refer to http://docs.oracle.com/javase/1.5.0/docs/tooldocs/solaris/javac.html#crosscomp-options
If the target of the class is not the reason, if you would like to, you can send me your exe file or contact me directly through email or skype: http://www.jar2exe.com/about .
I Can't Activate the software
I bought this software jar2exe in Jun 26, 2012 22:35. I Lost my HD and I needed reinstall. When I fill the Register User and Register Key on softwate to activate it, I receive the massage: ACTIVATE FAILED. Tour Trial period has 30 days left.
Please, I need your help to resolv this question.
You can download V1.8 or upgrade to V2.0
Your license is for V1.8, you can download V1.8 here: http://www.regexlab.com/en/regkeys/
You can also choose to upgrade to V2.x http://www.jar2exe.com/cart/add/p105?destination=cart . The main new feature of V2.0 is to support Linux and Mac.
A few weaks ago i have installed trails version of jar2exe v2.0.6, for a few weaks i worked fine,
but today it display an ClassNotFoundException, and it says that can't find class abc (as an example) this was fine, but now not working.
actually i am instanctiating the class using Class.forName("className").
trails time is not finished yet,
the configuration is as below:
min jre: 1.7
app type : Windows GUI application
class file encryption: Encrypt and Hide class files
I dont know why it worked till yesterday, and now it does not work.
A special ClassLoader is used to load protected classes
Thank you for your message.
If a class is 'encrypt and hide' by Jar2Exe, it is loaded by a special native ClassLoader. A class which is not 'encrypt and hide' cannot load a 'encrypted' class. That is to say, if you call Class.forName("className") within a un-encrypted class for a protected class, it may fail.
The solution is to use "Thread .currentThread() .getContextClassLoader()" to load the class instead. http://www.jar2exe.com/createdexe/integrate/protect
A program with a ClassLoader is usually a bit complex and abstract. So there may be somewhere else that cause the failure. Please contact me if your problem not resolved or you have any other ideas.
Thanks a lot.
Thanks for your comment, I have reviewed my build mechanism, i found the problem with the ant builds, the ant build task did not compile the files, :) i do not know why; i worked perfect till my previous builds, and without changing any configuration or ... i skipped compiling the source files,
However i findout that the problem is not with the jar2exe, and that sounds good to me,
Thanks for you greate product
Exe Not Work
Contact me (email@example.com) if your problem not resolved, or we can discuss on IM (Skype or GTalk)
Add new comment