public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored
@ 2004-08-08 20:11 thhal at mailblocks dot com
  2004-08-08 20:15 ` [Bug libgcj/16923] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: thhal at mailblocks dot com @ 2004-08-08 20:11 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-16923-8351@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2008-12-20 22:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-08 20:11 [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored thhal at mailblocks dot com
2004-08-08 20:15 ` [Bug libgcj/16923] " pinskia at gcc dot gnu dot org
2004-08-14  7:11 ` [Bug libgcj/16923] -D* " pinskia at gcc dot gnu dot org
2005-02-24 13:19 ` cvs-commit at gcc dot gnu dot org
2005-02-24 14:02 ` fitzsim at redhat dot com
     [not found] <bug-16923-8351@http.gcc.gnu.org/bugzilla/>
2008-11-18 15:01 ` howarth at nitro dot med dot uc dot edu
2008-12-20 22:22 ` howarth at nitro dot med dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).