Error 'Cannot create classpath' when starting JSM

Date: 18th May 2009
Product/Release: LANSA Integrator - All versions
Abstract: 'Cannot create classpath' error when starting JSM
Submitted By: LANSA Technical Support


Starting of JSM fails due to 'Cannot create classpath' error.


There is a 5000k limit on the Classpath length.

The names of the JAR files is used to construct the classpath – see Manager.txt.

Having a large number of JAR files or long names for JAR files is actually causing the classpath variable to exceed the 5000k limit.

Additionally when the classpath is constructed it contains the "/jar/" and ".jar" which is contributing to the limit being exceeded.

Example java class path


Your options are:

  1. Shorten the Jar file names
  2. Delete the unnecessary jar files

Unfortunately, the maximum size for the Classpath is set by IBM and cannot be extended.