MessageRead in Dbus java is not found
Matthew Johnson
dbus at matthew.ath.cx
Wed May 9 09:58:21 PDT 2012
On Wed May 09 17:48, Lusy Hakobyan wrote:
> 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.
You don't read/write messages like that using dbus-java, that's just an
internal class for reading the wire protocol. You interact with dbus on an
object/method level.
Read the documentation: http://dbus.freedesktop.org/doc/dbus-java/dbus-java/
Matt
> 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
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120509/94805fda/attachment.pgp>
More information about the dbus
mailing list