How to compile google-fhir proto files

六眼飞鱼酱① 提交于 2019-12-08 03:21:26

it looks like your command for compilation is not well formatted: --proto_path= This is the path to your proto --java_out= This is the folder where your class will be compiled

Your arguement is: proto/stu3/resources.proto, so I deduce that your files are located in proto/stu3.

Could you try this command and let us know if it worked for you:

protoc --proto_path=proto/stu3/ --java_out=target proto/stu3/resources.proto

If your proto descriptor are complete, you should have no compilation error, and your result should be in the folder "target".

EDIT: looking at your latest edit, I would say that you should move resources.proto into your base directory and run the following command: protoc --proto_path=. --java_out=target resources.proto

As the path to your import is coded in your import. This is a bit difficult to help, as we don't have access to your entire proto descriptor. If you took it from an online repo, it would help if you could share it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!