Ubuntu 16.04.4 USING AMD R5 2400G, running java 1.6, whole pc stuck, unrespossible anymore

i buy r5 2400G, and what to intstalll jdk 1.6 to build android 4.4, however, once call java -version, the pc stuck, the hard reset to make it normal again.

any suggestion here?

=======================================
update 2018-5-3:
update to the lateset bios everything is ok.
TUF 350M PLUS

I’ve moved this to the https://community.ubuntu.com/c/support-help-requests category because this site isn’t designed to take tech support questions. Sorry. I’d recommend using one of the official support channels listed on the https://community.ubuntu.com/t/finding-help/712 page.