views:

275

answers:

5

The title pretty much explains it. If JavaScript is not derived from Java, why does it have "Java" in the name?

+5  A: 

Java is to Javascript what Car is to Carpet.

"The language's name is the result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with their then-dominant browser."

- http://en.wikipedia.org/wiki/JavaScript#History

Jonathan Sampson
I doubt you'll get the same results as Greg with this :-) http://stackoverflow.com/questions/245062/whats-the-difference-between-javascript-and-java
Vinko Vrsalovic
We must read the same books :)
Jonathan Sampson
Sorry but I'm tired of hearing that platitude every time this issue comes up.
cletus
You're too well-read, Cletus ;) But in all fairness, the OP likely has not heard it, and as such will benefit in a way that you won't from it.
Jonathan Sampson
+1 To that point, I am well versed in JavaScript and had never heard that comparison before.
Doug Neiner
@Vinko Vrsalovic: Greg read it from here : http://stackoverflow.com/questions/58640/great-programming-quotes/58693#58693
Michel Kogan
+1  A: 

It was a marketing ploy cooked up by Netscape since Java was the big buzz word at the time. Originally it was called LiveScript. Which was probably a better name in hindsight.

Darrell Brogdon
+1: it was a marketing ploy.
codaddict
+7  A: 

It was originally called Mocha, renamed to LiveScript, and then renamed to JavaScript. JavaScript itself is a trademark of Sun Microsystems -- the official standard is just called ECMAScript.

Further confusing the matter, Microsoft has decided to call their version JScript. JScript is not at all related to J++, a Microsoft-implemented Java whose name undoubtedly is designed to cause confusion with C++.

Michael Greene
+7  A: 

From an interview made to its creator Brendan Eich:

InfoWorld: As I understand it, JavaScript started out as Mocha, then became LiveScript and then became JavaScript when Netscape and Sun got together. But it actually has nothing to do with Java or not much to do with it, correct?

Eich: That’s right. It was all within six months from May till December (1995) that it was Mocha and then LiveScript. And then in early December, Netscape and Sun did a license agreement and it became JavaScript. And the idea was to make it a complementary scripting language to go with Java, with the compiled language.

CMS
A: 

We were obsessed with naming things after coffee in the 90's.

I know... what were we thinking?!

Joseph Silvashy
Except Starbucks. Ironically.
Darrell Brogdon