This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: .class to shared library?
On Mon, 04 Dec 2000, 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()'?