Java

Is there any way for me to get Java for my X? I go to a few sites that require it and its really annoying. I went to the Java site and it said that it is only available for devices that had it installed from the factory.