GWT + Flash + Ubuntu
I've been trying to use Flash components in a GWT project running under Ubuntu, and I've been having a devil of a time getting flash to work. Flash works fine in my Firefox install, but not in the GWT hosted-mode browser. I've just found a fix, so here it is for Google & the world to find:
The trick is simply to copy1 the flash plugin that Firefox is (successfully) using to the right directory, so that GWT can find it.
# Find the plugin $ locate libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer.so # Find the Mozilla directory. $ find $ECLIPSE_HOME/plugins -type d -name 'mozilla*' /home/kris/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/mozilla-1.7.12/ # Copy the plugin to the mozilla-1.7.12/plugins directory. cp /usr/lib... /home/../mozilla-1.7.12/plugins/
Restart the GWT hosted mode task, and Bob should be your uncle.
1 Or symlink, or a bit of mucking about with LD_LIBRARY_PATH would probably do it too, but I'm just going for a straight copy here.
Post new comment