Setting you classpath with TeamSite

Posted: 5 May 2009 in CSSDK, Java, Teamsite

When you program your app or just when you need to extend the TeamSite functionality, chances are you will have to modify your classpath. Rather than adding the jars one by one, here’s a little code snippet that will allow you to add the entire teamsite library to your classpath.

for dir in "/apps/interwoven/teamsite/httpd/webapps/content_center/WEB-INF/lib" "/apps/interwoven/teamsite/cssdk" "/apps/interwoven/teamsite/cssdk/java" "/apps/interwoven/teamsite/lib"
do
    for file in $dir/*.jar
    do
        CLASSPATH="${CLASSPATH}:${file}";
    done
done
export CLASSPATH;

LD_LIBRARY_PATH=/usr/lib:/apps/interwoven/teamsite/cssdk:/apps/interwoven/teamsite/lib
export LD_LIBRARY_PATH
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s