From owner-freebsd-java@FreeBSD.ORG Mon Mar 31 13:32:54 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 423EC1065674 for ; Mon, 31 Mar 2008 13:32:54 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by mx1.freebsd.org (Postfix) with ESMTP id BC0738FC29 for ; Mon, 31 Mar 2008 13:32:53 +0000 (UTC) (envelope-from funkyrod@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so409527tid.3 for ; Mon, 31 Mar 2008 06:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=j2sHMGAf7w2JZnYPDX948IA7/KN8ZDo60wJJ7Ambykw=; b=VzrHwsy4tQVp3fJiv1JKcOaGIF3bFuKiG6nmu6gGgq7EIGgejWdcRVmuYKrUoVY+iRqrrdpk8zfHFhwE0gYe+Kqx0kBQc7Ws4B6p3OcSq/p+BeHvGU55cwwwcZyFY+yULL2N3mt1+WYEJtS6kCmSWfAZXc2s3mKI89kpnRtJtDo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=MQBgAvbOVjNxOngnt7YwN3+hIDDiGtuyMXDtVe8bpUYRkdQ2sdi1RqZT9pATKqk+GaaXz2g7S0AexyUFcEHl0wMqeGEzwp9A+8RfeUFOiLqPekGY2nTtdvtkfw51mmkOdgePFGMO01iU30zg16RGq+wCOaU3qSSEpDVDLyGGFOk= Received: by 10.110.32.9 with SMTP id f9mr2836534tif.8.1206970372217; Mon, 31 Mar 2008 06:32:52 -0700 (PDT) Received: by 10.70.75.7 with HTTP; Mon, 31 Mar 2008 06:32:51 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 13:32:51 +0000 From: Rod To: "Greg Lewis" In-Reply-To: <20080330151625.GA8977@misty.eyesbeyond.com> MIME-Version: 1.0 References: <20080330075658.GA6492@misty.eyesbeyond.com> <20080330151625.GA8977@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org Subject: Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 13:32:54 -0000 Guys Thanks for your help with this. After re-building jdk16, I was able to run the simple c++ invocation program to invoke a JVM via the JNI. For some reason however, I still get the SIGSYS with R and rJava so I'll contact the rJava developers next. Regards Rod. On Sun, Mar 30, 2008 at 3:16 PM, Greg Lewis wrote: > On Sun, Mar 30, 2008 at 08:23:52AM +0000, Rod wrote: > > I built the jdk16 originally under a FreeBSD7.0 installation that I had > > updated to 7-Release from pre-release via buildworld/buildkernel. > > > > The output below was from running under a fresh install of > > 7.0-Releaseinstalled from the > > 7.0-Release binaries (from the CDs). I installed the jdk16 that I had > built > > under the older buildworlded 7.0-Release onto the fresh binary installed > > 7.0-Release (which I installed clean specifically to investigate this > > problem). > > > > I'm now rebuilding jdk16 under the fresh 7.0-Release to see if that > helps. > > Sounds like a sensible thing to try. > > > Thanks for your help so far everyone - I've posted some further details > > (output log from the invocation test program). > > > > Greg I'm not sure what you're referring to regarding removal of KSE > > syscalls. What would be the implications in this situation? > > My bad, that has only happened in -current not in 7.x, so ignore that. I > was thinking of a reason that you'd get a SIGSYS (which means you're > invoking a non-existent syscall). Removal of the KSE syscalls would fit > that, but it hasn't happened in 7.x so that can't be the case. > > -- > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : http://www.eyesbeyond.com > Information Technology FreeBSD : glewis@FreeBSD.org >