[GeoNetwork-users] use "javaw" not "java" to kill the boring dos window on Windows.

hi, all:
When I start Geonetwork and the csw client by d-clicking the bat files on Windows, two dos windows open up . These dos windows are boring
, and change the command "java" to "start javaw" can fix the problem.
"java" runs jar through a Java console, while javaw does not.
The console is there mostly for text programs,However a java console slows the program down some -
since it's constantly listening to your program for things to output.
for using, we need speed, i suggest javaw. whle debugging, java console is better.
the method for changing is below:
start-geonetwork.bat:
change the line:
java -Xms48m -Xmx512m -DSTOP.PORT=8079 -jar start.jar ..\bin\jetty.xml
to:
start javaw -Xms48m -Xmx512m -DSTOP.PORT=8079 -jar start.jar ..\bin\jetty.xml
Same to cswClient.bat, the dos window will disappear.

                                                                  zha zhuhua

      ___________________________________________________________
雅虎邮箱传递新年祝福,个性贺卡送亲朋!
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline

Hi Zha,
Thanks! Nice suggestion! What about stopping the service? Do we use stop javaw too?
Ciao,
Jeroen

On Feb 20, 2008, at 4:28 AM, zhuhua zha wrote:

hi, all:
When I start Geonetwork and the csw client by d-clicking the bat files on Windows, two dos windows open up . These dos windows are boring
, and change the command "java" to "start javaw" can fix the problem.
"java" runs jar through a Java console, while javaw does not.
The console is there mostly for text programs,However a java console slows the program down some -
since it's constantly listening to your program for things to output.
for using, we need speed, i suggest javaw. whle debugging, java console is better.
the method for changing is below:
start-geonetwork.bat:
change the line:
java -Xms48m -Xmx512m -DSTOP.PORT=8079 -jar start.jar ..\bin\jetty.xml
to:
start javaw -Xms48m -Xmx512m -DSTOP.PORT=8079 -jar start.jar ..\bin\jetty.xml
Same to cswClient.bat, the dos window will disappear.

                                                                 zha zhuhua

     ___________________________________________________________
雅虎邮箱传递新年祝福,个性贺卡送亲朋!
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net