Thread View: news.software.readers
2 messages
2 total messages
Started by Teo Han Hui Eugene
Thu, 17 Jul 1997 00:00
Re: How to write dosshell with Java Programming
Author: Teo Han Hui Eugene
Date: Thu, 17 Jul 1997 00:00
Date: Thu, 17 Jul 1997 00:00
26 lines
1239 bytes
1239 bytes
Harlow there! Readers, i have a Java question which kept bugging me for so long. Since Java is developed by SUN, would they support the use of command.com to load a dos prompt? Meaning (Straight to the point): How to shell to DOS or UNIX or Window 95 or X Windows? i know in C, it's to run Command.com. But in Java, i'm in Unix o/s, how am i going to that? Please help. Thanks! CiAo! Yours Eugene Teo H. H. E-mail: eugeneteo@post1.com Homepage: http://www.angelfire.com/me/eugeneteo * Demo * http://www.post1.com/~eugeneteo * Soooon * * Keep trying. It's only the valley that the mountains seem high. *
Re: How to write dosshell with Java Programming
Author: Greg Wooledge
Date: Sat, 19 Jul 1997 00:00
Date: Sat, 19 Jul 1997 00:00
24 lines
1651 bytes
1651 bytes
On Thu, 17 Jul 1997 14:41:54 +0800, Teo Han Hui Eugene <s7606254@mercury.np.ac.sg> wrote: > How to shell to DOS or UNIX or Window 95 or X Windows? > i know in C, it's to run Command.com. Please don't. Use the system() function that ANSI went to all that trouble to include in the stanard. If you want to run an actual interactive shell, then read the SHELL environment variable (with getenv()) -- don't hard-code the shell's name. > But in Java, i'm in Unix o/s, how am i going to that? There's probably no newsreader written in Java (I don't know of any, at least), so your choice of newsgroup is way off base. If there's no system() function, or something like that, then either (a) read the Java documentation, or (b) ask in one of the comp.lang.java.* newsgroups. -- ------------ Greg Wooledge ------------- ------- wooledge@kellnet.com ------- --- http://kellnet.com/wooledge/main.html ---
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads