简体   繁体   English

Java:com.google.protobuf不存在

[英]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.

相关问题 尝试构建ProtoBuf Java组件时com.google.protobuf软件包不存在错误 - package com.google.protobuf does not exist error while trying to build ProtoBuf Java component 未能应用插件“com.google.protobuf” - Failed to apply plugin 'com.google.protobuf' Maven & Protobuf 编译错误:在 package com.google.protobuf 中找不到符号 - Maven & Protobuf compile error: Cannot find symbol in package com.google.protobuf “无法解析 com.google.protobuf:protoc:4.0.0-rc-2”尝试使用 Protobuf Gradle 插件 - “Could not resolve com.google.protobuf:protoc:4.0.0-rc-2” trying to use the Protobuf Gradle plugin protoc 没有干净地退出并且缺少: ---------- 1) com.google.protobuf:protoc:exe:${os.detected.classifier}:3.6.1 - protoc did not exit cleanly and Missing: ---------- 1) com.google.protobuf:protoc:exe:${os.detected.classifier}:3.6.1 Google protobuf生成的Java不支持toByteArray - Google protobuf generated Java does not support toByteArray 从命令com.google.analyticsreporting.v4程序包运行的Google Analytics API 4 Java客户端不存在 - Google Analytics API 4 Java client running from command com.google.analyticsreporting.v4 package does not exist Package com.google 不存在 - Package com.google does not exist 软件包com.cedarsoftware不存在! Java的 - Package com.cedarsoftware does not exist! Java java maven 导入问题:错误:com.google.gson 包不存在 - java maven import issue: error: package com.google.gson does not exist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM