How to find the license file or information used by the IDE
The active license can be observed in the Help | Register dialog or Register link at the bottom of the product Welcome Screen (when there is no project open).
When using JetBrains Account or the new offline activation key, information is encrypted and is stored in the system registry, therefore there is no easy way to access it and copying it to another system will not work (a machine-specific token is used).
When using the license server, it's stored in the <product><version>.key file under the IDE configuration directory.
Please note that this file has UCS2 (2-byte Unicode) encoding and you can't view it in basic editors like Notepad, you need to open it in a Unicode-aware editor.
Please sign in to leave a comment.
We have a classroom license for WebStorm and I'd like to install it for all users on our computer lab systems so that all of our students can use it. With IntelliJ IDEA, all I had to do was copy the license file to bin/idea.license of the IntelliJ installation directory, and it picked up the license without each user having to have a license file installed in his/her home directory.
Is the same possible with WebStorm? I tried copying the webstorm60.key to bin/webstorm60.license, bin/webstorm.license, bin/idea.license, etc., but it still asked me for a license key each time I opened WebStorm. Upon running WebStorm through strace, it doesn't appear that it is even looking for any license files other than in ~/.WebStorm6/config.
Please advise. Thank you.
Jeff, it's not possible with WebStorm, you have to use the License Server or install the the license manually for every user.
Contact the sales team for more details about the License Server.
Too bad. Thanks for the quick response.
The referenced file appears to Win7 as a registry key file. You can open it in Notepad. The formatting is whacked, but it is displayed as plain text. SciTE opens it with all the NUL characters visible. SublimeText 2 opens it as hex, because of the NUL characters. Since ST doesn't have a hex editor, you can't change it back to characters. The only editor I found that would properly handle it is UltraEdit. Set the encoding to UTF-16LE and the text is properly formatted. IMO, this is fairly whacked, since an "upgrade" consists of uninstalling the old version and then installing a new copy of the new version. Registration is not preserved, so the user is left to reenter the license key. A legitimate upgrade should carry forward the licensing information.
how to find license file
osx: no file matching <product><version>.key in the ~/Library/Preferences directory.
LicenseID listed in Toolbox Subscriptions is something like: KMQPPEQQ577 - where can one find matching key in OSX?
There is no .key file if you have registered via your JetBrains account. The key is not stored on the machine, a ticket is obtained from the JetBrains server and is stored in the registry and is refreshed periodically.
How could we get a key to activate command-line based PhpStorm instance? We'd like to automate inspection results using bin/inspect.sh script. The question now is how to activate the licence as we cannot copy the file (it's not in the host machine). It's also problematic to run GUI as we don't want to have it there.
Is it possible to activate somehow using MacOS to have the file available? I had activated it using account, then removed the licence and provided the licence key – either way I cannot find any licence file in configuration directory.
License data is no longer stored in the .key file, Java Registry is used for that instead. It stores the cached auth tokens.
Java Registry is inside `~/Library//Preferences/com.apple.java.util.prefs.plist` on Mac.
Ok, thanks. Where's it stored in Linux? We're thinking of integrating it inside docker container – we could even set it up with GUI, but we need to know which files to keep there. We're thinking of basing the image on alpine, unless this makes some problems with the registry.
~/.java/.userPrefs on Linux.
I've tried to clear `~/.java/.userPrefs` entirely, restart the PhpStorm and input the credentials. Afterwards, after closing PhpStorm, copied the files to be available in linux container. I'm trying to run bin/inspect.sh there. I get `No valid license found` error.
What could cause this? I have the same files inside the container (~/.java/.userPrefs). Do the tokens depend on the system (maybe just copying them to another system would not work somehow)?
I've also quit all PhpStorm processes in the host, but it's the same.
It appears you cannot transfer the registration performed via JetBrains Account method from one system to another. You should use the offline activation code instead and share the .key file or use the local license server with the automatic discovery.
Serge Baranov As I use JetBrains Account method to active IDEA, there is no way that I can retrive offline activation code...
Offline code is available at account.jetbrains.com. Note that not all account types have this option. Student/academic accounts do not have offline registration option.
Yes,I use student account and does not find offline registration option.But my lab env is offline...
https://www.jetbrains.com/student/
No, starting from January 2019 it is not possible to download offline activation codes for educational license packs. Please use your JetBrains Account credentials to register your student license.
You cannot use JetBrains student license in the 100% offline environment. The only option would be to run the license server on the machine which has connection to the Internet and to the computers in the LAB where IDE is running: https://www.jetbrains.com/help/license_server/getting_started.html .
Serge Baranov this way didn't work for me,lab env didn't have any internet outcome for security issue.
Sorry for that, but there's no other way.
The licence information for MacOS is stored in the `~/Library/Preferences` folder. For example:
`~/Library/Preferences/PyCharm2019.3`