Java was never going to replace JS in a practical way because of security and the Java JIT taking forever to load and warm up.