How to use Java in codemirror?

Please don’t post two topics with the same question (java in codemirror not working).