From owner-freebsd-java Thu Feb 14 12:22:41 2002 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by hub.freebsd.org (Postfix) with ESMTP id 696C637B402 for ; Thu, 14 Feb 2002 12:22:39 -0800 (PST) Received: from billh by gnuppy.monkey.org with local (Exim 3.34 #1 (Debian)) id 16bSOr-0000e2-00; Thu, 14 Feb 2002 12:22:37 -0800 Date: Thu, 14 Feb 2002 12:22:37 -0800 To: Mikhail Kruk Cc: Guerry Semones , freebsd-java@FreeBSD.ORG Subject: Re: Need info for compiling JDK1.3.1 on FreeBSD with Native Threads Message-ID: <20020214202237.GA2438@gnuppy.monkey.org> References: <20020214194925.GA1818@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i From: Bill Huey 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, Feb 14, 2002 at 03:15:56PM -0500, Mikhail Kruk wrote: > I don't know much, sorry. I know that you can create JVM, it will run in > its own thread and it will be possible to attach your native C thread to > it. Here is the tutorial > http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jniref.html > > and here is an example of how it is done: ... > thr_id=pthread_create(&tid, NULL, native_thread, NULL); > > // If you don't have join, sleep instead > //sleep(1000); > pthread_join(tid, NULL); > (*jvm)->DestroyJavaVM(jvm); > exit(0); > } Oh my, and folks expect something like that to work ? Is it considered a bug if it doesn't ? I don't know what's happening in the other program that's trying to invoke the JVM, so I can't really say at this point. It could be a ld.so problem, threading and host of other things. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message