简体   繁体   English

Restlets GAE Android

[英]Restlets GAE Android

I'm unable to run the following Android sample . 我无法运行以下Android示例 http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html

I'm using Eclipse Juno 4.2 on a 64Bit Ubuntu 12.10 and trying to deploy on api Level 15 (Android 4.03 Emulator and real Device) 我在64位Ubuntu 12.10上使用Eclipse Juno 4.2,并尝试在api级别15(Android 4.03模拟器和真实设备)上进行部署

I just imported the sample project in my workspace (Android Project from existing source) and added org.restlet.jar (from restlet-android-2.0.15) to my classpath as described above. 我只是将示例项目导入了我的工作区中(来自现有源的Android项目),并如上所述将org.restlet.jar(来自restlet-android-2.0.15)添加到了我的类路径中。

At the following line I get an exception: 在下面的行中,我得到一个例外:

ClientResource cr = new ClientResource(
    "http://restlet-example-serialization.appspot.com/contacts/123");

Exception: 例外:

java.lang.reflect.InvocationTargetException
java.lang.NoClassDefFoundError: org.restlet.resource.ClientResource

Can someone please guide me on how I can solve this please? 有人可以指导我如何解决这个问题吗?

I was able to make it run but its not really clear to me. 我能够使其运行,但对我来说还不是很清楚。

I removed the org.restlet.jar from my classpath and added the source folder instead. 我从类路径中删除了org.restlet.jar,而是添加了源文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM