Java is a programming language, while .NET is a framework. Java Virtual Machine, Java Runtime Environment and Java Development Kit comprise the Java architecture. .NET is a framework which is implemented to develop software apps with the help of different languages.
The .NET architecture includes language, framework class library and common language runtime. The Java ecosystem actively relies on many open source projects.