Sometimes, the full CLASSPATH in your ENVFILE for Visibility API can be too long for one line or it's too difficult to read when it's all in one line. In this article, we'll be going over how to split up CLASSPATH on multiple lines.
In the CLASSPATH, you will notice that a ':' character splits up each filepath.
CLASSPATH=/Infogix/Visibility/UAT/Infogix/VisAPI/config:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/VisibilityAPI-9.1.jar:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/ojdbc6.jar:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/commons-cli.jar:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/log4j-1.2.15.jar
With this in mind, we can simply reference the CLASSPATH variable and add each component one at a time. The variable to reference is "$CLASSPATH". We then append to it one more section of the full CLASSPATH, then re-reference it and append the next section. See the example below, which is the above CLASSPATH split into parts.
CLASSPATH=/Infogix/Visibility/UAT/Infogix/VisAPI/config
CLASSPATH=$CLASSPATH:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/VisibilityAPI-9.1.jar
CLASSPATH=$CLASSPATH:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/ojdbc14.jar
CLASSPATH=$CLASSPATH:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/ojdbc6.jar
CLASSPATH=$CLASSPATH:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/commons-cli.jar
CLASSPATH=$CLASSPATH:/Infogix/Visibility/UAT/Infogix/VisAPI/lib/log4j-1.2.15.jar
Comments
0 comments
Please sign in to leave a comment.