Printer FriendlyEmail Article Link

Spirent TestCenter-Automation: How do I get Spirent TestCenter API to run on 64 bit platform?

Environment/Versions

Spirent TestCenter

Answer

At present we do not support any 64 bit linux install, but there is a work around that does function.

By default 64 bit Linux installs 64 bit TCL, which is not compatible Spirent TestCenter API. Because our API is 32 bit you are required to use a 32 bit compiled TCL interpreter.
You can download the source code for 32 bit TCL 8.4.13 at
https://www.linuxfromscratch.org/blfs/view/6.2.0/general/tcl.html .
Please follow the instructions on how to build the interpreter on their Web page.

Similarly with Java, running stc java script in AMD 64-bit platform gives the following error:
"Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Spirent Communications\Spirent TestCenter 3.70\Spirent TestCenter Application\sJava.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method)"

An application can be compiled in 32-bit or 64-bit and run as such on top of the OS. When a 32-bit application (like STC) is started, it links/requires the 32-bit version of the libraries (e.g. Java). But when the Java library is normally installed on a 64-bit system, it installs the 64-bit version because it detected the OS type or it was selected as such. A 32 bit application can not run with a 64-bit library. It requires the 32 bit library. It needs to have the 32-bit version of Java installed so that STC works.


Product : Automation,API,Spirent TestCenter