|
LibrariesGigaSpaces libraries located at <GigaSpaces Root>\lib folder:
You may find the space runtime library at <GigaSpaces Root>\lib\JSpaces.jar and 3rd party libraries located at sub-folders under <GigaSpaces Root>\lib. Client ClasspathWhen a client application accessing GigaSpaces running in a remote mode the client should have the following jars as part of its classpath: java -cp c:\GigaSpacesEE5.0\lib\JSpaces.jar com.j_spaces.examples.hellospace.
HelloWorld jini://localhost/*/mySpace?groups=myGroup
Server ClasspathAn application running GigaSpaces in embedded mode should set the following libraries and directories as part of its classpath. To simplify the classpath configuration, JSpaces.jar contains the above list as part of its manifest file. As of JDK 1.5, you can include only the main JAR,(JSpaces.jar), and the compiler or JVM finds the rest of the libraries through the manifest classpath entry. In the example below, only JSpaces.jar is added to the classpath. The rest of the libraries are located implicitly by the JVM.
If you are using JDK 1.5, you need the following JARs as part of your classpath: For windows: %JSHOMEDIR%\lib\JSpaces.jar For Unix: ${JSHOMED= IR}/lib/JSpaces.jar Where the GS_JARS environment variable. For Windows: For Unix:
Adding Libraries to the GigaSpaces Server ClasspathSometimes a patch must be installed or new libraries included as part of the GigaSpaces server system classpath. To simplify the installation, perform these updates without changing the existing configuration files. For this purpose, GigaSpaces maintains the lib/ext directory. Each JAR installed in this directory is automatically included as part of the GigaSpaces classpath. You can use the LCP environment variable as a reference to this directory. |
Wiki Content Tree
Your Feedback Needed!
We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Add Comment