From owner-freebsd-java Thu Feb 14 18:29:13 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 8193F37B42A for ; Thu, 14 Feb 2002 18:29:04 -0800 (PST) Received: (qmail 57166 invoked from network); 15 Feb 2002 02:28:59 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 15 Feb 2002 02:28:59 -0000 Subject: Re: Need info for compiling JDK1.3.1 on FreeBSD with Native Threads From: Joe Kelsey To: gsemones@treenleaf.com Cc: freebsd-java@FreeBSD.ORG In-Reply-To: <200202141005.AA177340734@mail.mstar2.net> References: <200202141005.AA177340734@mail.mstar2.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 14 Feb 2002 18:28:58 -0800 Message-Id: <1013740139.54099.15.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 Thu, 2002-02-14 at 09:05, Guerry Semones wrote: > Sorry if this is in a FAQ somewhere. I know the Native Threads > implementation is under way. > > Here is what I am trying to accomplish as explained briefly in a > previous post. We are porting a C++ application that initializes > the JVM and calls Java classes from the C++ side. I'd like to be > able to get a Native Threads JDK (1.2 or 1.3) compiled for FreeBSD > that we can then link into our C++ application. > > I have been trying various suggestions for the Green Threads > stuff, but get a core dump on the JNI_CreateJavaVM call. Of > course, there are warnings of just this sort of issue when trying > to do this with Green Threads, so.... Native? :-) There is no trouble doing this as long as you set up the environment appropriately. That means that you have to set up PATH, LD_LIBRARY_PATH and CLASSPATH to point to the right locations. You also have to set THREADS_TYPE correctly. In the port, look at j2sdk1.3.1/ext/plugin/oji-plugin/src/motif/jvm_exec/java_vm.c for how the Mozilla plugin performs this bit of magic. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message