The title pretty much explains it. If JavaScript is not derived from Java, why does it have "Java" in the name?
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."
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.
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++.
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.
We were obsessed with naming things after coffee in the 90's.
I know... what were we thinking?!