Java was developed at Sun Microsystems.
While the two languages share some common syntax, they were developed independently of each other and for different audiences.
Java is a full-fledged programming language tailored for network computing; it includes hundreds of its own objects, including objects for creating user interfaces that appear in Java applets (in Web browsers) or standalone Java applications.
A licensing deal between Netscape and Sun at the last minute let Netscape plug the "Java" name into the name of its scripting language.
The two languages don't rely on each other and are intended for different purposes.