From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18855 invoked by alias); 2 Dec 2002 15:57:27 -0000 Mailing-List: contact rhug-rhats-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhug-rhats-owner@sources.redhat.com Received: (qmail 18830 invoked from network); 2 Dec 2002 15:57:18 -0000 Received: from unknown (HELO inauspicious.demon.co.uk) (193.237.142.182) by sources.redhat.com with SMTP; 2 Dec 2002 15:57:18 -0000 Received: from slippy.wire.rat ([192.168.1.1]) by inauspicious.demon.co.uk with esmtp (Exim 3.22 #1) id 18Iswp-0004TR-00 for rhug-rhats@sources.redhat.com; Mon, 02 Dec 2002 15:57:27 +0000 Received: from slippy.wire.rat (localhost.localdomain [127.0.0.1]) by slippy.wire.rat (8.12.5/8.12.5) with ESMTP id gB2G7KQB030149 for ; Mon, 2 Dec 2002 16:07:20 GMT Received: (from gary@localhost) by slippy.wire.rat (8.12.5/8.12.5/Submit) id gB2G7JLf030147 for rhug-rhats@sources.redhat.com; Mon, 2 Dec 2002 16:07:19 GMT Date: Mon, 02 Dec 2002 07:57:00 -0000 From: Gary Benson To: rhug-rhats@sources.redhat.com Subject: Detecting gcj Message-ID: <20021202160719.GC1097@redhat.com> Mail-Followup-To: rhug-rhats@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-PGP-Fingerprint: 6646 CF68 DEA8 07CA CA64 C18C A150 FC2D 85A8 F78B X-SW-Source: 2002-12/txt/msg00002.txt.bz2 At one point in JUnit it avoids some errors by detecting that is is running under a wierd VM by doing: | public static boolean inVAJava() { | try { | Class.forName("com.ibm.uvm.tools.DebugSupport"); | } | catch (Exception e) { | return false; | } | return true; | } Is there a similar way to detect whether we are running under libgcj? Cheers, Gary [ gbenson@redhat.com ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]