Questions tagged [system-variable]
146 questions
1
vote
1 answer
How to switch between old JDK version to new JDK version and how to set system variable value in this situation?
Recently I have installed Cassandra on my windows 10 laptop. In Cassandra specification, they mentioned that this version is suitable with only Java 8 and Python 2 Versions. But on my laptop, I'm already having java 16 and python 3 versions. After…

Narendra7
- 11
- 3
1
vote
3 answers
Flutter 'Error: Unable to find git in your PATH' in Windows
I just installed Flutter SDK, And I got an error Error: Unable to find git in your PATH. when I type flutter --version in CMD.
I searched about this and I found some answers, but nothing works.
I installed SDK in D:, so I deleted it and installed it…

Superjay
- 447
- 1
- 7
- 25
1
vote
1 answer
How to prevent a DB user from querying System Variables
I am using MySql 5.6. Currently with the grants provided to a user, say USER_1, it can query the system variables like @@version, @@hostname etc.
e.g.
SELECT @@VERSION;
SELECT @@HOSTNAME;
What privileges are required for that user to be able to…

Sid
- 4,893
- 14
- 55
- 110
1
vote
1 answer
Issue in setting system variable ES_PATH_CONF for elasticsearch
I have cloned elasticsearch project from GitHub to my local machine. Built it successfully and imported it into eclipse.
When I am trying to run the main() method in org.elasticsearch.bootstrap.ElasticSearch class (which is the entry point for…

Tejaswi
- 33
- 1
- 8
1
vote
1 answer
Phantomjs windows path is set but still can't run from cmd prompt
The above image is a snippet i took from my Path system variable. however whenever i attempt to run phantomjs i get the following message:
Can anyone tell me what i might be missing?

Marc Rasmussen
- 19,771
- 79
- 203
- 364
1
vote
0 answers
Reading user environment variables by os.environ
I have a setup script (not mine) which reads a certain system variable. I tried setting this in two ways:
Going to control panel > User Accounts > Change my environment variables
In command line: setx myvar myvalue
I set it as user variables,…

user3053216
- 777
- 1
- 9
- 24
1
vote
3 answers
Java "Could not find or load main class" (PATH and CLASSPATH Already Set)
I'm having issues running java on the command line. I have checked lots of other questions and none have solved my problem.
I am using Windoze 10 x64.
Installed at C:\Program Files\Java, I have the following files:
jdk1.8.0_121 and jre1.8.0_121.
I…

10110
- 2,353
- 1
- 21
- 37
1
vote
0 answers
Using environmental variables in XML -File
as you can see in the title I want to use the environmental variable Userprofile in a XML-File. Already searched for awhile, couldn`t find anything suitable for my case.
Here`s my XML-File:

F. Michal
- 19
- 2
- 10
1
vote
0 answers
Angular2 typescript system variables
I want to set up a "constant" variable in my angular2 application. But, depending if a system variable is set or not.
Now I have this:
export const backendUrl: string = process.env.BACKEND_URL || 'http://localhost:8080';
Basically, I want that, if…

Manuelarte
- 1,658
- 2
- 28
- 47
1
vote
1 answer
How Can I install two version of opennlp?
I want to install opennlp-1.6.0 and opennlp-1.5.3 on windows
i've tried it like this,
added the system variables
and the path
when I open the command prompt and type opennlp, output is as expected
C:\>opennlp
OpenNLP 1.6.0. Usage: opennlp TOOL …
user4894151
1
vote
1 answer
how to set custom system variable for JVM to access properties file?
I need to read config.properties file from location that i set with variable -Dapp.conf=/path/to/config.properties and set it to a Datasource when i launch my application.
file should be at any location within filesystem.
how to do this?

Igor
- 478
- 9
- 22
1
vote
1 answer
MariaDB type error when setting session variable
why do the following queries work on Maria DB (10.1.9)...
SET SESSION wait_timeout = 28000;
SET SESSION wait_timeout = @@wait_timeout;
SELECT GREATEST(28000, @@wait_timeout);
... but that one not?
SET SESSION wait_timeout = GREATEST(28000,…

mvo
- 1,138
- 10
- 18
1
vote
0 answers
Run bat file before any java
I have a system variable %PORT% what is passed to jvm
JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=%PORT%
I need what every time JAVA_TOOL_OPTIONS is pickup the %PORT% get a new value.
I have the script whats find…

Bruno Rozendo
- 317
- 5
- 17
1
vote
1 answer
Set System variable %PATH% in azure web role
I have some packages in a Folder on Azure and I want to add that path to the VM's %PATH% system variable which I have to do programmatically in order for my code to be able to use those packages. I have done adding the Folder path to the %PATH%…

Sarmad
- 303
- 3
- 16
1
vote
1 answer
Coldfusion Last Page Requested
I'm looking for a way to obtain the last page requested in coldfusion. Is there a system value I can access to obtain that information? My end goal is to pass that value into a query for DB insertion.

Alex
- 443
- 3
- 18