Top "Environment-variables" questions

Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.

Can I export a variable to the environment from a bash script without sourcing it?

Suppose that I have this script export.bash: #! /usr/bin/env bash export VAR="HELLO, VARIABLE" When I execute the …

bash shell unix environment-variables
How to keep environment variables when using sudo

When I use any command with sudo the environment variables are not there. For example after setting HTTP_PROXY the …

linux environment-variables sudo
"Could not find or load main class" Error while running java program using cmd prompt

I am running a simple "HelloWorld" Program. I get this error in the command prompt: Could not find or load …

java cmd classpath environment-variables
Environment variable to control java.io.tmpdir?

I've used the TMP environment variable to control things like where gcc writes it's temporary files, but I can't seem …

java configuration environment-variables temp
Remove redundant paths from $PATH variable

I have defined the same path in the $PATH variable 6 times. I wasn't logging out to check whether it worked. …

linux bash path environment-variables sh
Command line to remove an environment variable from the OS level configuration

Windows has the setx command: Description: Creates or modifies environment variables in the user or system environment. So you can …

windows registry environment-variables
how to read System environment variable in Spring applicationContext

How to read the system environment variable in the application context? I want something like : <util:properties id="dbProperties" …

java spring environment-variables
Where can I set environment variables that crontab will use?

I have a crontab running every hour. The user running it has environment variabless in the .bash_profile that work …

linux unix environment-variables crontab
Make $JAVA_HOME easily changable in Ubuntu

In Ubuntu, I'd like to switch my JAVA_HOME environment variable back and forth between Java 5 and 6. I open a …

linux ubuntu environment-variables java-home
How Should I Set Default Python Version In Windows?

I installed Python 2.6 and Python 3.1 on Windows 7 and set environment variable: path = d:\python2.6. When I run python in cmd, …

batch-file windows-7 environment-variables python-2.6 python-3.1