Skip to main content

[JAVAHELP] jhindexer exits command shell

2 replies [Last post]
Anonymous

Hello,

I call jhindexer from a Windows (XP) batch file and after that I want to open the helpset. My current folder is the folder with all HTML files and I use the command

"%JAVAHELP_HOME%\javahelp\bin\jhindexer" -locale de -verbose *.html

This works beautifully, but any following lines in the batch file are not executed, in fact the command shell closes immediately after jhindexer has finished.

Are there any command line switches or "tricks" to prevent this behaviour?

- Michael
--
_____________________________________________________________
Dipl.-Ing. Michael M�ller-Hillebrand

"Mehr Effizienz f�r Wissensarbeiter" --> http://cap-studio.de

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris Morris

Try adding a 'pause' to the end of your batch file.

"%JAVAHELP_HOME%\javahelp\bin\jhindexer" -locale de -verbose *.html
pause

This will allow you to control when the command prompt closes.

====================================================
Chris Morris
Technical Author
SAA Consultants Ltd
http://www.saaconsultants.com
http://www.reims.net
====================================================

Michael
M�ller-Hillebrand To: JAVAHELP-INTEREST@JAVA.SUN.COM
cc:
Sent by: Discussion Subject: [JAVAHELP] jhindexer exits command shell
list of JavaHelp
A.SUN.COM>

18/09/2003 10:33
Please respond to
Discussion list of
JavaHelp

Hello,

I call jhindexer from a Windows (XP) batch file and after that I want to
open the helpset. My current folder is the folder with all HTML files and I
use the command

"%JAVAHELP_HOME%\javahelp\bin\jhindexer" -locale de -verbose *.html

This works beautifully, but any following lines in the batch file are not
executed, in fact the command shell closes immediately after jhindexer has
finished.

Are there any command line switches or "tricks" to prevent this behaviour?

- Michael
--
_____________________________________________________________
Dipl.-Ing. Michael M�ller-Hillebrand

"Mehr Effizienz f�r Wissensarbeiter" --> http://cap-studio.de

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Michael M�ller-Hillebrand

On 18.09.2003 (12:09 Uhr +0100), Chris Morris wrote:

>Try adding a 'pause' to the end of your batch file.
>
> "%JAVAHELP_HOME%\javahelp\bin\jhindexer" -locale de -verbose *.html
> pause
>
> This will allow you to control when the command prompt closes.

Thank you Chris,

This is exactly what I have, but the batch file never reaches any commands below the jhindexer line.

- Michael
--
_____________________________________________________________
Dipl.-Ing. Michael M�ller-Hillebrand
������������������������������������
"Mehr Effizienz f�r Wissensarbeiter" --> http://cap-studio.de

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.