core dump
Jeff Sturm
jsturm@one-point.com
Mon Nov 4 08:52:00 GMT 2002
On Mon, 4 Nov 2002, Martin Aliger wrote:
> I know, you have lot of work and I hope this is correct list to ask my
> question.
This is the right place.
> #include <java/lang/Math.h>
> int main()
> {
> jint i=java::lang::Math::round((jfloat)2.3);
> return 0;
> }
This is the main method, so the VM isn't initialized yet. Also, the Math
class may not be initialized. See
http://gcc.gnu.org/onlinedocs/gcj/Invocation.html for a similar example
using the CNI invocation interface.
Jeff
More information about the Java
mailing list