- Joined
- Aug 26, 2009
- Messages
- 2
- Reaction score
- 0
Hi
I have a Java program that I converted to Windows exe with Launch4J. When I double click the exe, the program works with no problems.
The problem appears when I make this exe a Windows service. It starts, but it says :
The dll is a JNI wrapper. The [path] is correct. If I copy and paste it in windows explorer it takes me to the dll.
What I don't understand is why does it find the library when I double-click the exe but it doesn't find it when I start is as a service. Can anyone please shed some light on this?
Thank you!
Greetings
Alexandra.
P.S.: I'm running on Windows XP.
I have a Java program that I converted to Windows exe with Launch4J. When I double click the exe, the program works with no problems.
The problem appears when I make this exe a Windows service. It starts, but it says :
Code:
java.lang.UnsatisfiedLinkError: Can't load library: [path]
What I don't understand is why does it find the library when I double-click the exe but it doesn't find it when I start is as a service. Can anyone please shed some light on this?
Thank you!
Greetings
Alexandra.
P.S.: I'm running on Windows XP.