.class to shared library?

Shane Jarych shane@isettle.com
Mon Dec 4 13:22:00 GMT 2000


On 2000年12月04日, you wrote:
> >>>>> "Shane" == Shane Jarych <shane@isettle.com> writes:
> Shane> Is it possible to create shared libraries using java-compiled
> Shane> library files?
>> Yes.
>> Shane> If so, how are they called upon when contained inside classes?
>> I don't understand the question.
>
Let me clarify that a bit..
Support I have a C program that calls a shared-library function with signature
'void speak(char *words)'. speak() is a simple C function compiled as into a
shared-library.
Now suppose I write this function in a Java class, and create a shared library
from it.
class Person
{
 public void speak(String words)
 {
 System.out.println(words);
 }
}
How would the originating C program call upon the Java version of 'speak()'?


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /