| Author |
Urgent! Java as Windows Service
|
Karthik Veeramani
Ranch Hand
Joined: Dec 22, 2002
Posts: 132
|
|
|
I need to convert a Java application to W2k Service. Where can I download Microsoft SDK for Java (I googled it but most of the links were broken). Please let me know asap.
|
Thanks<br />Karthik<br />SCJP 1.4, CCNA.<br /> <br />"Success is relative. More the success, more the relatives."
|
 |
Vasudha Komaravolu
Greenhorn
Joined: Jul 02, 2003
Posts: 1
|
|
We can create Java Application Application as an NT service using instsrv.exe and srvany.exe Steps to do so 1. instsrv SampleService srvany.exe 2. Create parameters with regedt32 under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parameters AppDirectory: d:\Sample Application: c:\jdk1.3\bin\java.exe AppParameters: -classpath com.sample.SampleService Here SampleService is the service Name and D:\Sample is the path where SampleService.class file exists and C:\jdk1.3\bin\java.exe is the path where java is installed and com.Sample.SampleService is the class file which u want to make it as a service. com.sample is that package. That should be in the classpath. Hope this solves your problem. you can find the instsrv.exe and srvany.exe.
|
 |
Karthik Veeramani
Ranch Hand
Joined: Dec 22, 2002
Posts: 132
|
|
|
Thanks for that, but I have some doubts. Where do I get these 2 files. and also, these files only launch ur app, and dont convert them into service. I want all my class files packed into a single exe, which I can install as service. Is there a way out?
|
 |
 |
|
|
subject: Urgent! Java as Windows Service
|
|
|