You can generate a JSON schema from your IDL with avro-tools:
java -jar avro-tools-1.7.4.jar idl /path/to/idl
Then just compile the schema into Java as usual:
java -jar avro-tools-1.7.4.jar compile schema /path/to/schema .
I don't think there is any way to compile directly to Java from IDL. The avro-tools help menu reveals no such option.