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

Using reflection to determine whether an object needs its members to be invoked on the GUI thread

winforms f# fsi

Referencing this FsEye issue, how can I use reflection to determine whether an object needs its members (or indeed a specific member if possible) to be invoked on the GUI thread?

Showing multiple dialogs in Android

android multithreading dialog

I have a scenario where my application tries to connect to the server, meanwhile a ProgressDialog is shown so the user knows that its contacting server. However, if the connection fails or refuses ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.