Answered in the other thread -- you need to use matching protoc and protobuf
library versions.

On Tue, Jul 14, 2009 at 2:57 PM, Mike <> wrote:

> I am getting the error
> 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
> >

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to