Jar File - Prevent Access to Source Code

前端 未结 10 1319
别那么骄傲
别那么骄傲 2021-01-19 16:40

I want to hand over a small Java app as a runnable jar but I do not want anybody to have access to my source code. Am I right in presuming that there is no source code (.jav

10条回答
  •  無奈伤痛
    2021-01-19 17:11

    You are right, there is no source code in the jar (unless you configure your build system to specifically put it in there). But you are always at the risk you code gets decompiled from the bytecode. An obfuscater might help here.

提交回复
热议问题