Connecting Tech Pros Worldwide Help | Site Map

Help needed in running a c++ program as Windows Services

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 19th, 2005, 07:10 PM
parthan
Guest
 
Posts: n/a
Default Help needed in running a c++ program as Windows Services

We are running our c++ program, which uses JNI, as Windows services.
Program is getting CLASSPATH env variable correctly and also
initializes JVM successfully. After initializing JVM, programs makes a
JNI call FindClass() for getting java class.But FindClass method
returns NULL even though java class exists in the CLASSPATH.

Same program when is run from command window, FindClass method call is
working fine.

Is there any difference between running a program thru command window
and as a windows service ?
Incase you have any idea on how to resolve this issue, kindly get back
ASAP.

  #2  
Old July 19th, 2005, 07:10 PM
Attila Feher
Guest
 
Posts: n/a
Default Re: Help needed in running a c++ program as Windows Services

parthan wrote:[color=blue]
> We are running our c++ program, which uses JNI, as Windows services.[/color]

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Attila aka WW


  #3  
Old July 19th, 2005, 07:10 PM
Michael Winter
Guest
 
Posts: n/a
Default Re: Help needed in running a c++ program as Windows Services

"parthan" wrote on 13 Oct 03:
[color=blue]
> We are running our c++ program, which uses JNI, as Windows services.
> Program is getting CLASSPATH env variable correctly and also
> initializes JVM successfully. After initializing JVM, programs makes[/color]
a[color=blue]
> JNI call FindClass() for getting java class.But FindClass method
> returns NULL even though java class exists in the CLASSPATH.
>
> Same program when is run from command window, FindClass method call[/color]
is[color=blue]
> working fine.
>
> Is there any difference between running a program thru command[/color]
window[color=blue]
> and as a windows service ?
> Incase you have any idea on how to resolve this issue, kindly get[/color]
back[color=blue]
> ASAP.[/color]

Java and Windows are off-topic in this group. It would be better to
ask in a Windows group or a Java group that deals specifically with
native interfaces.

microsoft.public.win32.programmer.kernel deals with kernel issues and
should be able to describe the specifics of Windows services (be sure
to detail exactly what you're doing and on which OS: 9x/Me/NT and
version).

comp.lang.java.machine deals with elements of the Java Virtual
Machine, including native interfaces.

You'll probably need to go to both groups to get a complete answer.

Good luck,
Mike

--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply)


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.