LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2005, 06:18 AM   #1
NCC-1701&NCC-1701-D
Member
 
Registered: May 2005
Distribution: Debian Woody,Knoppix
Posts: 88

Rep: Reputation: 16
Question Is Java Desktop System really Java?


Hi all,
I use Debian. I know that Java is an interpeted language, I cannot create executables,I must have the Java Virtual Machine. Now, is the Sun linux distro written in Java? But how? If yes, then it should be possible to write an os in Java, but as far as I know, this is impossible! Plz Help!
 
Old 06-12-2005, 06:46 AM   #2
piscikeeper
Member
 
Registered: Jul 2003
Location: Pennsylvania USA
Distribution: SuSE
Posts: 430

Rep: Reputation: 30
no,it's just a name.JDS and JVM are two different products from the same company." Java Desktop System is based on the SuSE Linux Desktop"
http://www.sun.com/software/javadesktopsystem/faq.xml

Last edited by piscikeeper; 06-12-2005 at 06:49 AM.
 
Old 06-12-2005, 08:52 AM   #3
NCC-1701&NCC-1701-D
Member
 
Registered: May 2005
Distribution: Debian Woody,Knoppix
Posts: 88

Original Poster
Rep: Reputation: 16
Thanks!
 
Old 06-12-2005, 09:30 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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
Code:
java Command.java
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.

Last edited by jlliagre; 06-12-2005 at 09:33 AM.
 
Old 06-19-2005, 01:21 PM   #5
Burgin
Member
 
Registered: Apr 2004
Posts: 54

Rep: Reputation: 15
Actually there is a project called jnode, http://www.jnode.org/, "a simple to use & install Java operating system". I don't know if it is same thing that jlliagre was speaking of.
 
Old 06-19-2005, 02:44 PM   #6
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally posted by jlliagre
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.
Even this is partially wrong, as nowadays "gcj" is in existance, which compiles java-sources as well as java-bytecode to native executables (no GUI support iirc).

As a (imho) nice pun they call it "ahead-of-time Java compiler".
See the GCJ website.
 
Old 06-19-2005, 02:52 PM   #7
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
>This is partially wrong, java is a compiled language, as javac command name suggests.

well, but when you say
Code:
java ClassName
still java is an interpreter!
 
Old 06-19-2005, 03:55 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
java is indeed an interpreter, but it doesn't interpret Java code but JVM bytecode, you can compile several languages in JVM bytecode, including java, which is so still a compiled language.
Nowadays, java (i.e. the JVM) is converting on the fly bytecode to native code, so even this "interpreted language" claim is fading, and is usually faster than gcj generated code anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is it called sun JAVA desktop system? sh1ft JDS 35 03-05-2005 02:39 AM
Sun Java Desktop System, Release 2 vs. solaris 10 igracgq Solaris / OpenSolaris 3 12-16-2004 02:33 PM
Firefox Available for Linux Java Desktop System tadelste JDS 0 11-14-2004 02:27 PM
Setup a VPN server on a Sun Java desktop system. hollor Linux - Newbie 1 06-14-2004 09:26 AM
Java Desktop System gSalsero Linux - Distributions 3 01-14-2004 01:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration