get java download and installed in your system
javascript and Java are two different programs, Java won't help if your computer won't run a javascript. Javascript is used to create program pieces that can be used inside various different languages (including Ren'py, Java, C## and others). If a javascipt isn't running it isn't because you don't have Java installed. From the Mozilla site:
"
JavaScript (
JS) is a lightweight, interpreted, or
You must be registered to see the links
compiled programming language with
You must be registered to see the links
. While it is most well-known as the scripting language for Web pages,
You must be registered to see the links
also use it, such as
You must be registered to see the links
,
You must be registered to see the links
and
You must be registered to see the links
. JavaScript is a
You must be registered to see the links
, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles. "
From Oracle (the owners/developers of Java):
"Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services. With millions of developers running more than 51 billion Java Virtual Machines worldwide, Java continues to be the development platform of choice for enterprises and developers."
Java is a completely separate computer language from JavaScript. If a .js file is not running then then you may have a corrupted version of the game, you may want to try the non-compressed version to see if it behaves.
The extension for Java programs is .jar, FYI