How can I extract java exe to jar

I have an exe that I know was written in java. I understand that java programs can be made into an exe and there are tools to convert jar files to exe but is it possible to convert back? AFAIK jar files can be run on any platform that can run java and I would like to use a windows compiled java program on mac without using any extra virtualisation (wine,vmware)


It depends how the exe has been built:

  • If it has simply wrapped, with a tool like JSmooth (as suggested by this thread), the same tool can extract the jar
  • If it it has been compiled, with for instance gcj (as illustrated by this question),... I am not sure.
  • If it has been compiled by a static compiler (or AOT - Ahead-Of-Time -), I believe it is not possible to extract the orignial jars.

Need Your Help

Better Thinking Sphinx Results

ruby-on-rails ruby sphinx thinking-sphinx

I have recently started playing around with the thinking sphinx gem and have been having great success with running searches, however I have noticed that for some reason, certain searches aren't

PHP and Cloud Computing

php mysql cloud

I have a php spider script that works for taking web site contents, and save the content to my database. It takes about 50 days to finish its job. I have a Virtual dedicated server for that, but as...

Prevent Ajax CSS to ruin main CSS with JQuery Ajax

php jquery css ajax

I'm working on a web page that calls another page with great jquery ajax abilities. My problem is : there is a css file in ajax page. The page which is called needs it but I don't want to see sub p...