FAQ

Typical questions asked by Jar2Exe users


How to get more details of the error when generated exe fails to run?

If the exe file is generated as "GUI application" or "Service application", the console is not visible, so it is not convenient to debug when it fails to run, we do not know what is wrong.

There are 2 ways to get more detailed informations about the exception description:

  1. For "GUI application", you can create it as "Console application" for DEBUG, then you can get the exception on the Console window. For "Service application", you can use "yourprogram /test" at command line to run it as a console application.
  2. Another way, in the ".cfg" file, use a "stderr" to redirect the console to a file, for example "stderr yourprogram.log". Please refer to http://www.jar2exe.com/createdexe/intro/stdredir .

What is the mechanism of Jar2Exe?

Jar2Exe generate exe file by wrapping binary code around encrypted jar file. When a generated exe file runs, it starts the JVM and call the main method of entry point class. Jar2Exe does not compile java code into native code.

The binary code of generated exe files does not depend on MFC, STL, or VC runtime library on Windows, does not depend on GLIBC on Linux.

The independency of runtime library brings a good compatibility, but it lets the size of exe file a little larger, that the binary code is about 150kb ~ 300kb according the options. (While if the binary code depends on the runtime library, the size can reduce to 20kb ~ 100kb, but less compatibility.)


How to run generated exe on a computer without JRE installed?

When a 'jre' directory exists along with generated exe in the same directory, the generated exe will use the 'jre' directory first. The 'jre' directory need not to be INSTALLED, but just a COPIED 'jre' directory will work.

You can pack the 'jre' directory and your generated exe file into one install file, and let the 'jre' be extracted with your main exe file into the same directory. Since the copied 'jre' is justed copied, not normally installed by JRE's install file, other softwares cannot find it, so this copied 'jre' is a private JRE and used by your generated exe only.

  • See jvmdll page for more details.
  • See jre page for bundled jre.

Why "Java Environment not found" when generated exe runs?

1. JRE is required when generated exe runs. If you have not installed JRE, you can download it from http://www.java.com.

2. If you run generated exe files on 64 bits of Windows or Linux, please note that 32 bits of exe can run with 32 bits of JRE, 64 bits of exe can run with 64 bits of JRE.

3. On Linux, gcj is not supported.


Can generated exe file be re-encrypted by third-party softwares?

You can uncheck the "Self checksum" box at Step 6: Output if Jar2Exe is ACTIVATED, and then you can re-encrypt generated exe by third-party softwares.


Generated exe file cannot run after signed?

Same as to be re-encrypted, you need to unckeck "Self checksum" box at Step 6: Output, and then generated exe can be signed by 'signtool.exe' etc.


Why error "/lib/ld-linux.so.2: bad ELF interpreter" when generated exe file runs on Linux?

You're on a 64-bit system, and don't have 32-bit library support installed. You can install it like this:

yum install glibc.i686

Or

apt-get install ia32-libs

Where can I find the program version of Jar2Exe?

About menu is here:


Is there a free edition of Jar2Exe with basic features only?

Yes, those features without "Trial xxx days" are free to use:

  1. To create a console application without any of the "trial features" enabled, is free to use, the generated exe file will not expire after 30 days.
  2. At the bottom of License compare page, you can click the TrialPay button to click an advertisement, and then you can get a full featured license.

 

Comments

通常都是支持的

QTJambi 我不太熟悉,回头我们看一下。 Jar2Exe 的加密逻辑,可能会与自定义 ClassLoader 出现不兼容。通常的 Java 程序都能够支持。

Segmentation fault

I have compiled my Java code and created an Exe for Linux. When I run it on my Linux server, I get the Segmentation fault error.
After further debugging, _findfirst(char const*, _finddata_t*)(): seems to be the issue.
Could it be because of issue in the Java code or in the Jar2Exe program?

Java Runtime Environment not valid

I make a console app, so i got differentiated error mes.

I use your fx.jar 

C:\Users\Jupp\Documents\NetBeansProjects\VTDESKTOP_SETUPDATA\ModFxStarter\fx.jar|META-INF\*|com\javafx\**

use : encrypt and hide class files

 

Exception in Application constructor
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.springframework.boot.loader.MainMethodRunner.run(Unknown Source)
        at org.springframework.boot.loader.Launcher.launch(Unknown Source)
        at org.springframework.boot.loader.Launcher.launch(Unknown Source)
        at com.regexlab.j2e.Jar2ExeLauncher.main(Jar2ExeLauncher.java:48)
Caused by: java.lang.RuntimeException: Unable to construct Application instance: class org.joobsoft.vt.MAIN.MainFX
        at [email protected]/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:891)
        at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:803)
        at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
        at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
        at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
        at [email protected]/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at [email protected]/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
        ... 1 more
Caused by: java.lang.NoClassDefFoundError: net/lingala/zip4j/exception/ZipException
        at org.joobsoft.vt.MAIN.MainFX.<init>(MainFX.java:75)
        ... 14 more
Caused by: java.lang.ClassNotFoundException: net.lingala.zip4j.exception.ZipException
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at com.regexlab.j2e.Jar2ExeClassLoader.findClass(Jar2ExeClassLoader.java:107)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        ... 15 more

MacOS app not working when code signed

Hi I purchased Jar2Exe as the free trial limitation does not show the self checksum checkbox and I kind of figured this absolutely needed to be cleared in order for subsequent codesigning of the app to work correctly.
It seems that I might be wrong as now with the full license and "sef checksum" unchecked I still generate a perfectly working app

THAT IS UNTIL I CODESIGN IT

So codesigning obviously modifies the executable (by appending the signature block at the end) and NOTE I figure its some sort of self extractor executable!!!

codesign --deep --force --timestamp --sign "Developer ID Application: My codesigning ID"  MyApp.app

Normally I would also add the hardened runtime option and also notarize the app but since I figure its just the codesigning which messes it all up I tried just signing on its own! Once the app has been signed (and I'll wager that actually just adding anything to the end of the exe file will bugger it up) thats it GAME OVER - the app wont work.

So since signing and notatarization are mandatory for MacOS apps I ask the following question.
HOW DO I CODESIGN and still have a usable app?

I note that if I codesign (never mind even getting as far as notarizing and stapling) THEN the (launcher app itself) crashes something like this....

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000e0aa3aaf
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11

VM Regions Near 0xe0aa3aaf:
-->
    __TEXT                 0000000107266000-00000001072c8000 [  392K] r-x/rwx SM=COW  /Volumes/VOLUME/*/Terra-DV.app/Contents/MacOS/Terra-DV

Application Specific Information:
dyld2 mode

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_platform.dylib       0x00007fff68bf8bb0 _platform_strncpy + 112
1   com.bluespider.Terra-DV        0x000000010726b9a0 CSettingsLoader::AppendInnerRemark() + 224
2   com.bluespider.Terra-DV        0x000000010726affb CSettingsLoader::Init() + 539
3   com.bluespider.Terra-DV        0x000000010726ace2 CSettingsLoader::CSettingsLoader(signed char) + 114
4   com.bluespider.Terra-DV        0x00000001072a2619 main + 57
5   com.bluespider.Terra-DV        0x0000000107267954 start + 52

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000aaf  rbx: 0x000000002a22f4c7  rcx: 0x0000000000000055  rdx: 0x000000002a22f4c7
  rdi: 0x00007fefb0400000  rsi: 0x00000000e0aa3aaf  rbp: 0x00007ffee89993e0  rsp: 0x00007ffee8998f78
   r8: 0x00007fefb0400000   r9: 0x00000000000007fb  r10: 0x000000000000001e  r11: 0x00007fff68bf8b40
  r12: 0x0000600001e89bc0  r13: 0x0000000108fb7000  r14: 0x00007ffee8998f88  r15: 0x0000000001d1bf7a
  rip: 0x00007fff68bf8bb0  rfl: 0x0000000000010206  cr2: 0x00000000e0aa3aaf

Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Now I note from the call stack that this has to be in the generated MacOS laucher App since the call stack shows what appears to be C++ code and matches strings present in the generated executable.

I also note that as long as I dont use the encrypt option that the executable can be launched as if it was the jar file itself
e.g.

java -jar exefilename

UNLESS it has been signed!!
in which case you get  something like this...

java -jar Terra-DV.app/Contents/MacOS/Terra-DV
Error: Invalid or corrupt jarfile Terra-DV.app/Contents/MacOS/Terra-DV

I eagerly await your advice and certainly dont wish to conclude in any way that for MacOS this product might possibly be unfit for purpose.

Kind regards,
Dave

Re: MacOS app not working when code signed

Right, since nobody has replied I shall reply to my self!!

Now looking at the executable which was generated it is clear that it is a self extracting zip but its NOT in ZIP64 format which is VERY UNFORTUNATE indeed.

It seems that when signing ZIP files (self extractor ones or JAR files for that matter) that the COMMENT length record must be adjusted to account for the extra data added by the code signing and failure to do this will result in the ZIP file being deemed corrupted. UNFORTUNTELY this ZIP file header field which describes this comment length is only 2 bytes wide (ZIP64 format changes that ridiculously stupid limit). Now while in windows signtool might well add less than 64k of data to the end of the file alas in MacOS the codesign utility seems to add a staggering 190kB to the end of the file. 

I had hoped to modify a tool which comes with launch4j (called sign4j) with the idea being to take the original unsigned executable, a signed copy of it and to produce an output file ith adjusted ZIP comment length header which could then be signed and subsequently still remain valid. ALAS due to the limitation of 64kb on the comment length it is not possible.

IS THERE ANY WAY ZIP64 FORMAT COULD BE USED INSTEAD????

SEEMS TO ME THAT THE MacOS capability in Jar2Exe is VERY BADLY THOUGHT OUT!

I ASK THE FOLLOWING QUESTION:

IS IT FIT FOR PURPOSE?

I certainly feel as though since code signing seems to not have been considered that I have been conned out of $145USD for a product that does not do what it says on the tin!

Regards,

Dave

Thank you for your information

I'm so sorry for the inconvenience. The codesign on MacOS is verified, but your situation of adding 190kB may be not covered. We are preparing the zip64 but have not completed yet. If Jar2Exe does not meet your needs right now, I could launch a refund for you or you can request a refund from PayPal. We will check in this point later, I hope we could solve the problem. Thank you very much for the detailed information.

Command line arguments

Hallo Dear,

How can I pass command line argument (not optiones)?

i.e. I want to start my programm:

jar myprogramm.jar 1234

Pl help

Regards

Mumtaz

exe not working when build from command line

exe jar nor norking when build from command line but same is working fine when i use GUI application.. in error its showing main class not defind , but i have define mail class. 

when build from application exe size become 11MB but when build from command line exe size become 9.25MB

Command which i used:

j2ewiz /regname xxxxxxx /regkey xxxxxx C:\Users\admin\Desktop\digivalet-bms-5.jar  /minjre 1.8.x_xx  /maxjre 1.8.x_xx  /platform linux /type console /m com.digivalet.core.DVBmsMain /platform linux /encrypt /embed C:\Users\admin\Desktop\digivalet-bms-lib.zip  /amd64

Hi Team,

Hi Team,

Please provide details for below

Is .NET framework required while generating exe .or while executing the generated exe

is so from which version of .NET framework is needed.

V2.2 Personel License

Hi I am Willing to Purchase Personel License V2.2 does it include Hide and Encrypt Class Protection.

Exceptions when using AdoptOpenJDK 11

We get this kind of exceptions in gui-application when using AdoptOpenJDK v. 11 and Jar2exe 2.5:

210118:064115.617 Session started
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at com.regexlab.j2e.Jar2ExeLauncher.main(Jar2ExeLauncher.java:48)
Caused by: java.lang.NoClassDefFoundError: org/jasypt/exceptions/EncryptionOperationNotPossibleException
at com.cardiscope.db.MainInstance.<init>(MainInstance.java:70)
at com.cardiscope.db.DatabaseConfig.scanConfigurations(DatabaseConfig.java:169)
at com.cardiscope.db.DatabaseConfig.<init>(DatabaseConfig.java:136)
at com.cardiscope.db.DatabaseConfig.main(DatabaseConfig.java:564)
... 8 more
Caused by: java.lang.ClassNotFoundException: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at com.regexlab.j2e.Jar2ExeClassLoader.findClass(Jar2ExeClassLoader.java:107)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 12 more

The exe has been converted with options:

/type windows /minjre 11 /platform windows /amd64 /encrypt /checksum:false /runasadmin /config "libs ./lib" /config "jre_order cesi" /authorize

JRE version 1.7 and 1.6 not visible in version 2.5

Hello,

I recently upgraded to version 2.5 but no I don't see JRE version 1.7 and 1.6 at all in options. How can I use them as I need them to process some legacy applications.

We will try 1.7 and 1.6 later

V2.5 uses some new feature of Java since 1.8.   We will try to support older Java later.

Please try again with JDK 11

Is your screen "high density"? Are you running on JDK 8?

As I know before, it is because JDK 8 shows too small, not Jar2Exe show too big. JDK 11 will shows the same size as Jar2Exe.

If not so, please tell more about the OS version, JDK version, screen size etc.

When I shutdown my

When I shutdown my application, the exe created by Jar2Exe often continues as a zombie process (which I see in Task Manager).

I want how do I shutdown all traces of my application.

Thanks

Generated exe crashes in Windows XP, works fine with windows 7 +

Hello,

I have generated an exe using jar2exe. It is crashing with dialog saying '*** has encountered a problem and needs to shut down....'. This exe works fine on Windows 7 onwards. I checked .jar form which it was created, it runs fine on Windows XP. What is the problem here?

Regards

Ram

One of my JFrame java files will not run --runs fine in Netbeans

I have aprogram which run fine when compiled in jar2exe until I added another Jframe file to it. Works great in NetBeans 8.0.2 with the added file but seems that Jar2exe will not allow this one file to run from the main exe java program. Not usre what is the cause of the problem. Any suggestions? 

Unable to Generate Key

hi,

 

I am unable to generate key for my laptop and server is giving following error.

 

 

my user name is msibtain

 

 

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

Windows 10: No icon, noc splash title

Same gif for splash screen and icon. Gif is shown in splash screen - but not the splash title.

Icon never appears.

I use the newest unregistered version.

Any suggestions?

Winrar preview

Even using the option to hide the jar files. It is still possible to open the exe with winrar, even if it only shows the Jar2exe files. Is there any way to prevent this?

Those files are not your classes

What you see in WinRAR are not your classes.

When Java program starts, it needs at least one jar file as its entry point. Jar2Exe lets the exe file is a jar file at the same time. Please don't worry, those files which you see in WinRAR are not your own classes.

I can not register the version anymore

My windows 10 updated tonight and now I can not register the version anymore. When I try to register again "Activate jar2exe have reached the number of licenses". I ask for urgent help, because I'm on a project and need it to work. Thank you

licence

does this tool support licenc?e.

I need , once install my java apllication for computer .it cant be use for any other computer

Jar2EXE killed by AVG

I have used AVG for years as well as Jar2EXE, but on the last update of AVG (17.5.3022) , it now intercepts and kills Jar2EXE complaining that it is infected with a virus. Yes, it's probably a flaw in AVG, but I would suggest contacting AVG to get this resolved!

Not able to move licenses to another computer.

Hello,

I recently formatted all my computers, now I am unable to activate, it gives me error that I have reached number of licenses.

Please do the needful.

 

Regards

Ram

Runtime.getRuntime().addShutdownHook() apparently not running

Running my project from a built as a runnable jar (no jar2exe), I see that the code in the shutdown hook thread runs properly, but if I build as an exe (using jar2exe), the code in the shutdown hook seems NOT to run. 

Should the code in the shutdownhook thread be running, or is this a limitation of a program packaged using jar2exe?

EDIT: I have discovered that sometimes programs built with jar2exe do indeed execute the shutdown hook code.  I will try to narrow the differences, perhaps flush the output to stdout will help determine if the code is running.

sqlite

Hai how to make exe with sqlite database.is it necessary to add lib in dependened jar files.how to add other txt and pdf file with exe

Jar2exe Encryption can be evaded

Can shield the function of JVM javaagent etc?
Because the parameters can be easily get into the JVM bytecode, lead to protect
Thanks.

Desktop icon goes back to java coffee cup

Works perfectly except for the icon.  And that is the only reason I'm interested because I have all the rest in a runnable jar.

So, much to my surprise, even when I got the shortcut on the desktop to match what was compiled with jar2exe, as soon as I ran it

the icon changed to a windowed coffee cup.  Cannot purchase unless this is fixed.

Spring Boot

I encrypt an spring boot application what is a single jar with all dependent libraries inside.  

It run good as jar but when I generate the exe file it does not work.

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/c
ore/io/ResourceLoader
Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resourc
eLoader
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
The main startup class could not be found.

Java Runtime Environment Not Found

Hi,

I am using Jar2Exe. When I generate .exe, it is working fine in my system. But in some systems, it is showing Java Runtime Environment Not Found message even though JRE is installed in their system.

What is the problem with it and how can I fix it?

Thank you,

Karthej

swift payment

Dear Sir,

I am from BNP Paribas Turkey. We would like to buy below product urgently.

Could you please inform us whether you accept SWIFT bank transfer ?

Product: JAR2EXE.COM Standard License

Qty: 1

Price: 145 USD

 

Thank you,

Program Not Working

I have generated several .exe files that run perfectly fine and do the correct thing on my system but simply do not work when my friend runs them on his computer. It's the exact same file and my windows 10 laptop runs it perfectly fine but when he runs it nothing happens except a very quick flash of a window.

When copying the .exe file program opens up but no content/empty

Hi there, 

I was trying to copy my exe file to an external and run it from another computer. Program open up but window's empty, doesn't run.

Is there something I'm missing here?

Does the exe still need to be in same location as the lib folder?

 

Grateful for any help!

 

webapp with spring

hello,

this week,i am trying to study how to use jar2exe to wrap and encrypt webapp spring project.

i can do it fellow the solution advice:Webapp,which is the project of tomcat\webapp\examples,

but failse,when i do it on my simple webapp project,with the srping,this project just pring helloworld.

the error msg is:

warning:cannot search for matching files underneath url[j2e:libs/web-inf-classes.jar!com/demo/web/controllers/] because it does not correspond to a directory in the file system

java.io.filenot foundexception: url[]

 

 

please help,tks!

 

Corruption of History

I am still encountering problems where the history of previous builds is repeated / corrupted.

When I use the drop-down on "Please input the jar file full path or classes directory:" item, instead of seeing one item for each project built in the past, I see one accurate item, then dozens of items that are corrupt.  These corrupt items appear to be a mixture of two build items.

This is a picture of what the corruption looks like:

http://i.imgur.com/uwPmiC4.jpg

Is it possible to offer a way to completely clear history to see if that helps?

Lost History

Today when I built a project I'd never built before, my history got lost due to some corruption, I think.  The image shows the new project repeatedly added to the history, but with on character removed for each entry.

http://i.imgur.com/8GXRJFd.jpg?1

I see a file called j2ewiz.ini, dated 3/31/2015.  Could I take action to somehow restore my history using that INI file?

Corruption of History Resolved

You can search the whole C: drive for j2ewiz.ini , it is under C:\Users\<your user>\AppData\Local\VirtualStore\Program Files (x86)\Jar2Exe Wizard

At Jar2Exe's view, it is under C:\Program Files (x86)\Jar2Exe Wizard , but the Windows mapped it to your HOME directory for read-write.

Pack .DLL file

Hi,
Can I pack inside my .exe file .DLL files?
Thanks,
NG

error example

hello

I want to convert webapp (war ) to an .exe file, read the web page tutorial " http://www.jar2exe.com/solutions/webapp "

but when you run the exe displays the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/s
tartup/Tomcat

my version of the software is 2.1.7 with license

thanks for the help

This problem is resolved

This problem is resolved finally. There are 2 ways to resolve:

1) Move away or rename the binary file to a different filename as the jar filename.

2) Download again the latest Jar2Exe and try again.

 

Pages

Add new comment