SOUND PROBLEM

2003-09-05 Thread slamet
Hello,


i'm using blackdown jdk 1.3 on Mandrake Linux OS and I am using KDE + arts.

i got problem when my simple apps doesn't produce sound. While on
Microsoft Windows, it works.

here is the code from the begining java programming books:

import javax.swing.*;
import java.awt.event.*;

public class PlayIt extends JApplet
{
   AudioClip clip;
   JButton button;
   final String play = "PLAY";
   final String stop = "STOP";

   public void init()
   {
String fileName = getParameter("clip");
clip = getAudioClip(getDocumentBase(),fileName);

button = new JButton(play);
button.addActionListener(new ActionListener()
 {
   public void actionPerformed(ActionEvent e)
   {
if (e.getActionCommand().equals(play))
{
  clip.loop();
  button.setText(stop);
}
else
{
clip.stop();
button.setText(play);
}
   }
 }
);

   getContentPane().add(button);
}
}

my question: is there any way to manage java to use particular sound
driver like oss or arts or esd?



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: error installing jre plugins

2003-03-01 Thread Slamet Cahyadi
mas hendra
buat soft link nya dulu
ln -s /usr/local/jdk/./java plugin_oji.so /usr/lib/mozilla/.../plugin/

that should be works
On Sat, 1 Mar 2003, >>-hendra-> wrote:

> Hi..
>
> I receive this message when running mozilla 1.1 :
>
> failed to initialize shared library
> /usr/java/j2sdk1.4.1/jre/plugin/i386/mozilla/javaplugin_oji.so
> [/usr/java/j2sdk1.4.1/jre/plugin/i386/mozilla/javaplugin_oji.so:
> undefined symbol:
> _ZN16nsServiceManager23GetGlobalServiceManagerEPP17nsIServiceManager]
>
> can anyone explain this ?
>
> PS. I am using j2sdk1.4.1_01 gcc 3.2 on Mandrake 9
>
> thanks,
>
>
>
> 
>  Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing 
> Rp 250.000 tunai
>  
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]