Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Native wrappers for .jar or .class files

843829Jun 6 2003 — edited Jun 7 2003
hi...

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2003
Added on Jun 6 2003
1 comment
212 views