1.

Solve : Java for DOS?

Answer»

Bah BC, I've programmed in java for 3 years and you still know more of java than me. =P MEH!

ANYWAYS..
BC is right, java is a Windows program (not only windows, it's cross-platform! However I wonder if it's cross-platform-DOS-compatible.. since DOS is part of a platform.. but a supported one?.. java was first designed for to work on microcontrollers of microwave's/washing machines/etc..). DOS is an old OS. This means it runs in 16-bit unprotected MODE and Windows runs in 32-bit protected mode. They can't 'see' each other. Or something like that. I forgot the details. =P
Anyway DOS was a seperate OS by itself (as it says, Disk Operating System). Windows is a seperate OS by itself.

My suggestion is to run this in Windows or.. I don't know.. emulate it in a VM?... =P

Treval
Quote from: Treval on March 30, 2010, 05:44:31 AM

Bah BC, I've programmed in java for 3 years and you still know more of java than me. =P MEH!



Quote
java was first designed for to work on microcontrollers of microwave's/washing machines/etc..
Actually, by the time it had the name java they were aware that it was going to be deployed as a more general purpose language that ran on a VM; when they actually wanted to run it in coffee machines and other stuff as an "appliance language" or something it was still called "oak".



Well, the only downloads you can find from sun will be for the win32 version of the VM; win32 requires... well, win32. (windows 95 and higher) Of course later versions of the windows VM are SPECIFICALLY written to use NT specific stuff so they don't work on win9x, either.

The "best" windows 3.1 VM available is an ancient IBM release. It's the best available but it is still awful. Since it wasn't defined that you could run a "jar" archive directly until fairly recently you'd need to extract all the class files from it too... which would introduce loads more problems due to 8.3 filenames... and then you have to edit some weird file that tells the java system which 8.3 files map to what long file names. it's horrible.

A DOS implementation of the VM is nearly impossible- best case scenario would SIMPLY be totally awful. the VM itself would need to emulate threads (it did in the win31 version, but it usually crashed)... messy, messy business.

For windows 95, I'm not sure of the version that would work but you're probably looking at JDK 1.0 or 1.1, if you are really really lucky 1.5, or 2.0. but I doubt it. The best VM you can get for windows 95 is probably the Microsoft JVM, problem being that you can't get that anywhere now.

If you have some old software discs, sometimes it came included with it. I know Visual Studio 6 has the MSJVM on it's CD; It's probably the same for any number of other applications, most notably Internet Explorer.

Even so, that's just the VM... getting the SDK itself is another gambit altogether.

I did a google and I found this:

http://java.sun.com/j2se/1.3/install-windows.html

Quote
The Java 2 SDK is intended for use on Microsoft Windows 95, 98 (1st or 2nd edition), NT 4.0 with Service Pack 5, ME, 2000 Professional, 2000 Server, 2000 Advanced Server, or XP operating systems running on Intel hardware.

is says it works on windows 95





[/quote]


Discussion

No Comment Found