#14 Embedded jar fails on Windows7 x64

open-fixed
nobody
None
5
2014-08-18
2010-12-17
Anonymous
No

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

Discussion

  • Peter Smith
    Peter Smith
    2010-12-21

    Thanks, will post a new version shortly.

     
  • Peter Smith
    Peter Smith
    2010-12-29

    Fixed in latest version (0.4.1)

     
  • Peter Smith
    Peter Smith
    2010-12-29

    • status: open --> open-fixed
     
  • Awesome, thank you very much for your efforts!