PDA

Click to See Complete Forum and Search --> : Java in DOS


Stephenb
Aug 29th, 2002, 01:00 PM
My background in Java is limited. But what all do I need on a dos box to ensure that it a Java application will run? I'm not needing swing or AWT, just text only output.
(Dos 6.22 is the target OS)

Thanks for any help you can offer. :)

billrogers
Aug 29th, 2002, 02:44 PM
Java console apps run fine in DOS Stephen you shouldn't have any problems.

Stephenb
Aug 29th, 2002, 03:05 PM
Do I need a specfic run time for DOS? Windows will not be installed on this machine.

billrogers
Aug 29th, 2002, 03:13 PM
Hmm, sorry missed the target OS part, makes the question a little more interesting. I haven't tried running an app on just a DOS box. I don't forsee having a problem, but since I haven't done it, you can take that for what its worth. Let me check with a couple people and some other resources quick.

billrogers
Aug 29th, 2002, 03:16 PM
Sorry if you are using Java 2, the supported platforms are as follows, directly from Sun:

Sun provides ports of the Java 2 Platform for Windows 95, Windows 98, Windows NT, Windows 2000, Solaris-SPARC, Solaris-Intel, and Linux.

here are some sites that lists some information about supported platforms and companies offering ports of the jdk...
http://java.sun.com/products/jdk/faq.html#A2
http://java.sun.com/cgi-bin/java-ports.cgi

billrogers
Aug 29th, 2002, 03:19 PM
Is there a reason the box needs to be a DOS box?

Stephenb
Aug 29th, 2002, 03:43 PM
Thanks for your help, bill.
:) Its how the issue is handed to me. I have a VB app that does the function that is desired, but they want it on a DOS box. Thus my delima. :D (no windows, no vb runtime)

So I thought I could create the same app in Java, but I was running into the same thing you found. No Java for Dos listed on Sun's site.

I'll check out those other sites and cross my fingers.
Or perhaps I'll turn the tables and suggest that they put up a Linux box. (That will make them pause. ;) )

Again, thanks for your help.

billrogers = :cool:

billrogers
Aug 29th, 2002, 03:53 PM
LOL, yeah putting up a linux box will definately give them pause. Tell them DOS is outdated and not supported anymore, keep with windows and stick with the vb app if speed isn't important. But if it was I wouldn't suggest using Java. :) Glad to be of help, if you do find out something that lets DOS be a target OS let me know, the more ya know the better. :)

Stephenb
Aug 29th, 2002, 04:08 PM
Will do, Bill.
Thanks again!
:D

Mrs Kensington
Aug 30th, 2002, 06:05 AM
using the wonder that is google i found this...

http://www.openje.org/kaffepc/

on there site it says..
What's KaffePC?
KaffePC is JVM that running on DOS.

Thinks thats pretty much what you needed...

**EDIT**
Only problem is its in beta and hasn't been updated since april 1999, oh and its JDK 1.1

Apart from that its java in dos :)

Stephenb
Aug 30th, 2002, 09:30 AM
Hey! Thanks Mrs Kensington. This may be just what I need.
I'll let you you guys know how it goes.

Thank again! :D

and..
Mrs Kensington = :cool: