Comment retourner une valeur avec la function Environment.GetEnvironmentVariable ?
Dans mon code avec cette commande :
Code:
1 2
|
String javalaunch = Environment.GetEnvironmentVariable("JAVA_HOME"); |
J'obtiens en reponse :
Citation:
GetEnvironmentVariable The name 'GetEnvironmentVariable' does not exist in the current context
Environment.GetEnvironmentVariable("JAVA_HOME"))End of expression expected
Pourquoi ? Pendant un moment cette commande marchait bien puis a tout bout de champ plus rien ne marche !
Help !