This is the mail archive of the rhug-rhats@sources.redhat.com mailing list for the RHUG project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/ ]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]