def java_ver(release='', vendor='', vminfo=('', '', ''), osinfo=('', '', '')):
 try:
  import java.lang
 except ImportError:
  return (release, vendor, vminfo, osinfo)
 vendor = _java_getprop('java.vendor', vendor)
 release = _java_getprop('java.version', release)
 (vm_name, vm_release, vm_vendor) = vminfo
 vm_name = _java_getprop('java.vm.name', vm_name)
 vm_vendor = _java_getprop('java.vm.vendor', vm_vendor)
 vm_release = _java_getprop('java.vm.version', vm_release)
 vminfo = (vm_name, vm_release, vm_vendor)
 (os_name, os_version, os_arch) = osinfo
 os_arch = _java_getprop('java.os.arch', os_arch)
 os_name = _java_getprop('java.os.name', os_name)
 os_version = _java_getprop('java.os.version', os_version)
 osinfo = (os_name, os_version, os_arch)
 return (release, vendor, vminfo, osinfo)

def java_ver ( release = '' , vendor = '' , vminfo = ( '' , '' , '' ) , osinfo = ( '' , '' , '' ) ) : try : import java . lang except ImportError : return ( release , vendor , vminfo , osinfo ) vendor = _java_getprop ( 'java.vendor' , vendor ) release = _java_getprop ( 'java.version' , release ) ( vm_name , vm_release , vm_vendor ) = vminfo vm_name = _java_getprop ( 'java.vm.name' , vm_name ) vm_vendor = _java_getprop ( 'java.vm.vendor' , vm_vendor ) vm_release = _java_getprop ( 'java.vm.version' , vm_release ) vminfo = ( vm_name , vm_release , vm_vendor ) ( os_name , os_version , os_arch ) = osinfo os_arch = _java_getprop ( 'java.os.arch' , os_arch ) os_name = _java_getprop ( 'java.os.name' , os_name ) os_version = _java_getprop ( 'java.os.version' , os_version ) osinfo = ( os_name , os_version , os_arch ) return ( release , vendor , vminfo , osinfo )
version interface for jython .