getenv() returns the results that are not complete.

3 visualizaciones (últimos 30 días)
raym
raym el 13 de Abr. de 2019
Comentada: raym el 15 de Abr. de 2019
On the windows system the environment variable CLASSPATH is:
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;D:\QMDownload\6;
When I open cmd and type "set CLASSPATH" it echos:.
CLASSPATH=.;C:\Program Files\Java\jdk1.7.0_80\lib\dt.jar;C:\Program Files\Java\j
dk1.7.0_80\lib\tools.jar;D:\QMDownload\6
However,() when I type
!set CLASSPATH
in matlab command windows,I get:
.;C:\Program Files\Java\jdk1.7.0_80\lib\dt.jar;C:\Program Files\Java\jdk1.7.0_80\lib\tools.jar;
When I run
getenv('CLASSPATH')
ans =
.;C:\Program Files\Java\jdk1.7.0_80\lib\dt.jar;C:\Program Files\Java\jdk1.7.0_80\lib\tools.jar;
We can see that "D:\QMDownload\6;" was lost in matlab's results.
I'm wondering why the last part was trimed in matlab, even when using system command !.
I'm sure that I have restared matlab for several times after updating the CLASSPATH just to refresh matlab's system enviroment.
  1 comentario
raym
raym el 15 de Abr. de 2019
The missing part come back after I restart the PC two days later.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Text Data Preparation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by