Recovering Source Code from Compiled .jar File for SikulixIDE

Asked by Oleksij Atirovich

Hello! It so happened that I lost the source code of my program, but I still have the compiled .jar file. Is there any way for me to retrieve my code from it, which I can edit in SikulixIDE?
It will be very difficult to start from scratch =(

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

unzip the jar and look for .pyc files, which is the compiled code of your script.
... and you have to look for your images.

You may try to decompile the .pyc files.

in the net look for "decompile pyc".

Here is a possible solution: https://github.com/FuturisticGoo/UnPYC

... but I do not have any experiences.

Revision history for this message
Oleksij Atirovich (oleksij) said :
#2

Thanks RaiMan, that solved my question.