[jruby] JRuby Digest, Vol 23, Issue 1

Cris Shupp cshupp at gmail.com
Wed Jul 5 21:23:22 JST 2017


Ronald,

Try:

java.lang.System.properties['java.version']


Cris

On Wed, Jul 5, 2017 at 7:10 AM, <jruby-request at ruby-lang.org> wrote:

> Send JRuby mailing list submissions to
>         jruby at ruby-lang.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/jruby
> or, via email, send a message with subject or body 'help' to
>         jruby-request at ruby-lang.org
>
> You can reach the person managing the list at
>         jruby-owner at ruby-lang.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JRuby digest..."
>
> Today's Topics:
>
>    1. Finding out Java version (changepoint_advi.fischer at extaccount.com)
>    2. Re: Finding out Java version (Christian MICHON)
>    3. Re: Finding out Java version
>       (changepoint_advi.fischer at extaccount.com)
>    4. Re: Finding out Java version (christian)
>    5. Re: Finding out Java version
>       (changepoint_advi.fischer at extaccount.com)
>
>
> ---------- Forwarded message ----------
> From: changepoint_advi.fischer at extaccount.com
> To: jruby at ruby-lang.org
> Cc:
> Bcc:
> Date: Wed, 05 Jul 2017 10:37:54 +0000
> Subject: [jruby] Finding out Java version
> I know that I can find the Jruby version from within a JRuby program by
>
> JRUBY_VERSION
>
> Is there also a way to get the version of the Java Virtual Machine I'm
> running on?
>
> Ronald
>
> If you are not the addressee, please inform us immediately that you have
> received this e-mail by mistake, and delete it. We thank you for your
> support.
>
>
>
>
> ---------- Forwarded message ----------
> From: Christian MICHON <christian.michon at gmail.com>
> To: JRuby project mailing list <jruby at ruby-lang.org>
> Cc:
> Bcc:
> Date: Wed, 5 Jul 2017 12:58:00 +0200
> Subject: Re: [jruby] Finding out Java version
> From cmd line:
> $ jruby -v
> $ java -version
>
> From ruby script:
> require 'java'
> Java::JavaLang::System.getProperty 'java.version'
>
>
> On Wed, Jul 5, 2017 at 12:37 PM, <changepoint_advi.fischer at extaccount.com>
> wrote:
>
>> I know that I can find the Jruby version from within a JRuby program by
>>
>> JRUBY_VERSION
>>
>> Is there also a way to get the version of the Java Virtual Machine I'm
>> running on?
>>
>> Ronald
>>
>> If you are not the addressee, please inform us immediately that you have
>> received this e-mail by mistake, and delete it. We thank you for your
>> support.
>>
>>
>
>
> ---------- Forwarded message ----------
> From: changepoint_advi.fischer at extaccount.com
> To: jruby at ruby-lang.org
> Cc:
> Bcc:
> Date: Wed, 05 Jul 2017 11:05:09 +0000
> Subject: Re: [jruby] Finding out Java version
>
> I see …. So, no chance to get it without doing a
>
>
>
>    require ‘java’.
>
>
>
> I had hoped that there would be a constant already available. Thanks a lot.
>
>
>
> *Von:* JRuby [mailto:jruby-bounces at ruby-lang.org] *Im Auftrag von *Christian
> MICHON
> *Gesendet:* Mittwoch, 5. Juli 2017 12:58
> *An:* JRuby project mailing list <jruby at ruby-lang.org>
> *Betreff:* Re: [jruby] Finding out Java version
>
>
>
> From cmd line:
> $ jruby -v
>
> $ java -version
>
> From ruby script:
>
> require 'java'
> Java::JavaLang::System.getProperty 'java.version'
>
>
>
> On Wed, Jul 5, 2017 at 12:37 PM, <changepoint_advi.fischer at extaccount.com>
> wrote:
>
> I know that I can find the Jruby version from within a JRuby program by
>
> JRUBY_VERSION
>
> Is there also a way to get the version of the Java Virtual Machine I'm
> running on?
>
> Ronald
>
> If you are not the addressee, please inform us immediately that you have
> received this e-mail by mistake, and delete it. We thank you for your
> support.
>
>
>
> If you are not the addressee, please inform us immediately that you have
> received this e-mail by mistake, and delete it. We thank you for your
> support.
>
>
>
> ---------- Forwarded message ----------
> From: christian <m.kristian at web.de>
> To: JRuby project mailing list <jruby at ruby-lang.org>
> Cc:
> Bcc:
> Date: Wed, 5 Jul 2017 13:06:13 +0200
> Subject: Re: [jruby] Finding out Java version
> ENV_JAVA['java.version']
>
> On Wed, Jul 5, 2017 at 1:05 PM, <changepoint_advi.fischer at extaccount.com>
> wrote:
>
>> I see …. So, no chance to get it without doing a
>>
>>
>>
>>    require ‘java’.
>>
>>
>>
>> I had hoped that there would be a constant already available. Thanks a
>> lot.
>>
>>
>>
>> *Von:* JRuby [mailto:jruby-bounces at ruby-lang.org] *Im Auftrag von *Christian
>> MICHON
>> *Gesendet:* Mittwoch, 5. Juli 2017 12:58
>> *An:* JRuby project mailing list <jruby at ruby-lang.org>
>> *Betreff:* Re: [jruby] Finding out Java version
>>
>>
>>
>> From cmd line:
>> $ jruby -v
>>
>> $ java -version
>>
>> From ruby script:
>>
>> require 'java'
>> Java::JavaLang::System.getProperty 'java.version'
>>
>>
>>
>> On Wed, Jul 5, 2017 at 12:37 PM, <changepoint_advi.fischer at extaccount.com>
>> wrote:
>>
>> I know that I can find the Jruby version from within a JRuby program by
>>
>> JRUBY_VERSION
>>
>> Is there also a way to get the version of the Java Virtual Machine I'm
>> running on?
>>
>> Ronald
>>
>> If you are not the addressee, please inform us immediately that you have
>> received this e-mail by mistake, and delete it. We thank you for your
>> support.
>>
>>
>>
>> If you are not the addressee, please inform us immediately that you have
>> received this e-mail by mistake, and delete it. We thank you for your
>> support.
>>
>>
>
>
> ---------- Forwarded message ----------
> From: changepoint_advi.fischer at extaccount.com
> To: jruby at ruby-lang.org
> Cc:
> Bcc:
> Date: Wed, 05 Jul 2017 11:10:12 +0000
> Subject: Re: [jruby] Finding out Java version
>
> Aaaaah, thank you. This suits much better.
>
>
>
> Ronald
>
>
>
> *Von:* JRuby [mailto:jruby-bounces at ruby-lang.org] *Im Auftrag von *
> christian
> *Gesendet:* Mittwoch, 5. Juli 2017 13:06
> *An:* JRuby project mailing list <jruby at ruby-lang.org>
> *Betreff:* Re: [jruby] Finding out Java version
>
>
>
> ENV_JAVA['java.version']
>
>
>
> On Wed, Jul 5, 2017 at 1:05 PM, <changepoint_advi.fischer at extaccount.com>
> wrote:
>
> I see …. So, no chance to get it without doing a
>
>
>
>    require ‘java’.
>
>
>
> I had hoped that there would be a constant already available. Thanks a lot.
>
>
>
> *Von:* JRuby [mailto:jruby-bounces at ruby-lang.org] *Im Auftrag von *Christian
> MICHON
> *Gesendet:* Mittwoch, 5. Juli 2017 12:58
> *An:* JRuby project mailing list <jruby at ruby-lang.org>
> *Betreff:* Re: [jruby] Finding out Java version
>
>
>
> From cmd line:
> $ jruby -v
>
> $ java -version
>
> From ruby script:
>
> require 'java'
> Java::JavaLang::System.getProperty 'java.version'
>
>
>
> On Wed, Jul 5, 2017 at 12:37 PM, <changepoint_advi.fischer at extaccount.com>
> wrote:
>
> I know that I can find the Jruby version from within a JRuby program by
>
> JRUBY_VERSION
>
> Is there also a way to get the version of the Java Virtual Machine I'm
> running on?
>
> Ronald
>
> If you are not the addressee, please inform us immediately that you have
> received this e-mail by mistake, and delete it. We thank you for your
> support.
>
>
>
>
> If you are not the addressee, please inform us immediately that you have
> received this e-mail by mistake, and delete it. We thank you for your
> support.
>
>
>
> If you are not the addressee, please inform us immediately that you have
> received this e-mail by mistake, and delete it. We thank you for your
> support.
>
>
> _______________________________________________
> JRuby mailing list
> JRuby at ruby-lang.org
> http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/jruby
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ruby-lang.org/pipermail/jruby/attachments/20170705/b2c011ea/attachment-0001.html>


More information about the JRuby mailing list