|
From: Leif M. <le...@ta...> - 2006-11-22 19:38:26
|
Zhang,
I have had a JMF application running for several years under various
wrapper versions on
XP and 2000 without any problems. It runs as the default system account.
How have you set up your library path? The command that you mention
to run as a
standalone java app does not specify a library path. This makes me
wonder if you have
forgotten to do that in your wrapper.conf. By default, java will
search the system PATH
for JNI libraries to load. When a specific library path is specified,
as is done with the
wrapper, this will not happen. Using the PATH, like CLASSPATH, is
actually rather
unreliable anyway. Try adding the location of your JNI dlls to the
library path in the
wrapper.conf.
If that doesn't work, post your wrapper.conf and a wrapper.log
showing the full
stack track.
You should also always try to run the wrapper as a console app
BEFORE trying
to run as a service. This makes it much easier to track down common
problems.
Cheers,
Leif
hail zhang wrote:
> Hi,
> I encounter a problem during try to wrapper an application as a
> windows service.
> This application use JMF(Java Media Framework) to detect local USB
> camera, and get still image from it. When I start it in cmd mode(java
> -jar myapp.jar) or in eclipse, it works fine. But when I start the
> service(wrapper -t myapp.conf), it couldn't detect any USB camera, I
> don't know why?
> I thought perhaps it caused by user privilege problem, so I change the
> login account as local administrator, and enable desktop interaction,
> but still throw java.lang.reflect.InvocationTargetException.
> Hope you can help me, thanks!
>
> Best regards,
> Hai...@gm... <mailto:Hai...@gm...>
>
> --
> Best regards,
>
> Hail.zhang
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|