During the retrieve step (trying to retrieve the code) while trying to deploy the code in the target environment I get the following error:
Retrieve warnings (1): [sf:retrieve] package.xml - Entity type 'ApexClass' is not available in this organization
In the package.xml, I have provided the ApexClass metadata type. Btw, I get this error in a certain org but dont get this in other orgs while trying to retrieve using the migration toolkit.