com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner cannot be resolved to a type

416 views
Skip to first unread message

Mike

unread,
Jul 14, 2009, 5:57:47 PM7/14/09
to Protocol Buffers
I am getting the error

com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner
cannot be resolved to a type

when Eclipse compiles my generated Java code? I wrote a plugin that
generates the protocol buffer messages from the ecore file of an EMF
Model diagram. It creates a new project, puts the .proto files in a
folder and then runs protoc java compiler against the .proto files to
create the java code. The java files are put in another folder of the
same project under a package file. I put the jar file protobuf-
java-2.0.0beta.jar in the Java Build Path libraries of the project I
placed the generated java files in. It removes all errors related to
protocol buffer code except the one I listed. I have searched the
Internet but have not seen this error anywhere? Anyone come across
this before?

Thanks,
Mike

Kenton Varda

unread,
Jul 14, 2009, 8:03:45 PM7/14/09
to Mike, Protocol Buffers
Answered in the other thread -- you need to use matching protoc and protobuf library versions.
Reply all
Reply to author
Forward
0 new messages