cancel
Showing results for 
Search instead for 
Did you mean: 

TypeError: Cannot read property 'MongoClients' of undefined

SOLVED
Contributor

TypeError: Cannot read property 'MongoClients' of undefined

Hi everybody,

I'm trying to run my tests with testexecute, but when I run tests I got an error: 'TypeError: Cannot read property 'MongoClients' of undefined'.

I imported java mongo classes in my current project.

This  is the line where i call object Mongoclients.

 

var mongoClient = JavaClasses.com_mongodb_client.MongoClients.create_4(DBConnectionStrAzure);

 

Why in my project work and in another pc with testexecute not?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: TypeError: Cannot read property 'MongoClients' of undefined

Solved,

in TExecute->options->java bridge jre was blanck, I added jvm path

View solution in original post

1 REPLY 1
Highlighted
Contributor

Re: TypeError: Cannot read property 'MongoClients' of undefined

Solved,

in TExecute->options->java bridge jre was blanck, I added jvm path

View solution in original post