I’m trying to compile an Apache Thrift definition file (on Ubuntu). I keep getting the error message: Could not open input file with realpath: Calculator.thrift whenever I enter thrift -r --gen java Calculator.thrift into the command line. I have already installed Thrift. Where should I save .thrift definition files so that it will be possible to compile them?
I’m trying to compile an Apache Thrift definition file (on Ubuntu). I keep getting
Share
In the tutorial directory that comes with the thrift installation, you should see the following 2
*.thriftfiles:From this same directory you should be able to generate/compile from the thrift IDL files as follows:
This should create a
gen-javasub-directory in the tutorial directory.The
Calculator.thriftfile does not actually exist, the Calculator service is defined intutorial.thrift. The error is trying to tell you that it cant find the file, and rightly so, since it doesnt actually exist 🙂