Forum Discussion

MulgraveTester's avatar
MulgraveTester
Frequent Contributor
8 years ago

JavaClasses - Object required

This VBS code reports Object required: 'JavaClasses'.

 

sub testPDF
  fileName = "mypath\test.pdf"
  set PDFReport = JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3(fileName) 
End Sub

 

I was reading PDF files successfully in TC11 (here) even after Java updates (here)

I haven't run this test for a long while and now find that it is broken in TC 12.

 

I updated the java bridge in Tools \ Options \ Engines \ Java Bridge to point to the current Java VM (C:\Program Files\Java\jre1.8.0_141\bin\server\jvm.dll)

My Java Bridge in Tools \ Current project properties \ Java Bridge is still configured as before "..\pdfbox-app-1.8.12.jar", which I know was working before in TC11.

 

Java Application Support (File \ Install Extensions \ Desktop \ Java Classes Support) is installed.

 

Can anyone, who is actually reading PDF files in TC 12, please help shed light on this.

 

Many thanks.

 

 

 

  • SOLVED

    I had to repair install TestComplete 12.31

    This cleared the Java Bridge so I had to set it again.

    The code worked after that.

     

    5 HOURS

  • MulgraveTester's avatar
    MulgraveTester
    Frequent Contributor

    SOLVED

    I had to repair install TestComplete 12.31

    This cleared the Java Bridge so I had to set it again.

    The code worked after that.

     

    5 HOURS