"I would like to know whether is java too slow running on old hardware..."

That depends on what you mean by "too slow". Also, Java is just the programming language and the Java runtime environment. Whether a program written in Java is slow or not depends for a great deal on that particular program, and not on the fact that it's a Java program.