Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JavaService - need help (please!)

Reply
Thread Tools

JavaService - need help (please!)

 
 
Edward E. Sandfort
Guest
Posts: n/a
 
      07-01-2003
This is making me nuts. Hopefully someone out there can get me pointed
in the right direction...

I'm playing with the program JavaService
http://www.alexandriasc.com/software...ice/index.html and trying
to install a simple java program as a service on a Windows 2000
machine. I install the service as follows:

JavaService -install TestServ C:\Program
Files\Java\jre\bin\client\jvm.dll -Djava.class.path=C:\h\eiapm.jar
-start mil.mcs.AutoPostServer

The class AutoPostServer, in package mil.mcs, does indeed exist, and has
a main class and all that. The class is definitely found in eiapm.jar.
The service installs without complaining, but when I try to start it up,
it fails. Viewing the event log give me the message:

"Could not find the service start class."

I've tried everything I can think of at this point, without success.
I'd appreciate any help I can get. If possible, please email your
responses directly to me.

Thanks in advance

Ed Sandfort

 
Reply With Quote
 
 
 
 
Wendy S
Guest
Posts: n/a
 
      07-01-2003
"Edward E. Sandfort" <> wrote
> JavaService -install TestServ C:\Program
> Files\Java\jre\bin\client\jvm.dll -Djava.class.path=C:\h\eiapm.jar
> -start mil.mcs.AutoPostServer
>
> The class AutoPostServer, in package mil.mcs, does indeed exist, and has
> a main class and all that. The class is definitely found in eiapm.jar.
> > The service installs without complaining, but when I try to start it up,
> > it fails. Viewing the event log give me the message:


How do you 'try to start it up'? Does THAT process have the correct
classpath set?

--
Wendy in Chandler, AZ


 
Reply With Quote
 
 
 
 
Wolfgang Kless
Guest
Posts: n/a
 
      07-02-2003
"Edward E. Sandfort" wrote:
>
> This is making me nuts. Hopefully someone out there can get me pointed
> in the right direction...
>
> I'm playing with the program JavaService
> http://www.alexandriasc.com/software...ice/index.html and trying
> to install a simple java program as a service on a Windows 2000
> machine. I install the service as follows:
>
> JavaService -install TestServ C:\Program
> Files\Java\jre\bin\client\jvm.dll -Djava.class.path=C:\h\eiapm.jar
> -start mil.mcs.AutoPostServer


Put quotation marks around the path to jvm.dll. The command line doesn't
like spaces in path names.

Bye, Wolfgang
--
Wolfgang Kless
INA-Schaeffler KG, Industriestrasse 1-3
91074 Herzogenaurach, Germany
Tel.: +49 9132 82 4730 Email:
 
Reply With Quote
 
E Sandfort
Guest
Posts: n/a
 
      07-03-2003
thanks for the responses.

Wendy - I am trying to start the process by finding it in the Windows
Services program (from Control Panel), choosing the service I
installed, and trying to start it from there.

Wolfgang - I do not believe that is the problem at all. I'm fairly
confident that JavaService is indeed loading the JVM I specify. If I
change my JVM path to something invalid, I will get an error message
when starting the service which indicates that the "Java Virtual
Machine could not be loaded". Since I am not getting this message, I
believe my problem is something else.

Any more ideas?

Thanks!

Ed Sandfort
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with JavaService ... can't start example applications Alessandro Java 1 02-09-2009 10:38 PM
JavaService: Use classpath from manifest? allancady@yahoo.com Java 2 10-31-2005 03:47 AM
javaservice not starting service on reboot johnleslie@madasafish.com Java 1 06-30-2005 07:02 PM
JavaService & JBoss Christiaan Java 0 01-16-2004 11:53 AM
JavaService append mode instead of truncating log file uy_do Java 1 12-04-2003 02:42 AM



Advertisments