r/pythonhelp • u/cuber_dude • Jun 02 '20
Help to Compile Python to JAR
I have a python 3 code which my manager wants to convert to a JAR file.
I saw Jython but I am unable to find something to compile to jar.
the main point is the code is to shipped to the client and we do not want the client to see the code.
0
Upvotes
2
u/linear_voyager Jun 02 '20
If I’m not wrong I think jar files can kind of be treated like zip files, especially in Linux where file types are not dictated by the extensions. One could potentially unzip the jar and that would show all the source code and executables. Again I’m not 100% sure about this. However, you could try something like py2exe to convert the project into executable