Hi,
I tried to embed a jar but it fails with the following output:
[info] Module Name: Z:\code\timer\timer.exe
[info] Module INI: Z:\code\timer\timer.ini
[info] Module Dir: Z:\code\timer\
[info] INI Dir: Z:\code\timer\
[info] Found VM: C:\Program Files\Java\jre6\bin\server\jvm.dll
[info] Generated Classpath:
[info] VM Args:
[info] vmarg.0=-Djava.class.path=
[info] Main Class: timer/Timer
java.lang.ClassFormatError: Truncated class file
[err] Could not load embedded classloader
[info] Registering natives for Native class
[warn] Could not find Native class
[err] Could not find or initialize main class
java.lang.NoClassDefFoundError: timer/Timer
Caused by: java.lang.ClassNotFoundException: timer.Timer
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)
Launching it directly with java works as expected.
Java version is
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
WinRun4J version is 0.4.0.
thanks
Thanks, will post a new version shortly.
Fixed in latest version (0.4.1)
Awesome, thank you very much for your efforts!