Detect Java 9 in buck_tool.py
Detect Java 9 in buck_tool.py

Summary:
Currently, Buck can't run with Java 9 because `-XX:MaxPermSize=256m` is being passed to the JVM.
Changed `is_java8()` to `is_java8_or_9()` in `buck_tool.py` to fix this.
Closes https://github.com/facebook/buck/pull/738

Reviewed By: Coneko

fbshipit-source-id: 8fde07e

daedric/buck,darkforestzero/buck,OkBuilds/buck,zhan-xiong/buck,davido/buck,LegNeato/buck,LegNeato/buck,rmaz/buck,ilya-klyuchnikov/buck,illicitonion/buck,dsyang/buck,darkforestzero/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,grumpyjames/buck,OkBuilds/buck,rmaz/buck,rmaz/buck,daedric/buck,clonetwin26/buck,daedric/buck,zhan-xiong/buck,davido/buck,clonetwin26/buck,clonetwin26/buck,dsyang/buck,romanoid/buck,justinmuller/buck,dsyang/buck,brettwooldridge/buck,darkforestzero/buck,JoelMarcey/buck,grumpyjames/buck,darkforestzero/buck,marcinkwiatkowski/buck,raviagarwal7/buck,justinmuller/buck,grumpyjames/buck,illicitonion/buck,shs96c/buck,vschs007/buck,justinmuller/buck,darkforestzero/buck,robbertvanginkel/buck,brettwooldridge/buck,dsyang/buck,kageiit/buck,clonetwin26/buck,shybovycha/buck,romanoid/buck,davido/buck,raviagarwal7/buck,illicitonion/buck,LegNeato/buck,Addepar/buck,dsyang/buck,nguyentruongtho/buck,Addepar/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,darkforestzero/buck,daedric/buck,shs96c/buck,SeleniumHQ/buck,SeleniumHQ/buck,davido/buck,Addepar/buck,davido/buck,OkBuilds/buck,k21/buck,davido/buck,Addepar/buck,vschs007/buck,darkforestzero/buck,kageiit/buck,zhan-xiong/buck,vschs007/buck,sdwilsh/buck,grumpyjames/buck,Addepar/buck,LegNeato/buck,SeleniumHQ/buck,zpao/buck,rmaz/buck,LegNeato/buck,rmaz/buck,dsyang/buck,JoelMarcey/buck,nguyentruongtho/buck,robbertvanginkel/buck,daedric/buck,facebook/buck,sdwilsh/buck,romanoid/buck,daedric/buck,janicduplessis/buck,sdwilsh/buck,dsyang/buck,daedric/buck,shs96c/buck,daedric/buck,clonetwin26/buck,LegNeato/buck,LegNeato/buck,k21/buck,romanoid/buck,romanoid/buck,romanoid/buck,illicitonion/buck,romanoid/buck,nguyentruongtho/buck,SeleniumHQ/buck,brettwooldridge/buck,rmaz/buck,illicitonion/buck,clonetwin26/buck,brettwooldridge/buck,SeleniumHQ/buck,zpao/buck,k21/buck,facebook/buck,shybovycha/buck,illicitonion/buck,dsyang/buck,justinmuller/buck,daedric/buck,OkBuilds/buck,OkBuilds/buck,nguyentruongtho/buck,romanoid/buck,sdwilsh/buck,raviagarwal7/buck,davido/buck,robbertvanginkel/buck,romanoid/buck,clonetwin26/buck,kageiit/buck,Addepar/buck,darkforestzero/buck,nguyentruongtho/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,raviagarwal7/buck,robbertvanginkel/buck,sdwilsh/buck,kageiit/buck,vschs007/buck,zpao/buck,shybovycha/buck,k21/buck,sdwilsh/buck,shybovycha/buck,robbertvanginkel/buck,illicitonion/buck,ilya-klyuchnikov/buck,zhan-xiong/buck,shs96c/buck,illicitonion/buck,zhan-xiong/buck,darkforestzero/buck,SeleniumHQ/buck,brettwooldridge/buck,OkBuilds/buck,marcinkwiatkowski/buck,zhan-xiong/buck,sdwilsh/buck,LegNeato/buck,sdwilsh/buck,JoelMarcey/buck,facebook/buck,LegNeato/buck,facebook/buck,illicitonion/buck,daedric/buck,grumpyjames/buck,illicitonion/buck,justinmuller/buck,dsyang/buck,daedric/buck,rmaz/buck,zhan-xiong/buck,justinmuller/buck,sdwilsh/buck,JoelMarcey/buck,raviagarwal7/buck,clonetwin26/buck,facebook/buck,grumpyjames/buck,illicitonion/buck,ilya-klyuchnikov/buck,facebook/buck,janicduplessis/buck,raviagarwal7/buck,kageiit/buck,justinmuller/buck,shybovycha/buck,ilya-klyuchnikov/buck,grumpyjames/buck,marcinkwiatkowski/buck,grumpyjames/buck,brettwooldridge/buck,clonetwin26/buck,kageiit/buck,Addepar/buck,justinmuller/buck,grumpyjames/buck,dsyang/buck,zhan-xiong/buck,rmaz/buck,janicduplessis/buck,vschs007/buck,clonetwin26/buck,justinmuller/buck,brettwooldridge/buck,nguyentruongtho/buck,OkBuilds/buck,k21/buck,marcinkwiatkowski/buck,facebook/buck,darkforestzero/buck,shs96c/buck,LegNeato/buck,rmaz/buck,romanoid/buck,grumpyjames/buck,illicitonion/buck,dsyang/buck,zhan-xiong/buck,robbertvanginkel/buck,OkBuilds/buck,brettwooldridge/buck,janicduplessis/buck,brettwooldridge/buck,justinmuller/buck,sdwilsh/buck,janicduplessis/buck,brettwooldridge/buck,shs96c/buck,justinmuller/buck,rmaz/buck,shs96c/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,Addepar/buck,k21/buck,janicduplessis/buck,janicduplessis/buck,shs96c/buck,ilya-klyuchnikov/buck,Addepar/buck,davido/buck,janicduplessis/buck,janicduplessis/buck,rmaz/buck,darkforestzero/buck,shybovycha/buck,raviagarwal7/buck,rmaz/buck,vschs007/buck,zhan-xiong/buck,sdwilsh/buck,OkBuilds/buck,vschs007/buck,dsyang/buck,kageiit/buck,Addepar/buck,LegNeato/buck,JoelMarcey/buck,davido/buck,SeleniumHQ/buck,davido/buck,ilya-klyuchnikov/buck,raviagarwal7/buck,Addepar/buck,shs96c/buck,zhan-xiong/buck,OkBuilds/buck,marcinkwiatkowski/buck,k21/buck,raviagarwal7/buck,darkforestzero/buck,rmaz/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,k21/buck,marcinkwiatkowski/buck,clonetwin26/buck,raviagarwal7/buck,shybovycha/buck,sdwilsh/buck,marcinkwiatkowski/buck,JoelMarcey/buck,vschs007/buck,zpao/buck,nguyentruongtho/buck,vschs007/buck,zpao/buck,romanoid/buck,JoelMarcey/buck,daedric/buck,k21/buck,shs96c/buck,shs96c/buck,grumpyjames/buck,ilya-klyuchnikov/buck,Addepar/buck,k21/buck,janicduplessis/buck,robbertvanginkel/buck,Addepar/buck,vschs007/buck,justinmuller/buck,shs96c/buck,k21/buck,SeleniumHQ/buck,zpao/buck,zhan-xiong/buck,SeleniumHQ/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,OkBuilds/buck,k21/buck,sdwilsh/buck,brettwooldridge/buck,grumpyjames/buck,darkforestzero/buck,shs96c/buck,shybovycha/buck,shybovycha/buck,janicduplessis/buck,SeleniumHQ/buck,vschs007/buck,vschs007/buck,janicduplessis/buck,justinmuller/buck,clonetwin26/buck,JoelMarcey/buck,dsyang/buck,JoelMarcey/buck,robbertvanginkel/buck,romanoid/buck,raviagarwal7/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,zhan-xiong/buck,shybovycha/buck,davido/buck,vschs007/buck,robbertvanginkel/buck,LegNeato/buck,davido/buck,shybovycha/buck,zpao/buck,daedric/buck,davido/buck,k21/buck,clonetwin26/buck,OkBuilds/buck,ilya-klyuchnikov/buck,romanoid/buck,raviagarwal7/buck,JoelMarcey/buck,marcinkwiatkowski/buck,brettwooldridge/buck,OkBuilds/buck,LegNeato/buck,ilya-klyuchnikov/buck,illicitonion/buck,shybovycha/buck,marcinkwiatkowski/buck,marcinkwiatkowski/buck,raviagarwal7/buck,shybovycha/buck,SeleniumHQ/buck,SeleniumHQ/buck