problem with importing jars into JCAPS eDesigner
hi,
can any body help me about in how many ways we can import jars into eDesigner.Because here i'm trying to putting jars into "eDesigner/usrdir/lib" directory but i'm not able to pick/find those classes from the collaborations, previously i have done with ICAN and its worked out. but here i'm not able to do it.
Thanks
[343 byte] By [
GoldFish] at [2007-11-26 10:35:18]

# 4
You only need and usefully can import into the Project structure the JARs you actually use and reference from the JCDs. These JARs then get deployed to the IS. There is no need to place any extra JARs in the eDesigner directory tree if you import required JARs into the project. Other JARS, even the ones on which your imported JARs rely are not referenced in eDesigner at any time, wether at JCD validation time or at EAR building time.
At runtime your additional JARs, the ones on which your imported JARs rely, must be in the classpath somewhere so the IS can find them. The best way to do this is to put them into a directory of your own and add the path to the directory to the IS's classpath append or classpath prepend.
# 6
To the best of my knowledge , All the JAR files need to be listed individually.> Michael, is it correct that you can put a directory> in the classpath. As far as I can tell you need to> list all the individual JAR files.
# 7
If you have jar files that are shared by all of your projects, you may want to load them as "extensions." The runtime has a facility for specifying optional packages via the extensions mechanism. It was designed to allow you to add optional javax packages to the core classpath without having to include all the jar files in the classpath itself.
You use it by specifying the java.ext.dirs environment variable on the command line. By defalt it is <java root>/jre/lib/ext. You can add your own ext dir to the path by adding your dir to the default java.ext.dirs=$JAVA/jre/lib/ext:$LIB_DIR/mylib/ext
One thing to be aware of is that the extensions take precedence to any jars listed in the classpath. You may experience undesired behavior if you inadvertently replace a jar in the classpath.
Your milage may vary.
# 10
As mczapski points out, jar files imported to the repository and used by collaborations are deployed within the ear file to the IS. While this is sometimes the easiest approach, it does require that you rebuild and redeploy any using applications when the jar needs to be changed and reimported to the repository. (In past releases this also required several other steps to workaround related problems.)
Adding shared jar files to ../usrdir/lib/ext (or other such location) in edesigner and to a suitable IS classpath suffix avoids the need to rebuid and redeploy applications should a change confined to the jar file be required. One way to make provide all developers the lastest jar is to update the edesigner.zip and have them download it using the Suite Installer.
Regards.