472,353 Members | 2,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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.
Jul 19 '05 #1
2 4859
parthan wrote:
We are running our c++ program, which uses JNI, as Windows services.


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

--
Attila aka WW
Jul 19 '05 #2
"parthan" wrote on 13 Oct 03:
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.


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)
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: parthan | last post by:
We are running our c++ program as Windows services which uses JNI. > Program is getting CLASSPATH env variable correctly and also > initializes JVM...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 ...
13
by: Siegfried Heintze | last post by:
I refered the engineer at my hosting service to http://support.microsoft.com/default.aspx?scid=kb;en-us;825738 where he tried to follow the...
5
by: Matthew Speed | last post by:
(About me: I know very little about writing server applications. I have done plenty of VB6 desktop app work but this is my first server program. ...
5
by: Andrew | last post by:
Hey all, Requesting help from the VB.Net gurus in here. I was given a task to write a Windows Service (VB.Net) that would run an external...
10
by: need.a.codemaster | last post by:
For a client of ours we are searching someone with the following knowledge Windows Virusscanners Spyware tools We need a windows application...
7
by: Mike | last post by:
I'm having strange problems with IE7 just quiting when I open documents on some Sharepoint 3.0 Sites and I think it could be a asp.net issue. My...
4
by: ags5406 | last post by:
Hi All I have a task that I'm thinking about attacking in two different ways but don't know enough about Windows Services. First: We have a...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.