Howdy folks, Is there anyway to clear the console that will work on any platform? thanks, dave
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Well, you can println() about 30 time :roll: . I know - lousy solution. - but it IS platform independant .
"JavaRanch, where the deer and the Certified play" - David O'Meara
expired user
Greenhorn
Joined: Dec 13, 2001
Posts: 11
posted
0
Why don't try JAVAW instead of println() 30 times?
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Because that would GET RID OF the console (well, sort of - the user could close the console) - not clear it so you get a clean display of the console.
Thomas Smets
Ranch Hand
Joined: Dec 11, 2001
Posts: 111
posted
0
When even on MS-environment you can use the Unix commands with cygwin. You will still have many little assless like some shells do keep listen to the console, hence you program would need to : java Main > /dev/null </dev/null & Another option is to start a little program that will do the Runtime.exec(MyCommandLine); ! The first program is started under javaw while the second receives the plateform specific options accordingly ! Have you given a look at ANT ? Thomas, (I personnaly like System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");) [ April 15, 2002: Message edited by: Thomas SMETS ]
Thomas Smets
Just another developper
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.