Previous Next        Current Page: NeXtMidas User's Guide / Installation and Customization / Using OS Environment Variables
FAQs   
Release Information   
Getting Help   
Basic Concepts   
Result Parameters   
XML Support   
Files   
System Operation   
Macros   
Applets and WebStart   
Graphics   
X-Midas Interoperability   
Third-Party Compatibility   
Installation and Customization   
   - System Installation   
   - Using OS Environment Variables   
   - Option Tree Configuration   
   + Adding New Commands   
   - Tailor the NeXtMidas Environment   
   - Compilation   
   - Compile Native Code on Windows   
Running NeXtMidas Independently   
Glossary   


Using Operating System Environment Variables

NeXtMidas supports the use of special Operating System Environment Variables that are used when launching your NeXtMidas session.

NM_USER_CP

The variable NM_USER_CP is used to set the CLASSPATH that will be used by NeXtMidas, such as in the Unix C Shell:

 setenv NM_USER_CP classpath

NM_USER_JVM_FLAGS

The variable NM_USER_JVM_FLAGS is used to pass options to the Java Virtual Machine when running NeXtMidas. Common options include setting the initial and maximum memory size, such as below (again in the Unix C Shell):

setenv NM_USER_JVM_FLAGS "-Xms256m -Xmx256m"

NOTE: Setting the JVM option -DCLASSPATH is equivalent to using NM_USER_CP. If BOTH NM_USER_CP and NM_USER_JVM_FLAGS (with -DCLASSPATH=classpath) are present, the NM_USER_CP variable will take precedence.

See Runtime Options for additional information (link directs to $NMROOT/nxm/sys/docs/RuntimeOptions.txt)