java in codemirror not working

the java mode is not working. can someone tell me how to use correctly the java mode in codemirror?

There’s an example Java editor on this page. You can view source and compare with what you are doing.

can you give another example? i really need it