Browse documentation
Documentation / Exclusions & configuration / Configuration reference

Configuration reference

Three optional controls on top of the default full-protection run. Each has its own page; this page lists the flag syntax.

rjni protect --in app.jar --out app-protected.jar \
  --trial 0.2 \
  --keep keep-rules.txt \
  --watermark "customer-42"

--trial <fraction>

A number between 0 and 1. Protects that fraction of eligible classes, selected deterministically. Omit it, or pass 1.0, for full protection, the default for every invocation. Full detail: Trial / evaluation mode.

--keep <file>

Path to a plain-text file of class-level glob patterns, one per line. Full syntax and scope: Config-driven keep rules.

--watermark <text>

Embeds an arbitrary identifier, obfuscated the same way the native library is, recoverable later without running the jar. Full detail: Build-time watermarking.