|Overview||Key Environment Variables|
|NT/W2K/XP/W2K3/Vista/W7 Environment||Learning More|
|Environment Accessing Kludges||Links|
If you find it, make it look exactly like that. If don’t see it, add it. You will need to use a text editor such as NOTEPAD to make the change. The /e:17374 specifies the desired size of the set environment in bytes. Make sure there exists a file called: C:\windows\command.com. If not look for one in C:\ and copy it over.
Here is how to set up your config.sys if you use 4DOS.
With NT/W2K/XP/W2003/Vista/W2008/W7-32/W7-64, you don’t need to do this since the environment automatically expands as needed. Further, there is no config.sys or autoexec.bat file.
You can export the NT/W2K/XP/W2003/Vista/W2008/W7-32/W7-64 set parameters from the registry two ways that don’t require JNI (Java Native Interface) :
Restart any command prompt boxes after making changes to the environment. Reboot if your changes would affect any programs started with the task manager.
The desktop picks up its environment from a property list file in ~/.MacOSX/environment.plist. Both the directory and the file must be created; neither exists by default. The file can be created with the Property List Editor utility included in the developer tools; you can also create a property list with any text editor. Each property in the root dictionary defines one environment variable.
Here is a minimal *.plist file:
This file is loaded at login time; changes to the file only take effect when you log out and back in. Shell-style expansion of variables in values is not applied to environment variables defined here.
OS X also ships with bash, which launches whenever you run Terminal; it respects the ~/.bash_profile. Environment variables defined in ~/.bash_profile only affect bash, e.g., the terminal. Most of the environment variables Java cares about (PATH, ANT_HOME, etc) should be set this way, as they only make sense in the context of the terminal anyway. Locale and language settings are better left to the OS X localization code (which sets appropriate environment variables for you).
For people doing server development, a sensible value of JAVA_HOME is /Library/Java/Home. Owen Jacobson tells me he has never had to set it, even for JBoss or Maven.
In general OS X discourages using the environment in the way most UNICES and Windows do. In general, only UNIX-heritage applications use it at all; native programs tend to prefer the Preferences API (Application Programming Interface) and the associated glue in the AppKit framework.
available on the web at:
optional Replicator mirror
Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : . If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, especially when sending an ad-hominem attack, a rant composed mainly of obscenities or a death threat, please quote the offending passage and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. I can’t very well fix erroneous or ambiguous text if I can’t find it.
Your face IP:[18.104.22.168]
|Feedback||You are visitor number 64,720.|