How do I find out in which version of Java I use Perl programming and using this jar file based on this?
in perl script,
@args = ("java", "-version"); system(@args) == 0 or die "system @args failed: $?"
or rather just
system("java -version");
You can grab a Java version with a Perl script using backlinks.
$version = `java -version`;
Also see: How can I grab STDERR from an external command? for more alternatives than you can shake a stick.
"java -version" , .
"perl -v" Perl, .
use IO::Handle; open OUTPUT, '>', "output.txt" or die $!; STDERR->fdopen( \*OUTPUT, 'w' ) or die $!; print `java -version`;
System...
If you are going to export new Java
system('export PATH=/usr/java1.6/bin:$PATH');
Source: https://habr.com/ru/post/1744805/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744800/aspnet-memcached-where-and-when-should-i-check-for-conditions-to-invalidate-data&usg=ALkJrhgeERbk3uqDUCySJ79ZbtxwULlkUgPHP: changing text color based on $ value - phpView CIL Portable executable - exeHow to get program output in Python? - c ++отключить автозаполнение браузера для ajax: AutoCompleteExtender - .netMany regular expressions on strings - javascriptUsing OpenCV Android Porting - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744808/twisted-reactor-stops-too-early&usg=ALkJrhgogXg10H4CZVEMeO1LqTWjlJ0u8Agit-gui disagrees with git status: why? - gitHow to configure AutoMapper if there is no ASP.net application? - c #All Articles