Re: WO and C subroutine using JNI
Re: WO and C subroutine using JNI
- Subject: Re: WO and C subroutine using JNI
- From: Zak Burke <email@hidden>
- Date: Tue, 02 Nov 2004 12:37:51 -0600
What is the precise error you get from javah?
Are you certain that the individual class files are all in
JNIOut.jar? I've had trouble before where I tried to zip a bunch of
JARs into a single JAR file, which doesn't work. You can un-zip the
JARs and then re-zip them all into a single JAR file, or you just
put multiple JARs on the classpath, separated by colons.
The -d argument to javah just tells it to stash its output in a
different directory, which isn't really necessary. I'm not sure what
-force does. Try running javah without these extra parameters to see
if it will run, then tweak your shell script later to put things
where you want 'em.
zak.
Erwin wrote on 11/2/04 11:58 AM:
I am trying to call a C-subroutine from inside one of my component
"ConvertImage" (package oneshot;) using Java JNI .
Everything run well outside WO ... so i am i now but I am stuck in the
javah target build phase....
I defined "Do Javah" (a target similar to the one in the JNI example ,
with same build phases.. )
- Sources : ConvertImage.java (and related other sources)
- Frameworks : all necessry java and WO frameworks
- Shell script (here should be the problem....I copied the script from
the JNI example... and I believe there is something wrong in class
references....)
------
javah -classpath "${SYMROOT}/JNIOut.jar" -force -d "${OBJROOT}/Headers"
"ConvertImage"
echo OBJROOT = ${OBJROOT} SYMROOT = ${SYMROOT}
-------
the Headers folder is created crorrectly but javah cannot create the
ConvertImage.h
because it doesn't find the ConvertImage class compiled in the previous
phase.....
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden