JFlashPlayer Documentation

Requirements

Adding JFlashPlayer to your Project

To add the JFlashPlayer classes to your project, simply add the included jar file to your classpath. Some IDEs refer to this as libraries on the Java build path of your project. You can then build your project and include the JFlashPlayer classes with your application distributables.

Obfuscation

There are numerous free java obfuscators available. We recommend ProGuard. For JFlashPlayer to work, some classes and methods must not be obfuscated. Below is an example of a proguard obfuscation file you could use with JFlashPlayer.
-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 name FlashPanel
-keepnames class com.jpackages.jflashplayer.FlashPanel

# keep method notifyCallback
-keep class com.jpackages.jflashplayer.FlashPanel {
  private void notifyCallback(int, int, int, int, java.lang.String,
  java.lang.String);
}