problem running java in window in system symbol

2

Having installed the jdk I get a message in the window of the

  

system symbol "javac is not recognized as an internal command or   external "

I do not know what else to do but someone give me a solution

    
asked by Danny 05.12.2018 в 04:35
source

1 answer

3

If you are working on Windows you should proceed as follows

  • Go to the local disk (usually C) and find the Java installation folder you should have already made; would be similar to the following
  • C:\Program Files (x86)\Java
    

    After that enter the folder that is inside, until the cap called bin, the route should be similar to this

    C:\Program Files (x86)\Java\jre1.8.0_181\bin
    

    Finally this route must be registered, in the environment variables, so that it is available for the whole system:

  • Right click on This Team
  • Click on Properties
  • Click on Advanced System Settings
  • Click on Environment variables
  • For the previous step, you have two options

    User Variables-> This option will allow you to configure a command such as java or javac only for your session

    System variables- > We will use this option to leave the commands available from any user session started

  • In system variables, we look for what is called Path Eye that is called as such
  • We click on edit or add
  • Finally we add the full path that we copied above; what is: C:\Program Files (x86)\Java\jre1.8.0_181\bin
  • You should bear in mind that if your operating system is Windows 10, for example, it is enough to Click on edit and add to add the path to the system variables

    Otherwise, it should look similar to this

    ruta_deotro_programa_que_tengas;C:\Program Files (x86)\Java\jre1.8.0_181\bin
    

    That is to say as you can notice we separate the route of a program from another one by means of the semicolon ( this is necessary only if the SO is inferior to WIN10 )

    Final result

    C:\Users\User>java -version
    java version "1.8.0_181"
    Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
    Java HotSpot(TM) Client VM (build 25.181-b13, mixed mode)
    
        
    answered by 05.12.2018 в 04:56