One of the most popular sets of search terms we see in our website statistics relate to enabling Flash in WebRenderer. When we designed WebRenderer, we built it knowing that Flash was still being used and demanded by a lot of users, so we made sure that you could enable it within WebRenderer. Importantly, we made it easy for you to activate.
On most platforms Flash should work with WebRenderer Swing Edition if Flash has been set up to run in Firefox, as WebRenderer Swing Edition uses the plugin finder from the Mozilla engine to detect the Flash plugin. If Firefox is not setup with Flash on the target machine, the easiest way to enable Flash is to place the plugin into the WebRenderer profile directory located at:
<user home directory>/.webrendererswing6/<platform>/corecomponents/plugins
The Flash plugin file that is required depends on the platform. On Windows, the file name contains the Java architecture to be used (32 or 64-bit) and the Flash version number. Note that the file name specifies the architecture, regardless of the directory it is located in. The plugin file to use can be obtained from a system that has had Flash installed.
On a Windows 7 machine, the plugin files (for multiple architectures) are located at:
C:\Windows\SysWOW64\Macromed\Flash\NPSWF32_11_8_800_168.dll
C:\Windows\System32\Macromed\Flash\NPSWF64_11_8_800_168.dll
On Linux, the Flash plugin file is libflashplayer.so, and can be located by extracting the Flash download of the required architecture.
Repackaging WebRenderer to include Flash:
1- Extract the corecomponents-swing-xxx.jar (JAR files can be extracted the same as .zip files)
2- Add Flash or other plugin files to the corecomponents/plugins/ directory
3- Recreate the JAR file from the corecomponents/ directory, to replace the original corecomponents-swing-xxx.jar
The plugin should now be deployed when WebRenderer unpacks itself.
Please note; if you have already run WebRenderer then the corecomponents-swing-xxx.jar will not extract and run with your plugin, and you therefore have to force WebRenderer to extract these. This can be done by altering the versionxxx (“xxx” denotes the version number) and calling the BrowserFactory setCorecomponentsExtractOn method. Alternatively the .webrendererswing6 directory can be deleted from the target system entirely. This ensures that the latest components will be extracted.
It should be kept in mind that although third party plugins can be used with WebRenderer we cannot make any assurances regarding the quality of third party plugins or their interoperability with WebRenderer.
Related links:
Flash Player download – http://get2.adobe.com/flashplayer/otherversions/
Flash version check and test – http://www.adobe.com/software/flash/about/
Creating a JAR file – http://docs.oracle.com/javase/tutorial/deployment/jar/build.html
|