MessageRead in Dbus java is not found

Lusy Hakobyan lusinmoon at gmail.com
Wed May 9 08:48:55 PDT 2012


Hello guys,

I am new to Dbus world.
I would highly appreciate if someone would react to my email.

I m using ubuntu 12.04 and making a program with Dbus java.
I could connect successfully to the session bus but when i am trying to
read or write i get strange errors.

I should mention that i got all the jar files by installing directly from
ubuntu so I didnt not build anything special.
just apt-get install libdbus-java.

the peace of code that i have is here.

mDBusConn =
DBusConnection.getConnection("tcp:host=xxx.xxx.xxx.xxx,port=123544");

 InputStream in = new ByteArrayInputStream(data);
 MessageReader mReader = MessageReader(in);

the error that i get during the compilation is

*[javac] DbusChannel.java:39: cannot find symbol
    [javac] symbol  : method MessageReader(java.io.InputStream)
    [javac] location: class com.tomtom.reflection2.dbus.DbusChannel
    [javac]      MessageReader mReader = MessageReader(in);
    [javac]                                                         ^
    [javac] 1 error*


I dont understand why it is complaining about the constructor, since based
on documentation(http://dbus.freedesktop.org/doc/dbus-java/api/) it should
be there.
I am using just gedit for implementing classes so i cant see immediately if
it is there or not.


Thanks in advance,
Kind regards,
Lusy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120509/a115c189/attachment.htm>


More information about the dbus mailing list