Skip to Content
avatar image
Former Member

NoClassDefFoundError

Hi all,

I tried using sapmake tool to convert par to sda file. I have set the path and classpath as mentioned in the document. But when trying to convert, I am getting error as <b>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main</b>.

I searched many posts reagrding this but none work. Please help me resolve this issue.

Regards,

Harini S

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 26, 2008 at 05:27 AM

    Hi,

    This is caused by the ANT_HOME variable being set incorrectly.

    --- apache.org ---

    Create an ANT_HOME environment variable to point the directory ${ant.home}, and modify the PATH environment variable to include directory "${ant.home}/bin" in its list. This makes the "ant" command line script available, which will be used to actually perform the build.

    --- end ---

    You need to remove '/bin' and then you'll be fine.

    It may solve teh problem please dont get me wrong if it dosent fix it. (One more thing you can do is compare the variable of the working server with this one and may be you get some idea.)

    Rgds

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 04, 2008 at 09:40 AM

    My studio was installed in different folder. Once that was installed in default folder, the error was resolved.

    Add comment
    10|10000 characters needed characters exceeded