After you install Symphony DE 4.1, the global system environment is set to Symphony DE 4.1. You can use soamswitch to change the Windows global system environment settings.
If you want to set your global environment, use soamswitch. Note that you must have local administrator privileges on the host to set the global environment.
If you want to change your environment settings for your current working command prompt, then use batch files. For more details about changing your current environment, see Change your current working environment.
You will need to change your CLASSPATH to point to the correct version of Symphony.
For example, if you have a client start shell, ensure that it points to Symphony 4.1:
java -classpath c:\symphonyDE\DE41\4.1\win32-vc7\lib\JavaSoamApi.jar:myApp
You can use environment substitution in your application for your Java service startcmd.
For example, java -classpath ${SOAM_HOME}/${VERSION_NUM}/${EGO_MACHINE_TYPE}/lib/JavaSoamApi.jar:myService