No such file or directory warning when using the CCD_CLASSPATH environment variable to compile Java classes
When using CCD_CLASSPATH environment variable to compile Java classes for Product Master warnings about .jar files not found are displayed.
Symptoms
When using CCD_CLASSPATH environment variable to compile Java classes, you can get warnings about few .jar files not found. These warnings occur due to the particular .jar file not found at the mentioned class path. To remove these warnings, make sure all the required .jar files are present at the class path. The example that is shown following is only a sample and should be used for reference only./usr/local/envs/mdm6000/javac/*.java
/usr/local/envs/mdm6000/*.java -Xlint:all -classpath $CCD_CLASSPATH -d $TOP/classes
The
sample warning that can occur:
warning: [path] bad path element "/apps/PIM6/jars/xml-apis.jar": no such file or directory
Causes
Here the class path $TOP/classes is specified and as the /apps/PIM6/javaapi_classes was not found, the warning message occurred.Resolving the problem
You can avoid viewing these warnings by using the-path
parameter with
CCD_CLASSPATH environment variable while compiling Java classes. Therefore, workaround for the
preceding example will
be:/usr/local/envs/mdm6000/*.java -Xlint:all,-path -classpath $CCD_CLASSPATH -d $TOP/classes