Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have just downloaded the new jdk 9.0.1 from official site as for textpad and notepad ++ but I have a problem when adding a path because on internet I find things like jdk1.8.0_73 which is not my case I have other folders such as

Java
jdk-9.0.1
jre1.0.8_73
jre-9.0.1


and I tried everything I found online still getting same error unrecognized internal or external ... whatever anyone knows how to fix it also forgot to mention that I don't have a file called "path" in system variables ? should I add one and how ?? thanks a lot for your help

What I have tried:

I tried to do what I found online but there is I found things like jdk1.0.8_73 but I have jre1.0.8_144 and not jdk also path is not in my system variables I don't know how to add it . thanks for your help
Posted
Updated 18-Oct-17 17:23pm
Comments
Richard MacCutchan 19-Oct-17 5:04am    
If you do not have a PATH variable in your system then something is seriously wrong. Type "set P" in a command window and see what you get.

What is your absolute path fir your jdk?
I am guessing that you are using windows. But what version?
Anyway try the following link[^]
 
Share this answer
 
To add jdk path to system varialbles follow below method
(This was written under window 8.1 64-bit version)

first you need to install valid java development kit (jdk) , can downloaded from oracle
Then install it.

You need to copy the installed path for the following directory (C:\programe files\java\jdk1.X.X\bin).

Then open 'advanced system settings' through system properties in your computer.

Then you can open 'Environmental variables' and there under 'system variables' you can find a entry called 'path' then edit it.(This is surely appending values and do not delete previous values)

Add ';'to the last variable value and paste copied jdk path to it.

Then Click OK and close those dialog boxes and to ensure path is correctly set try following.
Open new command prompt and type 'java -version' without quotes and press enter if it returns current java version in your system you are done.

for detailed instructions use these links
link1[^]
link2[^]

for the first link please skip the steps that describe 'create new folder named mydocs' and 'open that folder'.

Do not get confused with jdk version. they will vary according to the downloaded and installed version.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900