Jar文件 - 防止访问源代码 [英] Jar File - Prevent Access to Source Code

查看:160
本文介绍了Jar文件 - 防止访问源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个小型Java应用程序移交给可运行的jar,但我不希望任何人访问我的源代码。我是否正确地假设jar文件中没有包含源代码(.java文件)?

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 (.java files) included with a jar file?

User269799

User269799

推荐答案

你是对的,jar中没有源代码(除非你将构建系统配置为专门将它放在那里)。但是,您始终面临代码从字节码反编译的风险。一个混淆器可能会有所帮助。

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.

这篇关于Jar文件 - 防止访问源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆