This is the mail archive of the
rhug-rhats@sources.redhat.com
mailing list for the RHUG project.
Detecting gcj
- From: Gary Benson <gbenson at redhat dot com>
- To: rhug-rhats at sources dot redhat dot com
- Date: Mon, 2 Dec 2002 16:07:19 +0000
- Subject: Detecting gcj
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/ ]