cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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