Convert my Sikuli python script in a java (obfuscated) standalone package

Asked by Max on 2017-11-11

Hi!

Preface: I'm not a software developer and have never developed anything in java :)
I developed some sikuli scripts in python to automate actions for my researches (I work in academia).

Now I need to build a java standalone package for one of my programs (with the obfuscation) to be able to run it without installing and configure sikuli when I move or if I need to lend it to other departments.

I asked already the question here => https://stackoverflow.com/questions/47042941/jar-or-exe-file-from-sikuli-python-script
 but could not performed already the second step...

I have my script in a folder "my_program.sikuli":

image1.png
image2.png
...
script.py

So far I just compiled my py script with jython obtaining a .class file

$JYTHON_HOME/jython $JYTHON_HOME/Lib/compileall.py /home/my_program.sikuli/

===> a new file called "script$py.class" is in /home/my_program.sikuli/

Now I have no idea what to do and how to do it! In the link they spoke about wrappers and __run__.py but cannot understand what to do.

Could you help me explaining step by step the actions?

Thank you very much for your support!!!!!!!

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-11-11
Last reply:
2017-11-12
RaiMan (raimund-hocke) said : #1

Currently I am on holiday for 2 weeks. When I am back, I will have a look at it. Thanks for finding the interesting post.

Max (max883) said : #2

Thank!

Can you help with this problem?

Provide an answer of your own, or ask Max for more information if necessary.

To post a message you must log in.