JavaScript and Java are completely different languages.

http://stackoverflow.com/questions/2...cript-and-java