Troubleshooting
Problem
The Multi-Channel Selling SDK is not working well on Windows 7
Symptom
When attempting to use the SDK on Windows 7 from the command line, there are problems with directory references. The following directory has been created:
<sdk-home>\${env.COMERGENT_SDK_HOME}
The display from the result target has these lines:
displayProjectInfo:
======= Project Info=======
Project
Environment:
Application Name ........................... ecomm
Comergent Version: ......................... debs-8.0.1
Java Version:
.............................. 1.6.0_07
Directory Information:
Project ....................................
${env.COMERGENT_SDK_HOME}/projects/apollo
Build
......................................
${env.COMERGENT_SDK_HOME}/builds/apollo
Dist
.......................................
${env.COMERGENT_SDK_HOME}/dist
NOTE- No version of MCS is verified on Windows 7.
Error MessageFirst this message displays:
Windows Title:
16 bit MS-DOS subsystem
Msg: Error while setting up environment for
application. Choose 'close' to terminate application
After clicking "Close," it seems to continue and this message displays:
version:
java.lang.NoClassDefFoundError:
com/comergent/sdk/VersionInfo
Caused by:
java.lang.ClassNotFoundException: com.comergent.sdk.VersionInfo
at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at
java.security.AccessController.doPrivileged(Native Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception
in thread "main"
Java Result: 1
Resolving The Problem
Update the sdk.xml that is in the <COMERGENT_SDK_HOME> directory. In this case the property to consider is this
<property name="sdk.base.dir" value="${env.COMERGENT_SDK_HOME}"/>
Essentially, you must hard code the directory, replacing ${env.COMERGENT_SDK_HOME}.
Again, Windows 7 is not verified or supported by the Sterling Multi-Channel Selling (MCS) Support team at this time. This is a suggestion only.
Historical Number
NFX8930
Product Synonym
[<p><b>]Function Area[</b><p>];SDK;[<p><b>]Severity[</b><p>];Normal
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21555037