[1478] in java-interest
Re: use of javaString.h in native methods
daemon@ATHENA.MIT.EDU (Wan-teh Chang)
Tue Sep 5 19:21:37 1995
From: Wan-teh Chang <wtc@godel.eecs.berkeley.edu>
To: Bill.Birnbaum@Central.Sun.COM
Date: Tue, 5 Sep 1995 13:15:15 -0700 (PDT)
Cc: java-interest-digest@java.sun.com
In-Reply-To: <199508312054.NAA03999@webrunner.neato.org> from "owner-java-interest-digest@java.sun.com" at Aug 31, 95 01:54:35 pm
Hi Bill,
I ran into the same problem. My workaround was to generate
the java_lang_String.h file myself. You can generate that
file with the command:
javah java.lang.String
Then the file java_lang_String.h will be created in the same
directory where you invoked javah.
I think the Java team should correct this problem. Either
these .h files should be included in the installation, or
the documentation should tell us that they need to be generated
by invoking javah.
Wan-Teh
> From: Bill.Birnbaum@Central.Sun.COM (Bill Birnbaum)
> Date: Thu, 31 Aug 1995 12:46:13 -0600
> Subject: use of javaString.h in native methods
>
> I am experimenting using native methods and I am trying to use the
> hotjava/include/javaString.h file. This include file attempts to
> include <java_lang_String.h> which I cannot find anywhere within my
> java distribution (hotjava-alpha3-solaris2-sparc.tar.Z). (Looking at
> the makefile in hotjava/doc/native it also appears my distribution is
> missing hotjava/include/CClasslib)
>
> Has anybody else been successful using javaString.h functionality with
> their own native calls or in getting the example in hotjava/doc/native
> to work with javaString.h? If so, how did you get it to work?
>
> Thanks,
>
> Bill
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com