|
From: Sal I. <sal...@sy...> - 2003-02-12 23:16:07
|
can I use JNI from wrapperAt first blush it looks like one of your jars is
missing from the classpath.
Did you add your classpath element(s) wrapper.conf?
wrapper.java.classpath.[n]=relative_path_to_your_jar(s)
Then, do you have the native DLLs in your path?
Try adding this to wrapper.conf:
wrapper.java.library.path.[n + 1]=relative path to vendor.dll & others
For my app I also had to add the following:
wrapper.java.library.path.2=../../jdk/bin
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...]On Behalf Of Carl, Roger
Sent: Wednesday, February 12, 2003 3:01 PM
To: 'wra...@li...'
Cc: Carl, Roger
Subject: [Wrapper-user] can I use JNI from wrapper
I am working on a Java application that uses a MS VB COM vendor.dll API
for accessing vendor proprietary files. Everything is working good
standalone. I just tried it from within a wrapper without success. At the
point of instantiating the class that invokes the COM vendor.dll, I get:
INFO | jvm 1 | 2003/02/12 17:37:51 | Encountered an error running
main: java.lang.reflect.InvocationTargetException
INFO | jvm 1 | 2003/02/12 17:37:51 |
java.lang.reflect.InvocationTargetException: java.lang.UnsatisfiedLinkError:
pgi.qwutil.QwTemplate
INFO | jvm 1 | 2003/02/12 17:37:51 | void
pgi.pollsite.PollQwTemplates.updateSetup(java.lang.String)
INFO | jvm 1 | 2003/02/12 17:37:51 |
PollQwTemplates.java:124
INFO | jvm 1 | 2003/02/12 17:37:51 | void
pgi.pollsite.PollQwTemplates.poll(java.lang.String[])
INFO | jvm 1 | 2003/02/12 17:37:51 |
PollQwTemplates.java:65
INFO | jvm 1 | 2003/02/12 17:37:51 | void
pgi.pollsite.PollSite.polling(java.util.Hashtable)
INFO | jvm 1 | 2003/02/12 17:37:51 | PollSite.java:95
INFO | jvm 1 | 2003/02/12 17:37:51 | void
pgi.pollsite.PollSite.main(java.lang.String[])
INFO | jvm 1 | 2003/02/12 17:37:51 | PollSite.java:79
INFO | jvm 1 | 2003/02/12 17:37:51 | java.lang.Object
java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
INFO | jvm 1 | 2003/02/12 17:37:51 | native code
INFO | jvm 1 | 2003/02/12 17:37:51 | void
com.silveregg.wrapper.WrapperSimpleApp.run()
INFO | jvm 1 | 2003/02/12 17:37:51 |
WrapperSimpleApp.java:96
INFO | jvm 1 | 2003/02/12 17:37:51 | void
java.lang.Thread.run()
INFO | jvm 1 | 2003/02/12 17:37:51 | Thread.java:484
INFO | jvm 1 | 2003/02/12 17:37:51 |
INFO | jvm 1 | 2003/02/12 17:37:51 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2003/02/12 17:37:51 | java
com.silveregg.wrapper.WrapperSimpleApp {app_class} [app_parameters]
INFO | jvm 1 | 2003/02/12 17:37:51 |
INFO | jvm 1 | 2003/02/12 17:37:51 | Where:
INFO | jvm 1 | 2003/02/12 17:37:51 | app_class: The fully
qualified class name of the application to run.
INFO | jvm 1 | 2003/02/12 17:37:51 | app_parameters: The parameters
that would normally be passed to the
INFO | jvm 1 | 2003/02/12 17:37:51 | application.
STATUS | wrapper | 2003/02/12 17:37:53 | <-- Wrapper Stopped
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. Personal views and opinions expressed in this communication are
those of the originator and may not necessarily reflect those of PGI. If
you are NOT the original recipient, be advised that you have received this
email in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited.
|