Salesforce

Java Environment (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Java Environment (Magic xpa 2.x)

Magic xpa can load and activate Java classes without setting the operating system's environment variables. All required environment variables for the Java settings are entered in the [MAGIC_JAVA] section of the Magic.ini file. The Magic xpa-Java section can contain the following settings:

Setting

Description

JAVA_HOME

The Java Development Kits folder. This setting overrides the JAVA_HOME set in the operating system.

CLASSPATH

The path for locating additional classes. When this setting is used, it will be added at the beginning of the operating system’s class path string. Semicolons are used as a delimiter to specify several directories. For example, if the operating system has C:\; C:\temp as class paths and D:\ is specified in the CLASSPATH setting under the MAGIC_JAVA section in the Magic.ini file, in runtime the operating system’s class path will appear as D:\;C:\; C:\temp.

JVM_ARGS

Additional parameters that can be sent to the Java Virtual Machine, such as JVM_ARGS=Djms.properties=F:\j2ee\config\jms_client.properties

JVM_PATH

The path for the JVM.dll file. When this setting is used, the JVM.dll file will be loaded from this path instead of searching it in the folders defined in the operating system path.
If the value set in JVM_PATH is not suffixed with .dll, the value will be inserted into the path in which Magic xpa will search for the JVM.JVM, according to the search path of Windows (http://msdn.microsoft.com/en-us/library/7d83bc18(VS.71).aspx). Otherwise, Magic xpa will dynamically load the specified dll.

Reference
Attachment 
Attachment