Will java work on windows 8?

Yes. Java supports Windows 8 (including previous versions Windows).