This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java In General Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java In General" Watch "Java In General" New topic
Author

Java In General

Rahul Chandran
Greenhorn

Joined: Oct 14, 2010
Posts: 18
Hi,
In which language is the JVM coded.?
Is Java really a platform Independent Language..?
Does it work on Disk Operating System(DOS).?
How to install JVM in Disk Operating System(DOS).?



Regards,
Rahul Chandran.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Rahul Chandran wrote:Hi,
In which language is the JVM coded.?

I don't think that this is specified.


Is Java really a platform Independent Language..?

This is not entirely true as far as I know, but (again, as far as I know), it's as close as it gets.


Does it work on Disk Operating System(DOS).?
How to install JVM in Disk Operating System(DOS).?

You mean MS-DOS, independent of Windows? Is this still around? Is it still supported?
Rahul Chandran
Greenhorn

Joined: Oct 14, 2010
Posts: 18
pete stein :
This is not entirely true as far as I know, but (again, as far as I know), it's as close as it gets.


Can You Tell Me The Reason Please..?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Is Java really a platform Independent Language?


luck, db
There are no new questions, but there may be new answers.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14337
    
  22

Rahul Chandran wrote:In which language is the JVM coded.?

Sun's (now Oracle's) JVM is written in C (or maybe C++) and Java. But Oracle's JVM is not the only one - other companies, for example IBM and HP, have their own JVM implementations (optimized for their servers). The code for those implementations is not open source, so nobody outside those companies really knows in what language they are written, but it's probably C or C++, since those languages are used almost everywhere for system software.
Rahul Chandran wrote:Is Java really a platform Independent Language..?

It was designed to not be dependent on platform-specific features, but you can write platform-specific Java programs (i.e., Java programs that will only work on for example Windows).
Rahul Chandran wrote:Does it work on Disk Operating System(DOS).?
How to install JVM in Disk Operating System(DOS).?

Oracle's standard JVM will not work on MS-DOS. Do you really have a computer that runs only on MS-DOS?

I found this, but this is just a kind of fun project and this is not what you want to use if you're serious about learning Java: "leDos is a tiny Java virtual machine and a set of development tools intended to allow you to develop and run Java applications on a MS-DOS system with 8088 and at least 128 KB of RAM".

You can find a list of what operating systems are supported by the standard version of Java here: Java SE 6 - Supported System Configurations.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
You can find a list of what operating systems are supported by the standard version of Java here: Java SE 6 - Supported System Configurations.

"Standard" in this context meaning "released by Oracle". #6 in the JavaBeginnersFaq lists some implementations of Java (or Java-ish software) by other vendors/entities.
Rahul Chandran
Greenhorn

Joined: Oct 14, 2010
Posts: 18
Jesper Young wrote :
It was designed to not be dependent on platform-specific features, but you can write platform-specific Java programs (i.e., Java programs that will only work on for example Windows).

can you tell more about that...!! please..!
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11471
    
  16

if you use something like Runtime.exec() to call the Notepad.exe, that clearly wont' work on a Unix box.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2510
    
  10

Rahul Chandran wrote:
Jesper Young wrote :
It was designed to not be dependent on platform-specific features, but you can write platform-specific Java programs (i.e., Java programs that will only work on for example Windows).

can you tell more about that...!! please..!
Some examples:
Code that calls Windows native APIs via the JNI Java API.
Applications that hardcode some platform dependencies, like using a backslash as separator, in stead of using Java's built-in mechanism to retrieve the proper separator.


OCUP UML fundamental and ITIL foundation
youtube channel
Kurt Van Etten
Ranch Hand

Joined: Sep 07, 2010
Posts: 98
I can vaguely remember back in the early days of Java, that Netscape announced a plan to create a JVM that would run on 16-bit DOS machines in conjunction with Netscape running under Windows 3. They thought that supporting all that legacy hardware would give them a competitive advantage, but they totally miscalculated how quickly the hardware was changing. I'm not sure if that blunder was more a symptom or one of causes of Netscape's downfall.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java In General