UFT2023_Not able to Identify JAVA application

Hi Team,

Not able to Identify JAVA application using object spy, it is identifying as window object.

when i record on JAVA application able to generate the script as below.

JavaWindow("X").JavaDialog("Y").JavaEdit("username").Set "testuser"

rerun of recorded script not identifying java application again.

Please help me what could be the issue..?

Regards,

Parents
  • 0  

    Please try to use below command in bat file to run your application:

    set PathToJRE= C:\Program Files\Java\jdk-17\bin
    cd %PathToJRE%
    start java --add-modules=java.desktop --add-opens java.desktop/sun.awt=ALL-UNNAMED --add-opens java.desktop/sun.awt.image=ALL-UNNAMED --add-opens java.desktop/java.awt=ALL-UNNAMED -jar "C:\AUT\Java17\demo.jar"

    Note: 

    PathToJRE is your own JDK path

    "C:\AUT\Java17\demo.jar" changes to your own Java application path 

  • 0 in reply to   

    when i run this batch file, we got error " java.destop is not recogonized as an internal or external command, operable program or batch file" how to fix this issue

Reply Children
No Data