From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17869 invoked by alias); 3 Dec 2002 04:07:40 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 17836 invoked by uid 61); 3 Dec 2002 04:07:40 -0000 Date: Mon, 02 Dec 2002 20:07:00 -0000 Message-ID: <20021203040740.17835.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, java-prs@gcc.gnu.org, nobody@gcc.gnu.org, tjmather@maxmind.com, tromey@gcc.gnu.org From: tromey@gcc.gnu.org Reply-To: tromey@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, java-prs@gcc.gnu.org, nobody@gcc.gnu.org, tjmather@maxmind.com, tromey@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: libgcj/8685: CNI Invocation of Java code from C++ example fails X-SW-Source: 2002-12/txt/msg00113.txt.bz2 List-Id: 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