cancel
Showing results for 
Search instead for 
Did you mean: 

DefaultHander cannot be resolved to a type

Former Member
0 Kudos

Hello -

I am using Eclipse to write a java mapping program but even before compilation, Eclipse IDE shows DefaultHandler as cannot be resolved to a type.

I have done the following imports:

import com.sap.aii.mapping.api.StreamTransformation;

import org.xml.sax.*;

import java.io.*;

import org.xml.sax.helpers.DefaultHandler;

import javax.xml.parsers.SAXParserFactory;

import java.util.Map;

import javax.xml.parsers.SAXParser;

I have added only aii_map_api.jar in the External JAR's in Eclipse.

What other imports should be done to avoid this error?

Thanks,

Tirumal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Tirumal ,

If you are getting the same error as you have written in the thread subject,

<b>DefaultHander</b> cannot be resolved to a type , then note that if it is reffering to an imported class <b>DefaultHander</b> which should be <b>DefaultHandler</b>

moorthy
Active Contributor
0 Kudos

After importing all the packages, did u build your project ? Then check it. Also try with closing your project and open the project once again. Just a thought.

REgards,

Moorthy

Former Member
0 Kudos

Hello Moorthy -

I copied the statement from another source and then overwrote the code i had, then it worked.

No clue what went wrong. But it works.

Thanks for your response.

Tirumal