(jdk_path: str)
| 77 | return jdk_path |
| 78 | |
| 79 | def test_jdk(jdk_path: str) -> bool: |
| 80 | java_bin = os.path.join(jdk_path, "bin/java") |
| 81 | if os.path.exists(java_bin): |
| 82 | out, err = public.ExecShell("{} -version 2>&1".format(java_bin)) |
| 83 | # type: str, str |
| 84 | if out.lower().find("version") != -1: |
| 85 | return True |
| 86 | return False |
| 87 | |
| 88 | class TomCat: |
| 89 |