If you make sure that protoc's output directory is in Eclipse's source path,
Eclipse should pick it up. You may have to right-click on the project and
choose "refresh" whenever you regenerate it.
On Fri, Sep 3, 2010 at 2:48 PM, Sean <sean.bigdata...@gmail.com> wrote:
> I have a example.proto which will generate example.java.
> Here is what I want to achieve:
> 1) I want to organize my directory like the following...
> project |
> --/src/*java (all java code I wrote, one of the java file
> needs to "import com.mycompany.proto.example" to achieve its logic)
> --/proto/example.proto (the proto definition file)
> --/lib/*.jar (the dependent third party jar)
> 2) I want to delete the generated file each time when I "ant clean".
> 3) I do not want to manually import example.java each time I launch
> (But eclipse can't resolve "import com.mycompany.proto.example" if
> I do not do so)
> Can someone share any experience?
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at