Quote:
I know that Java is an interpeted language, I cannot create executables,I must have the Java Virtual Machine.
|
This is partially wrong, java is a compiled language, as javac command name suggests.
It is however true that it doesn't compiles into Linux, Solaris or Windows executables, but in binary files, executable only by a virtual machine, the JVM.
If java had been really an interpreted language, then the way to launch an application would have been something like
which is obviously not the case, java is expecting a class, not source code.
Quote:
Now, is the Sun linux distro written in Java? But how?
|
JDS is a graphic environment that is not tied to Linux.
It is based on gnome, with the addition of several Sun customizations and specific products and developments. It includes Sun Java environment, one of the reasons for its name I presume.
JDS 1 was indeed released on top of Suse Linux, as piscikeeper said, but this linux distro wasn't really part of it. For example there is a JDS 1 live demo CD based on knoppix, which itself has its roots on debian.
Later JDS releases were made available on top of Solaris, and it is in fact now the default Solaris 10 graphic environment, confirming JDS is not Sun Linux distro, but (one of) Sun's graphic middleware(s).
Quote:
If yes, then it should be possible to write an os in Java, but as far as I know, this is impossible! Plz Help
|
It is not impossible, making the virtual machine real is "just" what is needed.
Chips like ultraJava and picoJava certainly did used to make that happen, but no implementation was ever made available to the public, as far as I know.
Alternatively, there used to be also a project to have an O/S with many parts written in Java, JavaOS, but still with parts of it written in a lower lever language (presumabily C and assembler) to be able to run on non java bytecode aware CPUs.
The current java direction is not following these ways, Java 5 optimizations demonstrates there is no need for a dedicated CPU architecture or dedicated O/S to reach high performance with Java.