You are on page 1of 1

"Package does not exist" when compiling a Java transformation CLASSPATH in PowerCenter

Problem Description
When attempting to compile a Java transformation, it returns the following error:

Package xxx does not exist

Cause
This error will occur when the CLASSPATH Windows environment variable (with some Jar files required for other java applications) is set on the machine hosting the PowerCenter Client.

Example:
For example, the CLASSPATH variable has been set as follows:

CLASSPATH = 'c:\test\abc.jar;c:\xyz.jar'
The error occurs after doing the following: 1. Open PowerCenter Designer 2. Add a Java transformation in a mapping. 3. Add the jars in the Java Transformation under Java Code > Settings > Add Classpath to use classes from c:\sample\Myjar.jar jar file. Add the import statement that corresponds to the class file in the jar.

import com.abc.xyz.ABC;
4. The class ABC is available inside the c:\sample\Myjar.jar file. 5. Compile the Java transformation and the error occurs.

Solution
To resolve this issue do the following on the client machine: 1. 2. 3. 4. 5. 6. Or 1. Add the jars in the System CLASSPATH . Don't include the jars in the Java Transformation - Add classpath. 2. Restart the Designer. Select My Computer > Properties . Choose the Advanced tab > Environment Variables . Rename the CLASSPATH environment variable to CLASSPATH_Renamed and save it. Close the Designer and open it again. Open the mapping and delete the existing Java transformation and recreate it. Add the Jar s in the new Java Transformation to compile the class.

Applies To
Product(s): PowerCenter Product Version(s): PowerCenter 8.1.1; PowerCenter 8.5.1; PowerCenter 8.6; PowerCenter 8.6.1

Reference
A change request (CR 131871) has been created to address this issue.

Related Documents
"PACKAGE DOES NOT EXIST" when Importing an external package in a Java transformation (20380)
Last Modified Date:12/16/2009 4:56 PM ID:20609

You might also like