Я пытаюсь получить chimpchat для работы на Android. Это мой классAndroid ChimpChat выбрасывает исключение
import java.util.Map;
import java.util.TreeMap;
import com.android.chimpchat.ChimpChat;
import com.android.chimpchat.adb.AdbBackend;
import com.android.chimpchat.core.IChimpDevice;
import com.android.chimpchat.core.TouchPressType;
public class TapTest {
public static void main(String[] args)
{
Map<String, String> options = new TreeMap<String, String>();
options.put("backend", "adb");
options.put("adbLocation", "D:\\Android\\platform-tools\\adb.exe");
ChimpChat chimpchat = ChimpChat.getInstance(options);
IChimpDevice device = chimpchat.waitForConnection(5000, ".*");
device.touch(100, 100, TouchPressType.DOWN_AND_UP);
chimpchat.shutdown();
}
}
и работает это дает мне это исключение
Exception in thread "main" java.lang.NoClassDefFoundError: com/android/ddmlib/TimeoutException
at com.android.chimpchat.adb.AdbBackend.waitForConnection(AdbBackend.java:122)
at com.android.chimpchat.ChimpChat.waitForConnection(ChimpChat.java:91)
at TapTest.main(TapTest.java:21)
Caused by: java.lang.ClassNotFoundException: com.android.ddmlib.TimeoutException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more
Я добавил Chimpchat.jar, guava.jar, monkeyrunner.jar, sdklib.jar, Jython-standalone.jar.