Welcome to Dream.In.Code
Become a Java Expert!

Join 149,530 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,512 people online right now. Registration is fast and FREE... Join Now!




How to have msdos as output

 
Reply to this topicStart new topic

How to have msdos as output

bengt23648
8 Jul, 2007 - 03:57 AM
Post #1

New D.I.C Head
*

Joined: 30 Jun, 2007
Posts: 37


My Contributions
hi.. i'm using JCreator Pro 4.00 and i want my output to be in the black window thing (im not sure if its called msdos) just like in tc++...

can you help me with this?
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: How To Have Msdos As Output
8 Jul, 2007 - 05:16 AM
Post #2

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,010



Thanked: 7 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
Hi, by using the System.out.println(); function you can have what you want
the simple Hello world or Hello bengt23648 program will demonstrate it
CODE

public class Something
{
       public static void main(String [] args)
       {
                  System.out.println("Hello bengt23648");
       }
}

Compile it and run it.
User is offlineProfile CardPM
+Quote Post

bengt23648
RE: How To Have Msdos As Output
8 Jul, 2007 - 05:48 AM
Post #3

New D.I.C Head
*

Joined: 30 Jun, 2007
Posts: 37


My Contributions
QUOTE(PennyBoki @ 8 Jul, 2007 - 06:16 AM) *

Hi, by using the System.out.println(); function you can have what you want
the simple Hello world or Hello bengt23648 program will demonstrate it
CODE

public class Something
{
       public static void main(String [] args)
       {
                  System.out.println("Hello bengt23648");
       }
}

Compile it and run it.


hmm.. what i mean is that umm..

when i run my program in jcreator pro, it just shows the output on the bottom part on the window (on a white rectangle thing attached under the window..).. i just have no idea how to show my output on a command prompt thing (the color black window)...

that's what i meant...

but as what you've said, when i run the code you gave me, it just shows the printed message on the white thing i said earlier.. hmm.. i just want to have it in the black command prompt window coz at my university computer laboratory, i'm used to have my output on the black thingy...
thanks anyways... tongue.gif



User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: How To Have Msdos As Output
8 Jul, 2007 - 06:32 AM
Post #4

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,010



Thanked: 7 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
Well biggrin.gif then I guess it's the version of the JCreator that doesn't allow the output to be printed in the dos screen, try to look around the options if you can change something there, I apologize for the misunderstanding smile.gif

This post has been edited by PennyBoki: 8 Jul, 2007 - 06:32 AM
User is offlineProfile CardPM
+Quote Post

dragon-slayer
RE: How To Have Msdos As Output
8 Jul, 2007 - 01:53 PM
Post #5

D.I.C Head
Group Icon

Joined: 6 May, 2007
Posts: 69


Dream Kudos: 100
My Contributions
you would have to run the file using the java command, So just cd to the directory where .class file is then just do java filename.
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: How To Have Msdos As Output
8 Jul, 2007 - 05:44 PM
Post #6

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
jcreator has this feature built in now, to use the console instead, change the following:
configure -> options
select jdk tools
in the drop down list choose "run application"
click the "<Default>" in the list
and click the Edit button
in the new dialog box, uncheck the box which reads "Capture Output"

Now the output will open a console (DOS) window instead of being displayed in the program itself.
User is offlineProfile CardPM
+Quote Post

bengt23648
RE: How To Have Msdos As Output
9 Jul, 2007 - 02:17 AM
Post #7

New D.I.C Head
*

Joined: 30 Jun, 2007
Posts: 37


My Contributions
QUOTE(William_Wilson @ 8 Jul, 2007 - 06:44 PM) *

jcreator has this feature built in now, to use the console instead, change the following:
configure -> options
select jdk tools
in the drop down list choose "run application"
click the "<Default>" in the list
and click the Edit button
in the new dialog box, uncheck the box which reads "Capture Output"

Now the output will open a console (DOS) window instead of being displayed in the program itself.



thanks a lot.. it worked...

tongue.gif

icon_up.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 08:57PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month