Are you talking about JavaScript or Java?
These are two completely different unrelated programming languages which have nothing at all whatsoever to do with each other apart from a confusing pair of names (except, of course, that, like any other languages, programs written in one can talk to programs written in the other).
If you have JavaScript disabled, for example, then no amount of fiddling with your Java installations is going to make a blind bit of difference.