<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Brent!<br>
<br>
I would first test everything from command-line before trying to do
funny stuff with java/jni/... if it works like you expect it to, you
can try to make it work from java. Oh and btw. you do have amarok
running when you try to call the dcop methods for amarok? Another thing
i would check is if dcopserver is running.<br>
<br>
HTH,<br>
<br>
Christoph<br>
<br>
Jeff Mitchell schrieb:
<blockquote cite="mid:47B50FB6.3000906@emailgoeshere.com" type="cite">
  <pre wrap="">Brecht Yperman wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

I'm trying to call DCOP from Java.

I first tried to do
Runtime.getRuntime().exec("dcop amarok playlist popupMessage test");
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->Try using various command-line arguments to dcop.

Here's me SSHing in to my box:

jeff@macncheese ~ $ dcop
ERROR: Couldn't attach to DCOP server!
jeff@macncheese ~ $ dcop --user jeff
kwin
kicker
kded
kmix
knotify
kwin-2
randr
klauncher
khotkeys
kmail
kwalletmanager
kdesktop
konqueror-8136
ksmserver
kaccess
kgpg

You may have better luck with some of the other arguments (--all-users, 
some of the session ones)...try 'em all.  dcop --help for guidance.

Hope this helps,
Jeff
_______________________________________________
Amarok mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Amarok@kde.org">Amarok@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/amarok">https://mail.kde.org/mailman/listinfo/amarok</a>

  </pre>
</blockquote>
<br>
</body>
</html>