Java requires that a file with a given package be in a directory structure
which matches the package. Protoc does try to place it in an appropriate
directory based on the package name.

On Fri, Sep 5, 2025 at 10:04 AM Lars Persson <[email protected]>
wrote:

> Ok, so I am new to protobuf and are trying to read a .pb-file
>
> I used Protoc and have generated the Java-file.
>
> Now what? The files showed up in com/google/transit/realtime.
>
> I get som errors. For one the:
> Package com.google.transit.realtime;
>
> Should the Javafile be where protoc placed it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/protobuf/0ba3ef87-1e5c-4c4d-a43b-41b23c191f5en%40googlegroups.com
> <https://groups.google.com/d/msgid/protobuf/0ba3ef87-1e5c-4c4d-a43b-41b23c191f5en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/protobuf/CAKRmVH97XLPrMFaa1f5RoC3z3RGx1-HW1P11zrzvvGPfXr1G%3DQ%40mail.gmail.com.

Reply via email to