Summary: JARs that should be in the classpath of applications accessing a remote or embedded space.
Overview GigaSpaces libraries are located under <GigaSpaces Root>\lib:
You can find the space runtime library in the <GigaSpaces Root>\lib\JSpaces.jar file, and third party libraries are located in sub-folders under <GigaSpaces Root>\lib. Client Classpath When a client application accessing GigaSpaces is running in a remote mode, the client should have the following jars as part of its classpath:
- <GigaSpaces Root>\lib\JSpaces.jar
- <GigaSpaces Root>\lib\jini\jsk-platform.jar
- <GigaSpaces Root>\lib\jini\jsk-lib.jar
- <GigaSpaces Root>\lib\ServiceGrid\gs-boot.jar
- <GigaSpaces Root>\lib\jini\reggie.jar
- <GigaSpaces Root>\lib\common\backport-util-concurrent.jar – only if you are running with JDK 1.4
- <GigaSpaces Root>\lib\jini\mahalo.jar – only if you are starting an embedded Mahalo Transaction Manager (disabled by default)
OpenSpaces and Spring JAR files are required in most scenarios. Do this by adding the <GigaSpaces Root>\lib\openspaces\openspaces.jar and <GigaSpaces Root>\lib\spring\spring.jar. Server Classpath An application running GigaSpaces in embedded mode should set the following libraries and directories as part of its classpath.
- <GigaSpaces Root>\lib\JSpaces.jar
- <GigaSpaces Root>\lib\jini\jsk-platform.jar
- <GigaSpaces Root>\lib\jini\jsk-lib.jar
- <GigaSpaces Root>\lib\jini\start.jar
- <GigaSpaces Root>\lib\ServiceGrid\gs-lib.jar
- <GigaSpaces Root>\lib\ServiceGrid\gs-boot.jar
- <GigaSpaces Root>\lib\jini\reggie.jar
- <GigaSpaces Root>\lib\common\backport-util-concurrent.jar – only if you are running with JDK 1.4
- <GigaSpaces Root>\lib\jini\mahalo.jar – only if you are starting an embedded Mahalo Transaction Manager (disabled by default)
OpenSpaces and Spring JAR files are required in most scenarios. Do this by adding the <GigaSpaces Root>\lib\openspaces\openspaces.jar and <GigaSpaces Root>\lib\spring\spring.jar.
Classpath Environment Variable |
Description |
JSHOMEDIR |
Optional - Points to the location of the schema files. The schema files are searched under the config/schemas package under the location of that directory. In cases where it is required to point to a different schema's configuration directory, it should be placed before or instead of this directory. In case you do set the JSHOMEDIR system variable, make sure it is set to the correct installed GigaSpaces version. Note, schema files rarely need to be changed since their respective parameters can be overridden using properties passed to the space. |
PRE_CLASSPATH |
Optional - Path style variable to be added to the beginning of the CLASSPATH. |
POST_CLASSPATH |
Optional - Path style variable to be added to the end of the CLASSPATH. |
JDBC_JARS |
Optional - contains the drivers and jars for the embedded databases, H2 and HSQL; normally this is required in persistent/swap embedded database space mode. |
OPENSPACES_JARS |
Required in all cases when OpenSpaces components are used (most cases) - contains the core OpenSpaces classes. |
SPRING_JARS |
Required in all cases when OpenSpaces components are used (most cases) - contains the Spring framework core classes. |
|