This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libgcj/8685: CNI Invocation of Java code from C++ example fails
- From: tromey at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, java-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tjmather at maxmind dot com, tromey at gcc dot gnu dot org
- Date: 3 Dec 2002 04:07:40 -0000
- Subject: Re: libgcj/8685: CNI Invocation of Java code from C++ example fails
- Reply-to: tromey at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, java-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tjmather at maxmind dot com, tromey at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: CNI Invocation of Java code from C++ example fails
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Mon Dec 2 20:07:39 2002
Responsible-Changed-Why:
I'm handling this.
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Mon Dec 2 20:07:39 2002
State-Changed-Why:
The problem is that the executable name isn't set.
One workaround is to call _Jv_ThisExecutable before calling
JvCreateJavaVM. Any argument is fine, though argv[0] is best.
This is still bad, though, since that isn't really part
of the API. I'm not sure what we should do here.
I'll ask on-list.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8685