Python platform.java_ver() Examples

The following are 13 code examples of platform.java_ver(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module platform , or try the search function .
Example #1
Source File: test_platform.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #2
Source File: test_platform.py    From BinderFilter with MIT License 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #3
Source File: test_platform.py    From oss-ftp with MIT License 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #4
Source File: test_platform.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #5
Source File: test_platform.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #6
Source File: test_platform.py    From gcblue with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #7
Source File: 300_JythonConsoleCommand.py    From openhab-helper-libraries with Eclipse Public License 1.0 5 votes vote down vote up
def execute(self, args, console):
        print('architecture:', platform.architecture()[0])
        print('java_ver:', platform.java_ver())
        print('node:', platform.node())
        print('processor:', platform.processor())
        print('python_compiler:', platform.python_compiler())
        print('python_implementation:', platform.python_implementation())
        print('python_version:', platform.python_version())
        print('release:', platform.release()) 
Example #8
Source File: test_platform.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #9
Source File: test_platform.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver() 
Example #10
Source File: test_support.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def get_java_version(version=None):
        # returns (1, 8, 0, 121) for version = "1.8.0_121", meaning
        # Java 8 update 121, etc.. Conforms to:
        # http://www.oracle.com/technetwork/java/javase/versioning-naming-139433.html
        # and not yet http://openjdk.java.net/jeps/223 .
        if version is None:
            version = platform.java_ver()[0]
        parse = re.match("(\d+)\.(\d+)\.(\d+)_(\d+)", version)
        if parse:
            return tuple((int(x) for x in parse.groups()))
        else:
            return () 
Example #11
Source File: test_platform.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res)) 
Example #12
Source File: test_support.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def get_java_version(version=None):
        # returns (1, 8, 0, 121) for version = "1.8.0_121", meaning
        # Java 8 update 121, etc.. Conforms to:
        # http://www.oracle.com/technetwork/java/javase/versioning-naming-139433.html
        # and not yet http://openjdk.java.net/jeps/223 .
        if version is None:
            version = platform.java_ver()[0]
        parse = re.match("(\d+)\.(\d+)\.(\d+)_(\d+)", version)
        if parse:
            return tuple((int(x) for x in parse.groups()))
        else:
            return () 
Example #13
Source File: test_platform.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res))