Java¶
-
class
apkinjector.java.
Java
¶ A utility class for running Java commands.
-
static
install
(path: str = None, progress_callback: Callable = None) → None¶ Installs java
- Parameters
path (str, optional) – Path to existing java if not found will use the system installed one or download it. Defaults to None.
progress_callback (Callable, optional.) – Callback to be called when install progress changes. Defaults to None.
-
static
run_jar
(jar_file: str, command: str) → str¶ Execute a jar file with the provided command.
- Parameters
jar_file (str) – Path to the jar file to be executed.
command (str) – Command to be passed when executing the jar file.
- Returns
Stdout of the command.
- Return type
str
-
static