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

How to get current country-code/locale in XSL?

xml xslt cultureinfo

I am using XSL transform on XML. Some part of transform are dependent on current locale. Is there any way to find the current locale from within XSL?

How to resize navigation back button according to text (not using custom image)

ios uinavigationbar backbarbuttonitem

I have View Controller inside of Navigation Controller. It has default back button with title of previous controller in navigation controller's stack. But button dont resize to text width.