| Overview | Key Environment Variables |
| W95/W98/Me Environment | Macintosh |
| NT/W2K/XP/W2K3/Vista 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.
You can export the NT/W2K/XP/W2K3/Vista/W7 set parameters from the registry two ways that don’t require JNI:
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 and the associated glue in the AppKit framework.
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/environment.html | J:\mindprod\jgloss\environment.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.106] | |
| Feedback | You are visitor number 49,826. | |