# licence error: k4.lic

**URL:** <https://forum.kx.com/t/licence-error-k4-lic/13587>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [August 19, 2022, 12:00am UTC](https://forum.kx.com/t/licence-error-k4-lic/13587 "2022-08-19T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xulx](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@xulx](https://forum.kx.com/u/xulx)\
**Post date:** [August 19, 2022, 12:00am UTC](https://forum.kx.com/t/licence-error-k4-lic/13587/1 "2022-08-19T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/licence-error-k4-lic](https://learninghub.kx.com/forums/topic/licence-error-k4-lic)

I applied for the Non-Commercial 64-bit edition of kdb+ about one and half months ago. I just started to use it. I put the license file in the `QHOME` folder as required and run the q file. These is still the license error.

---

<div class="post-metadata">

**Author:** ![cillianreilly](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cillianreilly](https://forum.kx.com/u/cillianreilly)\
**Post date:** [August 19, 2022, 12:00am UTC](https://forum.kx.com/t/licence-error-k4-lic/13587/2 "2022-08-19T00:00:00Z")

</div>

What is your QHOME variable set to?

C:Users\>echo %QHOME%

C:q

You may need to set it to the correct folder location. It is also helpful to add q to your PATH while you are at it:

C:Users\>setx QHOME “D:kDBw64”

C:Users\>setx PATH “%PATH%;D:kDBw64w64”

Full installation instructions here: [https://code.kx.com/q/learn/install](https://code.kx.com/q/learn/install")

(Being pedantic, you can also remove the top level w64 folder in order to neaten up the environmental variables mentioned.)

---

<div class="post-metadata">

**Author:** ![baichen](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@baichen](https://forum.kx.com/u/baichen)\
**Post date:** [August 19, 2022, 12:00am UTC](https://forum.kx.com/t/licence-error-k4-lic/13587/3 "2022-08-19T00:00:00Z")

</div>

for default installation, you should put the kc.lic file in your $HOME/q directory :

baichen@MacProM1:~/q$ ls

kc.lic m64/ q.k

&nbsp;
