[izpack-user] Detect Java version running

328 views
Skip to first unread message

jason godbold-smith

unread,
Nov 27, 2010, 6:31:48 PM11/27/10
to us...@izpack.codehaus.org
HI

Once an izPack installation is running is there a way to detect and returnt he version of Java that the izPack is using?

Regards Jason

cimnine

unread,
Nov 29, 2010, 4:23:04 AM11/29/10
to us...@izpack.codehaus.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

launch your installer like this:
$ java -DTRACE=true -jar installer.jar

You'll see all available variables on the right. The java version is
amongst them.

~Chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzzcPgACgkQPRbJU16VsQ2hXwCcDtG2RVM4LX3IR8L0icIzq0RE
tHEAn1EocMdb5iSYNCFx9K5PtA9cNomw
=x2LM
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Dirk Räder

unread,
Nov 29, 2010, 4:28:28 AM11/29/10
to us...@izpack.codehaus.org
I don't think that's what Jason wanted to do. I suppose he wanted to
find out which Java version is currently used to run IzPack. That is,
find out programmatically.

Regards, Dirk

2010/11/29 cimnine <cim...@gmail.com>:

cimnine

unread,
Nov 29, 2010, 5:21:26 AM11/29/10
to us...@izpack.codehaus.org

The Java version, IMHO, is stored in one of these variables I mentioned. Same like JAVA_HOME.. Isn't it?

Julien Ponge

unread,
Nov 29, 2010, 9:01:43 AM11/29/10
to us...@izpack.codehaus.org
No that one is not built-in, so you need to look at declaring an
environment variable.

--
http://izpack.org/
http://jpz-log.info/
http://julien.ponge.info/

cimnine

unread,
Nov 29, 2010, 9:26:11 AM11/29/10
to us...@izpack.codehaus.org

But why shouldn't you be able to access variables like 'SYSTEM_java_runtime_version' or 'SYSTEM_java_specification_version' from within the install.xml when they are defined at runtime? Files get parsed at runtime, don't they?
Maybe I have time this evening to test it out. I still think it is possible to access these vars :)

Cheers, Chris

Am 29.11.2010 15:02 schrieb "Julien Ponge" <julien...@gmail.com>:

Julien Ponge

unread,
Nov 29, 2010, 9:27:29 AM11/29/10
to us...@izpack.codehaus.org

jason godbold-smith

unread,
Nov 30, 2010, 3:58:53 PM11/30/10
to us...@izpack.codehaus.org
Thanks a lot, this really helped with what i was doing. The option to start-up izPAck with the DTRACE option is also invaluable piece of info to remember.

Regards

Julien Ponge

unread,
Nov 30, 2010, 4:03:26 PM11/30/10
to us...@izpack.codehaus.org
Cool!

cimnine

unread,
Nov 30, 2010, 4:27:36 PM11/30/10
to us...@izpack.codehaus.org

Yes it is. And it definetly is too less documented. Great I could help you.
~Chris

Am 30.11.2010 22:00 schrieb "jason godbold-smith" <jgodbo...@googlemail.com>:

Julien Ponge

unread,
Nov 30, 2010, 4:36:48 PM11/30/10
to us...@izpack.codehaus.org
Well the docs can be edited from
http://docs.codehaus.org/display/IZPACK/User+documentation :-)

--

Reply all
Reply to author
Forward
0 new messages