From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3698 invoked by alias); 8 Aug 2004 20:11:17 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 3676 invoked by uid 48); 8 Aug 2004 20:11:16 -0000 Date: Sun, 08 Aug 2004 20:11:00 -0000 From: "thhal at mailblocks dot com" To: java-prs@gcc.gnu.org Message-ID: <20040808201114.16923.thhal@mailblocks.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00193.txt.bz2 List-Id: Options that are passed in the JavaVMInitArgs structure passed to the JNI_CreateJavaVM function seems to be completely ignored. The following code should result in a setting of the system property "some.property" but it doesn't. JNIEnv* env; JavaVMInitArgs vm_args; JavaVMOption options[1]; options[0].optionString = "-Dsome.property=propval"; options[0].extraInfo = 0; vm_args.nOptions = 1; vm_args.options = &options; vm_args.version = JNI_VERSION_1_4; vm_args.ignoreUnrecognized = JNI_TRUE; if(JNI_CreateJavaVM(&s_javaVM, (void **)&env, &vm_args) != JNI_OK) { fputs("Unable to create Java VM\n", stderr); return 1; } -- Summary: Options passed to JNI_CreateJavaVM are ignored Product: gcc Version: 3.4.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thhal at mailblocks dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923