Win10环境安装Protobuf2.5.0

安装包下载

下载地址:https://github.com/protocolbuffers/protobuf/releases/tag/v2.5.0

  1.    protobuf-2.5.0.tar.gz 
  2.    protoc-2.5.0-win32.zip

安装

1.解压protobuf-2.5.0.tar.gz 和 protoc-2.5.0-win32.zip
2.将protoc-2.5.0-win32中的protoc.exe拷贝到c:\windows\system32中
3.将protoc.exe文件拷贝到解压后的protobuf-2.5.0\src目录中
4.进入protobuf-2.5.0\java 目录
5.执行【mvn package】命令编辑该包 生成protobuf-java-2.5.0.jar文件(位于target目录中)

F:\devTools\BigData\protobuf-2.5.0\java>mvn package
...
[INFO] Results:
[INFO]
[INFO] Tests run: 429, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-bundle-plugin:4.2.1:bundle (default-bundle) @ protobuf-java ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:27 min
[INFO] Finished at: 2019-09-06T12:28:05+08:00
[INFO] Final Memory: 37M/628M
[INFO] ------------------------------------------------------------------------
F:\devTools\BigData\protobuf-2.5.0\java>protoc --version        --检查是否安装成功
libprotoc 2.5.0

 

你可能感兴趣的:(大数据)