Login Page - Create Account

Support Board


Date/Time: Tue, 13 May 2025 08:47:52 +0000



Post From: Failure when compiling google protoc-buffer

[2017-10-12 15:30:38]
User178540 - Posts: 15
Hello,

I am trying to complie the google protoc buffer for JAVA using MAVEN (in order to genrate JAVA class from the .proto file):

I have downloaded version 3.4.0, and also the protoc.exe file with version 3.4.0.
both mvn test & mvn install ends with several failures,

Thanks!
------------------------------------------------------------------------

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[33,34] cannot find symbol
symbol: class UnittestLite
location: package com.google.protobuf
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[33,1] static import only from classes and interfaces
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[34,34] cannot find symbol
symbol: class UnittestLite
location: package com.google.protobuf
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[34,1] static import only from classes and interfaces
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[35,34] cannot find symbol
symbol: class UnittestLite
location: package com.google.protobuf
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[35,1] static import only from classes and interfaces
[ERROR] /C:/work/proto/3.4.0/protobuf-3.4.0/java/core/src/test/java/com/google/protobuf/TestUtil.java:[36,34] cannot find symbol
symbol: class UnittestLite

----------------------------------------------------------------
Date Time Of Last Edit: 2017-10-12 15:32:52