hi Kamelia Bakiri,
from your question, your CW can't recognize your license.dat file.
some customers have this problem because of the environment variable setting:

check if the LM_LICENSE_FILE path includes the license.dat of Codewarrior, please suppress following environment variable: LM_LICENSE_FILE in the right path. The environment variable can be setting by click "start", "settings", "control panel", "system", "Advanced", "environment variable". (See attached screenshot) the LM_LICENSE_FILE should be something like: {your CW install}\license.dat
if the problem can not be solved, more information is needed from you:
1. your CW version: Start the IDE and click on Help | About Freescale CodeWarrior. Click on Installed Products.Save all info displayed into a txt file.
2. your license.dat file
your license file is your personal asset, please don't share it here in public.
I suggest you send above information to NXP support by submitting a case:
How to submit a new question for NXP Support
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------