Off topic, but worth a shot...

I have an exe file which includes a class file and some images, is there a way to extract those files from that exe file?
[128 byte] By [S_Todda] at [2007-9-29 20:59:00]
# 1
Was it an EXE created with WinZip? If so, then all you need to do is go and download WinZip and then use WinZip to open the file.-Dok
Dr-Matrixa at 2007-7-16 1:08:21 > top of Java-index,Other Topics,Java Game Development...
# 2
It wasn't made with picozip or any zip program, it was made using jexepack
S_Todda at 2007-7-16 1:08:21 > top of Java-index,Other Topics,Java Game Development...
# 3

Short answer: I don't know of any programs that extract images and class files from jexepack.

Long answer: It depends on your (and jetexepack's) intepretation of .EXE file.

If it is a single binary executable that is treated as the begin-all and end-all of the application, then the best thing you can do is to use an hex editor (or similar program) and try to identify the sequence of bytes that corresponds to an image.

I mention this possibility because I don't know if this is what jexepack generates.

Some .EXE files are actually nothing more than self extracting programs that indicate somewhere the starting point of the program. A jar file is the perfect example - JREs look for a certain document (or marker) within that file and the marker tells them exactly where and what the main( ) is.In such a case, those .EXE files "temporarily unpack" the necessary files and you can grab the image files you need out of the temporary directory.

Probably the easiest "solution" is to get a third party program that monitors what files are added to your computer. Launch the application, exit the application, check the logs, and see if the application does indeed unpack its files into a temporary directory.If the application cleans up after itself like it should, then maybe you can crash the application or explicitly kill the process.

It's worth mentioning that in jar's case, it may be that the JVM is the "parent" application and the jar is treated like a zip file - it extracts the sequence of bytes it needs when it needs it, and you would be out of luck using the snoop technique. Unless you rewrote a class loader.

If no temporary files are extracted, then yes, you are going to have to kind of reverse engineer jexepack and determine if there's a pattern to the bytes such that you can determine where the image files are.

TheDavida at 2007-7-16 1:08:21 > top of Java-index,Other Topics,Java Game Development...
# 4

I made the exe file myself, but when my comp's hard drive was destroyed, all i have left is the exe file that i sent to someone else. There is just one class file, two image files, an icon and then the overhead from jexepack. Do you know the name of the program that monitors the files that are used?

S_Todda at 2007-7-16 1:08:21 > top of Java-index,Other Topics,Java Game Development...
# 5
a backup a day keeps trouble away
jpw35a at 2007-7-16 1:08:21 > top of Java-index,Other Topics,Java Game Development...
# 6
If you have a technical question regarding a specific commercial product, you should contact the company's support staff, or check out their support web site. Who knows, maybe they have a de-exe tool that they'd be willing to sell you?
JN_a at 2007-7-16 1:08:21 > top of Java-index,Other Topics,Java Game Development...