Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Java Application - Needs JVM installed on any machine for executing.
.NET Application - Needs .NET Framework installed on any machine for executing except some.

If both needs some type of predefined libraries or environment for execution of their codes. Then how one can say that "Java is platform independent". And if it is correct; then Why .NET cannot be called as platform independent??
Posted

Platform independence means that any program should be able to run on any machine where the framework is implemented. This is arguably the case for the Java platform. It was the subject of the original Sun-Microsoft lawsuit: The Microsoft implementation of Java, where Microsoft introduced a number of features which, although useful on Windows, could not be implemented on other systems. (they were Windows specific). It would have been all-right if MS had introduced these as external libraries, but MS put them in their core distribution, with the net result that programs developed for the Microsoft Java platform might not be able to run on other systems. This little incident pushed Microsoft over the edge, and although they had intended to standardise on Java, they developed the .Net framework.
The .Net framework is not platform independent, insofar that a large number of functions in the libraries can only be implemented on Windows. There is a platform independent specification of .Net[^] for which Microsoft helpfully publishes freely available source code (affectionately known as the ROTOR distribution). Miguel de Icaza[^] used this as base for the MONO distribution (Opinions differ, he says he started with a clean-room approach, but it is highly likely that most of the people in the project had a peek at the ROTOR sources).
To cut a long story short, Java is platform independent, .Net is not, the parts of .Net that microsoft puts in the standard are platform independent, and Mono extends this platform independence, bot not to the whole framework.
 
Share this answer
 
v2
.NET is partially platform independent. To run a .NET applications we need to install .NET Framework, and currently .NET Framework is supported only by windows operating system. Till .NET Framework is not released for other operating systems (linux etc) officially .NET cannot be considered to be fully platform independent.

There is a 3rd party frameworks MONO to run ASP.NET on linux based systems, but that doesn't make .NET Platform independent.
 
Share this answer
 
.NET is designed to be platform independent. However, there needs to be a version of the .NET framework installed on the computer.

A project called Mono has been created a C# .NET Framework for Linux.

A technology called Silverlight need not have .Net installed on the target machine by default. The .Net framework downloads when the web page is opened in a browser.
 
Share this answer
 
But i feel exe are platform independent and must run on computer where .NET Framework is not installed, now why i am saying this because in my college days for final year i made a project (setup) and installed it in a computer where .NET was not previously installed and that project is still working fine. Now if projects made in .NET Environment needs .NET to be installed in your system then i feel theirs a big problem. Also Mr.Gaurav can u please type in like what error message does an application gives if .NET is not installed in a system that would be a big help in my research

Thanks & Regards
Radix
 
Share this answer
 
v2
Comments
Gaurav Dudeja India 13-May-10 1:08am    
No in that system .net framework was installed thats why it run exe, please try it it will not run without .net framework.
radix3 13-May-10 1:15am    
No dear i tried typing devenv at run also i searched for vs2005 but i was unable to find it, that's why i posted this answer
Gaurav Dudeja India 13-May-10 1:48am    
yes thats the point you tried to open visual studio that was not installed, but on that machine dotnet framework is installed now a days which is coming by default in windows xp and you also install it without visual studio.
radix3 13-May-10 9:05am    
all right i was not knowing that Mr.Gaurav Thanks for the data

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900