[java-dev] Re: setting environment variables in MAX
Adam Murray
adamjmurray at gmail.com
Fri May 30 11:30:53 MDT 2008
- Previous message: [java-dev] setting environment variables in MAX
- Next message: [java-dev] FileNotFoundException
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I believe environment variables are read-only in Java. They have to be set in the environment before you run a Java process. I'm not aware of a way to do this in Max. If your Java program is running another process, then I think you can change them for that process. But not for the current process. More info at http://java.sun.com/docs/books/tutorial/essential/environment/env.html Usually the standard way to pass environment variable-like settings to Java is to use system properties. These are changeable inside Java, and could also be set with the -Dname=value option in the max.java.config file. So are you sure you really need environment variables, or would system properties work? If it has to be environment variables, and you are on OS X, I maybe you could use the environment.plist file? http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/CommandLine/chapter_950_section_4.html -- Adam Murray compusition.com
- Previous message: [java-dev] setting environment variables in MAX
- Next message: [java-dev] FileNotFoundException
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
