Java Transformation Classpath

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: Open PowerCenter Designer 1. Add a Java transformation in a mapping. 2. 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. 3. import com.abc.xyz.ABC; The class ABC is available inside the c:\sample\Myjar.jar file. 4. Compile the Java transformation and the error occurs. 5. Solution To resolve this issue do the following on the client machine: Select My Computer > Properties . 1. Choose the Advanced tab > Environment Variables . 2. Rename the CLASSPATH environment variable to CLASSPATH_Renamed and save it. 3. Close the Designer and open it again. 4. Open the mapping and delete the existing Java transformation and recreate it. 5. Add the Jar s in the new Java Transformation to compile the class. 6. Or Add the jars in the System CLASSPATH . Don't include the jars in the Java Transformation - Add classpath. 1. Restart the Designer. 2. 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

description

Java tranfer

Transcript of Java Transformation Classpath

Page 1: Java Transformation Classpath

"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:

Open PowerCenter Designer1.

Add a Java transformation in a mapping. 2.

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.

3.

import com.abc.xyz.ABC;

The class ABC is available inside the c:\sample\Myjar.jar file. 4.

Compile the Java transformation and the error occurs. 5.

Solution To resolve this issue do the following on the client machine:

Select My Computer > Properties . 1.

Choose the Advanced tab > Environment Variables . 2.

Rename the CLASSPATH environment variable to CLASSPATH_Renamed and save it. 3.

Close the Designer and open it again. 4.

Open the mapping and delete the existing Java transformation and recreate it. 5.

Add the Jar s in the new Java Transformation to compile the class. 6.

Or

Add the jars in the System CLASSPATH .

Don't include the jars in the Java Transformation - Add classpath.

1.

Restart the Designer. 2.

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