Re: [protobuf] NoClassDefFoundError Android
Hi Jason thanks for your answer. I just pasted the relevant lines from the proto file, sorry for not being more explicit about that. Here is a paste of the whole file: http://pastebin.com/uCKCsviG the file is called doorProtocol and hence since I have/had not specified the outer class name the java file is named DoorProtocol which for me is fine. It is also placed in the right package, no problems. The problem is that the $request class is not available at runtime. Best Kasper Den tirsdag den 8. maj 2012 18.18.21 UTC+2 skrev Jason Hsueh: Your proto file in the link looks incomplete. Have you checked the outer class name option? https://developers.google.com/protocol-buffers/docs/reference/java-generated#invocation On Tue, May 8, 2012 at 12:25 AM, Kasper Revsbech krevsb...@gmail.comwrote: Hi all I have a mind wrapping problem using protocol Buffers on Android. I among other commands defined a request in my .proto file: http://pastebin.com/B4htQeRm In my communication I do as follows: Protocol.request.Builder r = Protocol.request.newBuilder(); However on run time I get the error: java.lang.NoClassDefFoundError dk.revsbech.client.Protocol$request I have now trie with at bunch of jar files both pre compiled and manually compiled both with and withouut Maven, both with and without the LITE_RUNTIME optimization. However I keep getting the runtime error. Tanks in advance -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/MAzfYhJy8PMJ. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/4Yvjb6GxPWsJ. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] NoClassDefFoundError Android
Hi all I have a mind wrapping problem using protocol Buffers on Android. I among other commands defined a request in my .proto file: http://pastebin.com/B4htQeRm In my communication I do as follows: Protocol.request.Builder r = Protocol.request.newBuilder(); However on run time I get the error: java.lang.NoClassDefFoundError dk.revsbech.client.Protocol$request I have now trie with at bunch of jar files both pre compiled and manually compiled both with and withouut Maven, both with and without the LITE_RUNTIME optimization. However I keep getting the runtime error. Tanks in advance -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/MAzfYhJy8PMJ. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
Re: [protobuf] NoClassDefFoundError Android
Your proto file in the link looks incomplete. Have you checked the outer class name option? https://developers.google.com/protocol-buffers/docs/reference/java-generated#invocation On Tue, May 8, 2012 at 12:25 AM, Kasper Revsbech krevsb...@gmail.comwrote: Hi all I have a mind wrapping problem using protocol Buffers on Android. I among other commands defined a request in my .proto file: http://pastebin.com/B4htQeRm In my communication I do as follows: Protocol.request.Builder r = Protocol.request.newBuilder(); However on run time I get the error: java.lang.NoClassDefFoundError dk.revsbech.client.Protocol$request I have now trie with at bunch of jar files both pre compiled and manually compiled both with and withouut Maven, both with and without the LITE_RUNTIME optimization. However I keep getting the runtime error. Tanks in advance -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/MAzfYhJy8PMJ. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.