Questions tagged [system-variable]

146 questions
6
votes
1 answer

Oracle Database installation error: environment path

While attempting to install Oracle Database 11g Release 2 on Windows 7 (64 bit). Encountered following the error (PRVF-3929) It states that the environment variable path is too long. To reach this variable I searched "envir" in Windows and…
5
votes
1 answer

How to use system\environment variables in .NET string?

I have path variable which I got from my appsettings: var path="%TEMP%\myapplication\data"; I am trying to use it in Directory.CreateDirectory(path) method. But I got new folder in my application bin folder instead of…
Ievgen
  • 4,261
  • 7
  • 75
  • 124
4
votes
3 answers

Execution failed for task ':app:compileJava' with ./gradlew run

When I try using "./gradlew run" on my gradle projects, I receive this error: * What went wrong: Execution failed for task ':app:compileJava'. > java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed…
4
votes
2 answers

"java -version"in cmd gives no result

I tried to install java 14 manually on Windows 10. I set the System Variables as in this picture. But when I use the command "java -version" literally nothing happens... C:\WINDOWS\system32>java -version C:\WINDOWS\system32> Something must be…
Gesichtsfelsen
  • 59
  • 1
  • 1
  • 7
4
votes
1 answer

Read OS(Linux and MAC) environment variable to not expose backend IP's and Credentials in angular 9

I'm trying to build and deploy my angular 9 project in production environment. The main goal is to protect my back-end services IP address and credentials as these environments can't be exposed to anyone for security issue. Build and Serve works…
4
votes
3 answers

Error launching IDEA: Failed to load JVM

I recently installed IntelliJ IDEA 2018. However, when I tried to run IntelliJ, I received the following error message: Error loading IDEA: I looked up my system environment variables which I have posted below: System Variables: I checked which…
Daedalus
  • 61
  • 1
  • 1
  • 5
4
votes
1 answer

Resolve PROGRAMFILES variable from 32bit app in Win64 OS?

As explained in MSDN's WOW64 Implementation Details, the variable %PROGRAMFILES%, in a 32-bit-process on a 64-bit-Windows OS, resolves to C:\Program Files (x86) in a 64-bit-process on a 64-bit-Windows OS, resolves to C:\Program Files You can…
user1580348
  • 5,721
  • 4
  • 43
  • 105
4
votes
2 answers

System.getenv("TEST_HOME") is returning null

I am working on a ubuntu 14.0.4 machine. I exported a variable TEST_HOME in my .bashrc file using export TEST_HOME=/home/dev/code/test When I tried echo $TEST_HOME from terminal, it returned /home/dev/code/test So far, so good. When I try from…
Dev
  • 13,492
  • 19
  • 81
  • 174
4
votes
2 answers

Certain string in Windows PATH causing error

I am adding this string C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\ to my windows 10 environmental variable PATH. This caused problem to the PATH. I believe the root cause is the character & in the string. How can I add the…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
4
votes
1 answer

Intellij 11.1.5 - Project specific path variable

I am using the Intellij 11.1.5. We are a large team, and have a pretty complex project setup. so we've made a template and when someone needs a new project set up, we just clone it and she is pretty much ready to go. One other thing i would like to…
sebi
  • 1,791
  • 3
  • 25
  • 43
4
votes
1 answer

System variable for Microsoft SDKs

Similar to the %WINDIR% system variable which we have for the Windows directory, do we have any system variable which points to the latest version of the Microsoft SDK folder, so that I can access the sn.exe in my Build script?
Sandeep
  • 5,581
  • 10
  • 42
  • 62
3
votes
3 answers

How do I set home folder in Heroku system variable?

I'm deploying a node.js app on Heroku dyno and using config module that requires me to define a system variable NODE_CONFIG_DIR with the location of the config folder. The config folder is located on my project's root. I tried to define the system…
David Raviv
  • 397
  • 3
  • 10
3
votes
1 answer

Python: System variable path is altered, doesn't match values in sys.path

I have a script "splash.py" stored in C:\Users\cedwards\saved_scripts I have added this directory in the System Variables in the variable "Path" (Environment Variables) When I print all the values in sys.path I get .. >>> import sys >>> for val in…
Chris E
  • 31
  • 1
3
votes
3 answers

How to find and replace a string in %PATH% system variable with variables in a batch file?

I am trying to upgrade Java with a batch file, and I need to change the PATH system variable to reflect that change. At the beginning of the PATH variable I have C:\Program Files\Java\jdk1.8.0_51;... I need to change the jdk value to be…
2
votes
2 answers

Cannot set environment variable or property in Gradle outside test

I have been trying to set a simple environment variable (or system property, whatever works really) through build.gradle file to access it from a java method (which is not part of integration tests) but after exhausting almost every answer on this…
1
2
3
9 10