From owner-freebsd-java Mon Feb 18 16: 1:53 2002 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-80.oz.net [216.39.147.80]) by hub.freebsd.org (Postfix) with SMTP id 076CF37B402 for ; Mon, 18 Feb 2002 16:01:50 -0800 (PST) Received: (qmail 72955 invoked from network); 19 Feb 2002 00:01:43 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 19 Feb 2002 00:01:43 -0000 Subject: Re: Mozilla plugin and native JDK 1.3.1p6. From: Joe Kelsey To: Mark Evenson Cc: Mike Gratton , Jonathan Chen , freebsd-java@FreeBSD.ORG In-Reply-To: References: <20020215150421.A50739@shale.csir.co.za> <20020216150534.C60480@shale.csir.co.za> <1013894600.59818.5.camel@zircon.zircon.seattle.wa.us> <20020217003431.E60480@shale.csir.co.za> <20020217165427.A3783@grimoire.chen.org.nz> <3C6F4260.4050909@vee.net> <1013924828.59818.22.camel@zircon.zircon.seattle.wa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 18 Feb 2002 16:01:43 -0800 Message-Id: <1014076903.59818.54.camel@zircon.zircon.seattle.wa.us> Mime-Version: 1.0 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 2002-02-18 at 10:43, Mark Evenson wrote: > Joe Kelsey writes: > > > On Sat, 2002-02-16 at 21:40, Mike Gratton wrote: > > > Jonathan Chen wrote: > > > > INTERNAL ERROR on Browser End: Exec of "java_vm" failed: 2 > > > > [snip] > > > > Anyone know the cause and the fix? > > > This may well be Mozilla bug. I'm using a recent nightly (0.9.8+) on my > > > [wince] Linux workstation, and I get the same error. Can you try using > > > 0.9.7? > > > > If you build both Mozilla 0.9.8 and jdk13 from the latest ports, then > > they work absolutely correctly. > How is 'java_vm' supposed to be in the PATH of mozilla when it does the > fork()/exec()? From the '+CONTENTS' of the installed package, 'java_vm' > ends up in the 'jdk1.3.1/jre/bin/i386/{green,native}_threads/java_vm' > subdirectories without a 'wrapper' symlink in the $JAVA_HOME/bin directory, > so the 'mozilla' binary should have no chance of finding 'java_vm' for the > exec(). Or does the plugin have this subdirectory relative to JAVA_HOME > hard-coded in? I never said anything about PATH! I said that the plugin had to be created from a virgin build with patchset 6 and that you have to make sure to remove any previous installation before installing patchset 6. j2sdk1.3.1/ext/plugin/oji_plugin/src/motif/navig5/JavaVM5.cpp contains the code for your edification. It uses CLASSPATH to figure out the directories where java_vm might be hiding. It then passes an exact path to exec. No PATH involved. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message