Hi Shashidhar,
if you use Sleep 2.0 and add all necessary jars via java -classpath
you should not use the Sleep 2.1 syntax for importing from jars (import * from: foo.jar;)
If you use Sleep 2.1 you may add directories via -Dsleep.classpath and Sleep will
look for jar files specified by the from: part of an import statement in these directories.
Consider this case:
You have 2 jars in /home/user/mylibs: libA.jar, libB.jar
You can use classes from these jars if you use the -Dsleep.classpath option:
java -Dsleep.classpath=/home/user/mylibs [...]
and import them by
import foo.* from: libA.jar;
import bar.* from: libB.jar;
in your script. Sleep 2.1 will look for libA.jar and libB.jar in /home/user/mylibs.
With Sleep 2.0 you have to use the java -classpath (or -cp) option
java -classpath /home/user/mylibs/libA.jar:/home/user/mylibs/libB.jar
and import classes without a from: part
import foo.*;
import bar.*;
If you want to use classes from jars/directories specifiied at runime
you may use my classloader bridge:
http://www.ululatus.org/sleep_jircii/classloader/There are versions for Sleep 2.0 and Sleep 2.1
Ralph