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
- Go to bozar.vimasig.com/obfuscate.html
- Click Choose File and select your JAR
- 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: specificMethodNameSee Exclusion Rules for complete syntax.
Step 4: Obfuscate
- Click Obfuscate
- Wait for processing (typically 10-60 seconds)
- 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 acceptableGetting Help
If you encounter issues:
- Check the FAQ
- Review your exclusion rules
- Try with minimal obfuscation settings
- Contact support with your configuration and error logs
Next Steps
- Configuration Reference - All available options
- Analytics Setup - Track application usage