From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3562 invoked by alias); 11 Apr 2008 21:33:00 -0000 Received: (qmail 3553 invoked by uid 22791); 11 Apr 2008 21:32:59 -0000 X-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_53,J_CHICKENPOX_56,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Apr 2008 21:32:41 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m3BLWdjL012434 for ; Fri, 11 Apr 2008 17:32:39 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m3BLWdfM030286 for ; Fri, 11 Apr 2008 17:32:39 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m3BLWdNi002398 for ; Fri, 11 Apr 2008 17:32:39 -0400 Message-ID: <47FFD8E7.5060803@redhat.com> Date: Sat, 12 Apr 2008 20:53:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: frysk Subject: got JNI; but only just :-) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00047.txt.bz2 FYI, I've just pushed changes to frysk's build system that add the ability to build JNI code vis: - automatically generate required jni headers - compile */jni/*.cxx files into a separate shared object while at the same time continuing to build the existing CNI code. By being able to build/run both side-by-side we'll hopefully help to ease the migration pain. In the frysk-sys directory, I've also added stub C++ JNI functions (they just throw an exception) for all the required native methods. You can invoke TestRunner, but using JNI and these stub-functions, with the script JniRunner vis: $ ./JniRunner Exception in thread "main" java.lang.RuntimeException: ../../frysk/frysk-sys/frysk/config/jni/Config.cxx:Java_frysk_config_Config_createBuildConfig not implemented at frysk.config.Config.createBuildConfig(Native Method) at JniRunner.main(JniRunner.java:57) (Did I mention that all the JNI functions were stubs and just threw exceptions? :-) Next I'm going to work my way through frysk.config, frysk.rsl, and frysk.sys. The lib/* libraries are an opportunity waiting to happen :-) Andrew