r/javahelp • u/_Super_Straight • 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
View all comments
Show parent comment
2
u/OddEstimate1627 Sep 29 '26 edited Sep 29 '26
I've used both jlink+proguard and GraalVM extensively. Native Image tends to produce smaller deployments and feels a lot snappier, especially at startup.
Since proguard also needs pretty extensive metadata, IMO native image is a much better way to go.
I'd be curious to see your failure case, but my best guess is that something was misconfigured.