Nios II is not freely licensed, but is available for evaluation through opencore. The Altera site says:
"
licensing No license keys are required for OpenCore Plus hardware evaluation of Altera IP cores. Third-party IP cores are delivered by the partner for evaluation with the appropriate license key.
Altera offers MegaCore functions on a per-seat, perpetual basis. The license fee includes first year maintenance and support. You must renew the maintenance contract to receive updates, bug fixes, and technical support beyond the first year.
You must obtain a full license for the Altera MegaCore IP core or Nios II processor core to generate non-time-limited programming files. To obtain a license file, contact your local altera representative (
http://www.alteraforum.com/corporate/contact/con-index.html) or altera tools support (
http://www.alteraforum.com/corporate/contact/info/con-phone.html)"
You say you are using a cracked version of Quartus. This is illegal and I suggest you stop using cracked software and posting questions about it. Alteraforum does not promote illegal use of vendor tools and products.