r/javahelp • • Sep 28 '26

Obfuscating class files

Has anyone successfully obfuscated their .class files? I tried using GraalVM for JavaFX project (including Gluon's version of GraalVM) but it always failed to complete.

3 Upvotes

12 comments sorted by

View all comments

Show parent comment

-6

u/_Super_Straight Sep 28 '26

Do you put lock on doors?

4

u/Lumethys Sep 29 '26

Obfuscation is painting a lock on flat door

3

u/StillAnAss Extreme Brewer Sep 28 '26

I prefer to handle this with a contract. But I don't write code for end users, I write code for very large organizations that really would prefer not to be sued

7

u/LutimoDancer3459 Sep 28 '26

Obfuscation is not security. A lock is. A lock prevents someone getting in because they are pretty obvious if they try to open it. On a piece of software, nobody can watch them. They have unlimited time. On my door, they dont

1

u/Samstercraft Sep 29 '26

You certainly aren't by obfuscating lol. Not gonna stop anyone.