Keytool not found,,,i am new to unity, please help
Hello to all friends here. I am new here and this is my first post here. I hope you will help me. I am working on game and using unity for the first time. I just got a single problem; Keytool not found and so on, I
I request you to please guide me to solve it. As I told earlier, that I'm very beginner to development, so please guide me step wise and in detail, not only pro guide or tips.
Waiting for your response and thanks in advance.
Answer by Niks4Linux · Oct 29, 2015 at 09:19 AM
For keytool may be you haven't specified the CLASSPATH and PATH in the environment variables.
To set a classpath and path.Follow these stpes -
1) From the desktop, right click the Computer icon.
2) Choose Properties from the context menu.
3) Click the Advanced system settings link.
4) From the 'Advanced' tab Click Environment Variables. In the section User Variables, find the CLASSPATH environment variable and select it. Click Edit. If the CLASSPATH environment variable does not exist, click New.
5) In the Edit User Variable (or New User Variable) window, specify the value of the CLASSPATH environment variable.
6) Enter "CLASSPATH" in variable name and copy following path in variable value.
variable name = CLASSPATH
variable value = "C:\Program Files\Java\jdk1.7.0_45\lib"
7) Again add new Environment Variable and set name as PATH and copy following path as variable value
variable name = PATH
variable value = "C:\Program Files\Java\jdk1.7.0_45\bin"
8) Then click OK. Close all remaining windows by clicking OK.
9) And then restart Unity.You'll get your keytool.
Worked for me, although a bit different for Windows 10 today: https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/
@Niks4Linux NOT worked for me :( now i have NOTHING in Android Build Facebook Settings
If it's still not working after you add the environment variables, try a system reboot.
System reboot will work. Killing Unity Hub in Task $$anonymous$$anager (under background processes) will also work.
Answer by DoomGoober · Apr 18, 2020 at 12:56 AM
For anyone reading this in 2018 or later: Unity runs a background process called "Unity Hub" that will not pick up path changes unless you kill and restart Unity Hub.
So, before doing @Niks4Linux 's answer, click the ^ icon in the task bar, find Unity Hub, right click, Quit Unity Hub.
You can also do this via Task Manager, More Details, Processes, Background Processes, and End Task on Unity Hub.
Change the path variables, then restart Unity, and the error will go away.
Your answer
Follow this Question
Related Questions
Unity Facebook Instant-game Resolution 0 Answers
How to deploy my unity game on facebook? 0 Answers
Facebook SDK 7.8 Invalid Hash key 2 Answers
FB.API Callback issue 1 Answer
Facebook SDK causing Win32Exception 0 Answers