Questions tagged [system-variable]
146 questions
439
votes
18 answers
How to set java_home on Windows 7?
I went to the Environment Variables in 'System' in the control panel and made two new variables, one for user variables and one for system variables. Both were named JAVA_HOME and both pointing to
C:\Sun\SDK\jdk\bin
But for some reason, I still…

Derek
- 4,985
- 4
- 20
- 9
32
votes
7 answers
SETX doesn't append path to system path variable
I have tried below command to append some path to system path variable by batch-file :
setx PATH "%PATH%;C:\Program Files\MySQL\MySQL Server 5.5\bin"
I have checked system variable path after running above batch-file, above path isn't in…

Hamed Kamrava
- 12,359
- 34
- 87
- 125
24
votes
2 answers
Environment/system variables in server.xml
How can I use environment/system variables in tomcat server.xml, context.xml, etc configuration files?
I tried to use ${ENV_VAR_NAME} (both for environment and system variable), ${env.ENV_VAR_NAME} (for environment variables). And nothing seems to…

michael nesterenko
- 14,222
- 25
- 114
- 182
16
votes
2 answers
Get list of activated profile name during run time in maven java project
I need to be able to use the profile activated during the run time of JUnit tests.
I was wondering if there is any way of doing something like:
String str = System.getProperty("activated.profile[0]");
Or any other relative way...
I realized there…

Mickey Hovel
- 982
- 1
- 15
- 31
13
votes
3 answers
How to change read-only permission to set new value of MySQL server system variable
I am new to MySQL; recently I faced this problem while setting a new value for a system variable.
I tried:
mysql> set global innodb_ft_min_token_size = 6;
but I am getting this error:
ERROR 1238 (HY000): Variable 'innodb_ft_min_token_size' is a…

Rocoder
- 1,083
- 2
- 15
- 26
12
votes
2 answers
Is there any syntax like : #{systemProperties['environment_variable_name']} to get the system variable?
Does using #{systemProperties['environment']} in the applicationcontext.xml file of Spring return the value associated with environment?
Or is there any way to ge the system variable value in the spring applicationcontext.xml file.

Ritesh Mengji
- 6,000
- 9
- 30
- 46
12
votes
3 answers
Cannot set a global variable on MySQL
I'm using MySQL in localhost (in ubuntu and also in windows). I want to set a global variable, and I have tried in all ways but even though I get an "ok" message from mysql, then when I do the "select @var" it allways says "NULL".
I've tried:
set…

leonardo_palma
- 303
- 2
- 4
- 12
9
votes
2 answers
How to create a folder in the home directory?
I want to create a directory path = "$HOME/somedir".
I've tried using boost::filesystem::create_directory(path), but it fails - apparently the function doesn't expand system variables.
How can I do it the simplest way?
(note: in my case the…

lampak
- 890
- 1
- 9
- 21
9
votes
2 answers
Override System Environment variable path in windows (not admin access)
Issue is very peculiar, I have a version of NodeJS installed in Windows (in program files x86) and a newer version of software downloaded and exe is extracted.
The installed NodeJS (node.exe) 's path is included in system path variable. I added the…

sij
- 1,307
- 7
- 18
- 35
9
votes
2 answers
Default PATH system variable for Windows?
I've accidentally messed up the PATH variable in Windows and I'm wondering if anyone could provide the default for me.

Timtech
- 1,224
- 2
- 19
- 30
8
votes
1 answer
Script to Change JAVA_HOME System Variable in Windows
I do most of my work against JDK 1.5 - but occasionally I have to change to 1.6. it is a bit painful to have to manually go and change my 'JAVA_HOME' system variable whenever I need to work on a project specific to one or the other (and no, Eclipse…

javamonkey79
- 17,443
- 36
- 114
- 172
8
votes
2 answers
Graphviz, gvpr is not recognized
I am trying to use MaDGe to Save dependency graph as a SVG image with CLI command
madge --image graph.svg path/src/app.js
but I face the error 'gvpr' is not recognized as an internal or external command
this is where I have C:\Program Files…

Amir-Mousavi
- 4,273
- 12
- 70
- 123
8
votes
1 answer
setting the webapp %PATH% environment variable in azure
I am working on an azure webapp project. In order for my application to work, I needed to install a third party open source software on the server. The only way that I found to do that on the azure webapp, was to manually copy all the folders of the…

Farhad
- 115
- 1
- 7
6
votes
2 answers
mlflow R installation MLFLOW_PYTHON_BIN
I am trying to install mlflow in R and im getting this error message saying
mlflow::install_mlflow()
Error in mlflow_conda_bin() :
Unable to find conda binary. Is Anaconda installed?
If you are not using conda, you can set the…

user10486706
- 137
- 9
6
votes
3 answers
Switching between two java versions on Windows
Currently I have a java project where I should support different version of it, which use different version of Java (and some tools, like Ant). Depends on issue tickets I need to handle both java version (7 and 8) and pretty often switch between…

Hleb
- 7,037
- 12
- 58
- 117