Come impostare il classpath in Windows 7

Dal desktop, fai clic destro sull'icona Computer.

Scegli proprietà dal menu contestuale.

Clicca il link Impostazioni di sistema avanzate.

Clicca Variabili d'ambiente. Nella sezione Variabili di sistema, trova la variabile d'ambiente PATH e selezionala. Fai clic su Modifica. Se la variabile d'ambiente PATH non esiste, fai clic su New.

Nella finestra Modifica variabile di sistema (o Nuova variabile di sistema), specifica il valore della variabile d'ambiente PATH. Fai clic su OK. Close all remaining windows by clicking OK.

Note: You may see a PATH environment variable similar to the following when editing it from the Control Panel:

  1. %JAVA_HOME%bin;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem 

Variables enclosed in percentage signs (%) are existing environment variables. Se una di queste variabili è elencata nella finestra Variabili d'ambiente dal Pannello di controllo (come JAVA_HOME), allora puoi modificare il suo valore. If it does not appear, then it is a special environment variable that the operating system has defined. For example, SystemRoot is the location of the Microsoft Windows system folder. To obtain the value of a environment variable, enter the following at a command prompt. (This example obtains the value of the SystemRoot environment variable):

  1. echo %SystemRoot% 

In the Edit System Variable (or New System Variable) window, specify the value of the CLASSPATH environment variable.

variable name:

  1. CLASSPATH 

variable value:

  1. .;%JAVA_HOME%;%JAVA_HOME%lib 

Click OK. Close all remaining windows by clicking OK.