Reputation: 3
I tried installing protoc on windows without maven (I can't download maven due to org firewall issues).
I have my protoc.exe
in the ..\src
(not in java\src
as many do) folder as mentioned in the readme.
When I give protoc --version
in the command prompt, I get libprotoc 2.6.0
. That's fine.
But when I give protoc --java_out=src/main/java -I../src/google/protobuf/descriptor.proto
, I get missing input file
all the time & I can't proceed further.
I have tried giving the entire path where my descriptor.proto
lies, tried changing -I
to -IPATH
, tried using --proto_path
but I still get the same Missing input file
error.
Can someone help me out on this?
Upvotes: 0
Views: 1790
Reputation: 45151
The command you want (from the Protobuf-Java readme) is:
protoc --java_out=src/main/java -I../src ../src/google/protobuf/descriptor.proto
Notice that the -I
flag and the descriptor.proto
argument are two different arguments. It looks like you accidentally merged them into one.
Upvotes: 2