Skip to content

Commit acada2f

Browse files
Updated the java path when node starts
1 parent fd897b2 commit acada2f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Framework/install_handler/android/java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def update_java_path():
7575
"""Add Java binaries to PATH and set JAVA_HOME for the current process (following Node.js pattern)."""
7676
java_path = get_java_path()
7777

78-
print("Updating java path for")
78+
print("Updating java path for the current session")
7979
# Check if java exists
8080
if not java_path.exists():
8181
print("Java not found for PATH update.")

node_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from Framework.Built_In_Automation.Web.Selenium.utils import ChromeExtensionDownloader
3636
from cryptography.hazmat.primitives.asymmetric import rsa
3737
from cryptography.hazmat.primitives import serialization
38+
from Framework.install_handler.android.java import update_java_path
3839
from settings import ZEUZ_NODE_PRIVATE_RSA_KEYS_DIR
3940
from Framework.install_handler.long_poll_handler import InstallHandler
4041
from server.mobile import upload_android_ui_dump
@@ -1337,6 +1338,7 @@ async def main():
13371338

13381339
# Setup Node.js and Appium before other operations
13391340
setup_nodejs_appium()
1341+
update_java_path()
13401342

13411343
update_outdated_modules()
13421344
asyncio.create_task(start_server())

0 commit comments

Comments
 (0)