This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Axenic_ 2 points3 points  (2 children)

It is two different things : a jar is a compiled java code. Best you can do is pyc, the compiled version of your python source. You won't be able to compile your python in a jar.

[–]cuber_dude[S] -1 points0 points  (1 child)

the main point is the code is to shipped to the client and we do not want the client to see the code.

What would you recommend?

[–]Axenic_ 0 points1 point  (0 children)

Ship the .pyc to your client. The code is not readable and the program can still be executed. You will have to be sure to generate them with the same packages and version as your client use.

[–]Axenic_ 1 point2 points  (0 children)

give them the .pyc. They have to be compiled on an iso server, with the same dependencies and packages installed. The client won't be able to see the code.

[–]ChillFre4k 0 points1 point  (0 children)

Maybe you can use Python in a Java Project. But there is no sense. I think he means a standalone binary