Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
RMotta2408
Creator II
Creator II

tJava - "cannot be resolved to a type" error

Hi there,

I've imported a Job and when I try to run the Job, I get the message "ValConnection_SAP cannot be resolved to a type".

 

The component, tJava, has the following instruction:

ValConnection_SAP conector = new ValConnection_SAP();

conector.main(null);

 

What must I do to get passed this error?

Thanks,

Rui

Labels (3)
4 Replies
Anonymous
Not applicable

Hello @Rui Motta​ ,

Please check the tJava's advanced settings/Import to make sure where the class ValConnection_SAP come from ?

I guess it come from the Code/Routine, if yes, please import the missing code/routines

 

Best regards

Aiming

RMotta2408
Creator II
Creator II
Author

Hi Aiming,

 

Good morning.

The advanced settings are as follows:

Maybe the problem is this line, right?

 

//import java.util.List;

import java.io.File;

import java.io.FileOutputStream;

import java.util.Properties;

 

import pt.com.digital.ValConnection_SAP();

 

Maybe the problem is this line, right?

import pt.com.digital.ValConnection_SAP();

Anonymous
Not applicable

@Rui Motta​ ,​ yes, it should be

import pt.com.digital.ValConnection_SAP;

 

RMotta2408
Creator II
Creator II
Author

But, if for some reason, the "import pt.com.digital.ValConnection_SAP;" instruction doesn't work, the error "ValConnection_SAP cannot be resolved to a type" is to be expected, right?