# Classpath

{% hint style="info" %}
ESTABLECE TODAS LAS RUTAS AL JDK 241, NO AL 251
{% endhint %}

Lo primero que deberemos hacer es clickear el icono de windows o pulsar el botón de windows

![](/files/-M96T0jJiluE5VFargBT)

Y buscamos lo siguiente: **Ver la configuración avanzada del sistema**

![](/files/-M96TT44VzJU5fbA433I)

Se nos abrirá la siguiente ventana y clickeamos en **Variables de entorno.**

![](/files/-M96TspJHt53YJ30poAa)

Clickeamos en nueva

![](/files/-M96U3ZJwkVi01n0eck7)

El nombre de la variable debe ser JAVA\_HOME y clickeamos en Examinar directorio

![](/files/-M96UJwzxqCz6_ezSYTT)

y vamos a Este equipo>Disco Local (C:)>Archivos de programa/Program Files>Java>JDK 1.8.0\_2XX

![](/files/-M96UlSlb5g8tkPaZI-X)

![](/files/-M96VOd5ZeLGvJvvuF6s)

{% hint style="info" %}
**ASEGÚRATE DE QUE SEA LA VERSIÓN JDK,&#x20;**~~**NO NOS SIRVE LA JRE**~~
{% endhint %}

Cuando hayamos seleccionado la carpeta bin, y abajo nos ponga Carpeta:bin, clickeamos en aceptar.

Ya tenemos la variable de JAVA\_HOME establecida y pulsamos aceptar.

![](/files/-M96Viza8C0DvRicr6Ka)

Ahora en las Variables del sistema buscamos Path, la seleccionamos y pulsamos editar

![](/files/-M96WPrvBeTjI2962k9R)

Clickeamos en Nuevo, examinar y volvemos a seleccionar la misma carpeta que hemos seleccionado antes

![](/files/-M98p95a8VDIVduFrt61)

Y eliminamos la otra ruta del path

![](/files/-M96XQUYjIauQJVZCTWW)

Pulsamos aceptar en todas las ventanas que se habian abierto y ya hemos acabado

{% hint style="danger" %}
Revisa que hayas puesto las rutas de la misma versión de Java si pones distintas rutas obtendrás un error.
{% endhint %}

Reinicia el PC y debería de haberse solucionado tu problema


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://darkbotes.gitbook.io/darkbot-es-guide/solucion-de-problemas/classpath.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
