How to use java dbus to create an Java Interface for dbus interface
- First you need a compiled Java Dbus Library
- Go into the directory of Java DBus
- Found the CreateInterface.sh, then edit as follows:
#!/bin/sh --
JAVA=$JAVA_HOME/bin/java
DEBUG=disable
VERSION=0.1
JARPATH="$PWD/ipkg-install/share/java/"
JAVAUNIXJARPATH="$PWD/ipkg-install/share/java/"
JAVAUNIXLIBPATH="$PWD/ipkg-install/lib/jni/"
JAVAUNIXJARPATH=%JAVAUNIXJARPATH%
exec $JAVA -DPid=$$ -DVersion=$VERSION -Djava.library.path=$JAVAUNIXLIBPATH -cp $JAVAUNIXJARPATH/unix.jar:$JAVAUNIXJARPATH/debug-$DEBUG.jar:$JAVAUNIXJARPATH/hexdump.jar:$JARPATH/dbus.jar:$JARPATH/dbus-bin.jar org.freedesktop.dbus.bin.CreateInterface "$@"
then run the CreateInterface.sh
./CreateInterface.sh -s org.domain1.domain2 /ObjectPath
来源:CSDN
作者:云一JL
链接:https://blog.csdn.net/CAZICAQUW/article/details/37973623