[英]Java : com.google.protobuf does not exist
I try to install Walkaround , a project based on Google Wave. 我尝试安装Walkaround ,这是一个基于Google Wave的项目。 I followed the official wiki for installation.
我按照官方Wiki进行安装。
But during the last step (./runant run), I've 100 errors: 但是在最后一步(./runant运行)中,我遇到了100个错误:
Proto.java:7: package com.google.protobuf does not exist
com.google.protobuf.ExtensionRegistry registry) {
^
Proto.java:12450: package com.google.protobuf.Descriptors does not exist
private static com.google.protobuf.Descriptors.Descriptor
^
Proto.java:12453: package com.google.protobuf.GeneratedMessage does not exist
com.google.protobuf.GeneratedMessage.FieldAccessorTable
...
...
100 errors
Similar topic: Problems using protobufs with java and scala . 相似的主题: 在Java和scala中使用protobufs的问题 。 So I try this solution after searching a proto.jar and the Proto.java:
因此,我在搜索proto.jar和Proto.java之后尝试了以下解决方案:
javac -cp
~/walkaround/third_party_src/wave/trunk/dist/proto.jar
~/walkaround/proto_src/com/google/walkaround/proto/Proto.java
But I get the same 100 errors. 但是我得到同样的100错误。
Someone can help me? 有人可以帮我吗? I have no knowledge about Ubuntu Linux and Java environment.
我对Ubuntu Linux和Java环境一无所知。
I had the same problem. 我有同样的问题。 The reason on my Project was that ./get-third-party-deps failed.
我的项目的原因是./get-party-deps失败。 That was fixed by installing build-essential on my ubuntu machine
通过在我的ubuntu机器上安装build-essential可以解决此问题
sudo apt-get install build-essential
./get-third-party-deps
You may jar xf proto.jar to see if those classes are in the jar. 您可以将xf proto.jar打包,以查看这些类是否在jar中。
If there is anything wrong, you may get it from http://code.google.com/p/protobuf/source/checkout 如果有任何问题,可以从http://code.google.com/p/protobuf/source/checkout获得
It contains c and java source code, you need java parts. 它包含c和java源代码,您需要java部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.