If you want to get into technical IT Security you should get a solid basis in all different subjects, programing, networking and system administration. Motivation to learn, often rather boring and complex subjects, is important. Only by understanding how something works, you can find out if it works securely or not.
Python and Ruby are as relevant as Java,C,LISP or even COBOL. Every single programing language is just a tool used to achieve your goal: perform a security assessment in an automated way. Python and Ruby are often used to write scripts, but this is not only relevant to IT Security, but just in general for the IT community.
Java is used less than Python and Ruby to create scripts, but it's definetely relevant to IT Security when it comes to, for instance, client side exploitation. You must also remember that these days a lot of application are being written in Java. Part of IT Security is to assess existing applications by looking at its source code. Having a solid basis in Java is imperative if you want to assess Java applications.