Hi,
I can suggest a way for converting the Java class into EXE if it can run on
JDK 1. Use the java developemt kit available from www.microsoft.com. It has
a tool called JExeGen which will do it.
Hardeep Singh
http://SeeingWithC.cjb.net
----- Original Message -----
From: "Hamid" <[EMAIL PROTECTED]>
Subject: Re: How to install a service on a NT server?
> Hi,
> As u r going in NT's native mode, so u must have an .exe file to register
as
> service.
> then u have to put the API's required to register exe as service in thy
exe
> file.
> then after executing ur exe it will register ur comands as service.
>
>
> Hamid Hassan
> software Engineer
> visualsoft
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Yang
> Subject: How to install a service on a NT server?
>
>
> Hi all:
> I have a Java application named MyApplication. I need to run it on a NT
> server. I can type the command:
>
> java MyApplication
>
> But I want to install it as a service so that the application will be
> started automatically each time the machine is booted up and the
application
> can survive logging off. Putting that short-cut of the command in the
> StartUp menu is not what I want because the application window still shows
> up in the task bar and will be killed if the current user logs off.
> Installing it as a service will meet all my requirements. But I don't know
> how to do that. Can anybody please help? I've tried the following methods
> but didn't succeed:
>
> 1) I found a utility called SRVANY.EXE which, according to the
instruction,
> will launch the application as a service. But after I have copied the
> SRVANY.EXE to my NT box, I can't run it because I got an "Internal error"
> message when I run it.
>
> 2) I used the INSTSRV utility to install a command file (a batch file
> containing the command "java MyApplication") to start my java application.
> It seems the batch file can't be used. I probably should have used a .exe
> file. But I don't have a utility to convert my batch file to an .exe file.
I
> found one utility named batch2exe, but that only converts the batch file
to
> a .com file and that .com file doesn't work on the NT (it only works on
> Window 98). Besides, I don't even know whether the .exe file will solve
the
> problem.
>
> I've asked several people around but to my disappointment, there's no such
> expertise here. I've run out of resource. I know this question may be off
> the topic to this news group, but I really don't know where else to seek
for
> help. Hopefully, someone who has the expertise can drop me a line and help
> me. Thank you all very much in advance!
>
> Tom
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets