Earlier quoted context omitted.
When JavaScript was created, Java was a trademark of Sun Microsystems. Then Oracle acquired Sun, and with it, the trademark to Java. And then this crap started. That was the moment to drop "Java" from the name, everyone knows exactly why.
The issue is not with the "Java" trademark (also owned by Oracle), but the "JavaScript" trademark, which was issued to Sun in 1997. JavaScript was released in 1996... and not at Sun. i.e the Language and name both pre-date the trademark.
By the way, when I filed my first trademark application, Sun Microsystems filed an opposition. What a coincidence! This was before Oracle acquired them.