java.vm.info

David Brownell mojojojo@pacbell.net
Thu Dec 16 11:45:00 GMT 1999


This is question, with at least one associated RFE.
I have a testing harness which I use to test some Java software.
One of the things it does is report the environment under which
the test is run ... by returning the "java.vm.info" system property.
On Sun's JVMs this returns string descriptions like:
	"Classic JVM (build 1.2.2-I, native threads, javacomp)"
Such information is important for tracking JVM issues.
I'd like to see libgcj provide corresponding information, ideally
through that same system property API. That's the RFE. Based on
the response I get to the question (next) I could probably provide
a patch of some kind myself.
Meantime, I'd like to get the info myself and stick it into that
system property. The question: How I do get enough of the info?
The closest I can now come is "gcj -v 2>&1 | tail -1" to get:
	"gcc version 2.96 1991201 (experimental)"
That doesn't provide Java runtime info -- like the version of
libgcj in use, whether POSIX threads are configured, or any
other relevant info (whether SJLJ or table based exceptions
are configured, etc).
Got any suggestions on how to get that runtime info?
- Dave


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /