title: How can I compile an Apache Thrift definition file?
body: <p>I'm trying to compile an Apache Thrift definition file (on Ubuntu). I keep getting the error message: <code>Could not open input file with realpath: Calculator.thrift</code> whenever I enter <code>thrift -r --gen java Calculator.thrift</code> 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?</p>