Hello everybody.
I can't find a solution to a Java-Gentoo related problem. I think this is the
appropriate section, since this problem occurs on Gentoo and not on Ubuntu for example.
I would like to run a Java program, using an
external library, to realize a Java FlashPlayer. This is the code of the player:
Code:
package testplayer;
import chrriis.dj.nativeswing.swtimpl.NativeInterface;
import chrriis.dj.nativeswing.swtimpl.components.JFlashPlayer;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Main implements Runnable {
public static void main(String[] args) {
NativeInterface.open();
EventQueue.invokeLater(new Main());
NativeInterface.runEventPump();
}
public void run() {
JFlashPlayer player = new JFlashPlayer();
JPanel panel = new JPanel(new BorderLayout());
panel.add(player);
JFrame window = new JFrame("Test");
window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
window.add(panel);
window.setSize(400, 400);
window.setVisible(true);
player.load("http://www.youtube.com/v/XyX-KJwUohw");
}
}
A window should be opened and the youtube video should play as well. Here's what I get on Gentoo Linux.
http://i.imgur.com/XyYdk.png
It doesn't find the flash plugin actually, even though it is installed and properly working.
My Gentoo is x86_64 architecture and if I try to run the same application on Ubuntu (x86_64), it works like a charm.
At the moment my www-plugins/adobe-flash USE flags are the following: 64bit -32bit.
Why this piece of code runs on Ubuntu and on Gentoo not????
Could it be something related to some environment variable?
Thanks a lot!