LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-05-2010, 04:27 AM   #1
fbcyborg
LQ Newbie
 
Registered: May 2010
Posts: 17

Rep: Reputation: 0
Gentoo doesn't run a Java (Flash) application but on Ubuntu yes!


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!
 
Old 05-05-2010, 05:18 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 66
You may want to go through the gentoo wiki or forums- official ones- to find the solution.
 
Old 05-05-2010, 05:23 AM   #3
fbcyborg
LQ Newbie
 
Registered: May 2010
Posts: 17

Original Poster
Rep: Reputation: 0
You are right, but no one find a solution there at the moment.
Maybe I will post in the international section.
 
  


Reply

Tags
flash, gentoo, java, player


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE jar MIME is application/zip and not application/java-archive in Ubuntu Intrepid? arobinson74 Linux - Software 2 09-18-2009 11:40 AM
giving sudo privliges to run *specific* java application dsollen Linux - Security 2 06-25-2009 09:39 AM
How to run a java application developed by jdeveloper (on Windows) in Linux jefn Programming 7 04-28-2009 04:15 AM
run a java application (server) as service fireball003 Linux - Newbie 8 04-08-2009 06:05 AM
Unable To Get Java Application To Run on Debian carlosinfl Debian 2 04-11-2008 05:31 PM


All times are GMT -5. The time now is 07:33 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration