This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: core dump
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Martin Aliger <martin_aliger at email dot cz>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 4 Nov 2002 11:51:55 -0500 (EST)
- Subject: Re: core dump
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