Skip to content

Quick Start

This tutorial walks you through obfuscating your first JAR file using the Bozar web interface.

Step 1: Prepare Your JAR

Before obfuscating, ensure your JAR file:

  • ✅ Runs correctly without obfuscation
  • ✅ Has all dependencies bundled (fat JAR) or uses external classpath

TIP

Test your application thoroughly before obfuscation. It's much easier to debug issues in unobfuscated code.

Step 2: Upload and Configure

  1. Go to bozar.vimasig.com/obfuscate.html
  2. Click Choose File and select your JAR
  3. Configure the obfuscation options

Settings to Avoid Initially

  • Experimental Type - May cause compatibility issues. Start with Basic or Advanced.

Step 3: Set Exclusion Rules

If your application uses dynamic reflection, serialization, or frameworks like Spring/Hibernate, you may need to exclude certain classes to prevent errors. (Note: Standard reflection, like Class.forName("LiteralString"), is often handled automatically).

Example exclusion rules:

# Keep main class
class: com.example.Main

# Keep all model classes
class: com.example.model.**

# Keep methods used by reflection
method: specificMethodName

See Exclusion Rules for complete syntax.

Step 4: Obfuscate

  1. Click Obfuscate
  2. Wait for processing (typically 10-60 seconds)
  3. Download the obfuscated JAR

Step 5: Test

Important

Always test your obfuscated JAR before distribution!

bash
# Test the obfuscated JAR
java -jar obfuscated-app.jar

# Compare behavior with original
# - All features work correctly
# - No ClassNotFoundException or NoSuchMethodException
# - Performance is acceptable

Getting Help

If you encounter issues:

  1. Check the FAQ
  2. Review your exclusion rules
  3. Try with minimal obfuscation settings
  4. Contact support with your configuration and error logs

Next Steps