There are numerous free java obfuscators available. We recommend
ProGuard. For JDUN to work, some classes and methods must not be obfuscated. Below is an example of a proguard obfuscation file you could use with JDUN.
-libraryjars <java.home>\lib\rt.jar
-injars myapp_pre.jar
-outjar myapp.jar
# keep all native method names and the names of their classes
-keepclasseswithmembernames class * {
native <methods>;
}
# keep class names DialUpManager, DialUpDevice, and DialUpEntryProperties
-keepnames class com.jpackages.jdun.DialUpManager
-keepnames class com.jpackages.jdun.DialUpDevice
-keepnames class com.jpackages.jdun.DialUpEntryProperties
# keep method notifyCallback
-keep class com.jpackages.jdun.DialUpManager {
private void notifyCallback(java.lang.String, int, int);
}
# keep all DialUpEntryProperties methods
-keep class com.jpackages.jdun.DialUpEntryProperties {
<methods>;
}