Native wrappers for .jar or .class files
843829Jun 6 2003 — edited Jun 7 2003hi...
i'm trying to implement a program that wraps an executable .jar file or a number of .class files, as an Win32 PE exe file. Some commercial versions of software already do this: NativeJ, exe4J, etc... I'm not tryin to COMPILE into exe's just wrap .jar's as exe's
When the exe is run, the process name in Task Manager is the same as the exe's, not java.exe or javaw.exe.
I'm wonderin, what exactly do i need to know to accomplish this. I'm reading now about JNI, read about Win32 PE file structures and headers. The idea i came with, is to like ship a tiny exe with my application, that i kind of like 'inject' a .jar file in it, and have the tiny exe invoke the JVM on the enclosed jar at runtime. The 'injected' exe would then be the application.
if anyone has any ideas on how to do this, please fill me in.