#'Java' is not recognised outside jdk/bin
1 messages ยท Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
This issue occurs when the Java executable is not added to the system's PATH variable. To fix this, follow these steps:
- Open the Control Panel on your computer.
- Go to System and Security.
- Click on System.
- Click on Advanced system settings.
- In the System Properties window, click on the "Environment Variables" button.
- In the "System variables" section, find the "Path" variable and click on "Edit".
- Add a new entry by clicking on "New" and enter the path to your JDK's bin directory (e.g., C:\Program Files\Java\jdk1.x.x_xx\bin).
- Click OK to save the changes.
After adding the JDK's bin directory to the PATH variable, you should be able to run Java commands from any location in your command prompt or terminal window.
Did you restart cmd?
restarted cmd and pc
this is not my personal pc, I wonder if my issue is related to permissions - admin access
You don't need to restart your pc
Still doesn't doesn't work?
Did you save the changes you did to env variables?
yes
Try to edit the path in user, not system
Shouldn't the JAVA_HOME variable be setup for system environment, I only see it for user env.
Or even with that, maybe try setting path for user env then
you need to add it to your Path