Skip to Content
avatar image
Former Member

java mapping error

dear all,

i am trying the java mapping blog /people/sankararao.bhatta/blog/2008/07/27/java-mapping-secrets-revealed .

i did all the steps but when i am compiling the java file it is throwing an error

package com.sap.aii.mapping.api dose not exist.and hence can not find StreamTransformation class error.

i already paste the aii.map.api file in bin folder .

can u tell me where is the error.

regards,navneet

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Feb 10, 2009 at 06:35 AM

    Hi,

    add aii.map jar file to your project, its unable to acces the jar file.

    If you are using NWDS select add jar file import it.

    it will work fine.

    Cheers,

    Raj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 10, 2009 at 07:19 AM

    Try to import the jar to your package and make your it can access that class.

    what is the IDE you are using ?

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 10, 2009 at 08:05 AM

    Hi,

    Please follow these steps after creating a java project

    Right click on the project you have created. Select New Folder.Specify lib as the name for the new folder. Drag and drop the u201Caii_map_api.jaru201D from your hard drive to the lib folder.

    Right click on the project. Select Properties->Java Build Path . Click on Add Jars and select the aii_map_api.jar form the lib folder of the current project. Click on OK.This sets the classpath for the project.

    Right click on the project. Select New->Other->Java->Class. Click on Next. Specify the following attributes.

    Package :

    Name : e.g. TestSAXMappingProgram

    SuperClass : org.xml.sax.helpers.DefaultHandler

    Interfaces : com.sap.aii.mapping.api.StreamTransformation

    Note: You can paste the SuperClass name but for adding the interface name click on the Add button and search and select the StreamTransformation interface.

    Click on Finish.

    Hope this helps to eliminate the error.

    regards,

    bhanu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 10, 2009 at 12:50 PM

    Hi Navneet,

    Add the jar file in the Libraries section. Follows these setps, This is for Eclipse, You have similar path for Netbeans too.

    Go to 1) Project->Properties.

    2) Select Java Build Path and Select the Libraries tab and then add the jar file.

    If you have .jar file in your workbench, use Addjar option, if that is not in your workbench use the option

    Add external jar, that easy way. I bet you will get that...:)

    Regards.

    Krishna..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 11, 2009 at 04:59 AM

    thanks Krishna,

    it worked.

    Add comment
    10|10000 characters needed characters exceeded