cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.0 unable to import class

Former Member
0 Kudos

Hello,

I'm trying to create a UDF to accomplish almost exactly like:

We've attributed the issue below being that the "import" of java.util.StringTokenizer, isn't working...

Here's the sample code:

Here's the error message I get:

From what I can tell, our PI system is utilizing Java 1.7, so the class should be there.  Has anyone else run into this issue?  Is there additional configuration that's required?

Regards,

Jose

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Jose,

The problem is not in the importing, the StringTokenizer class needs a string like object in the constructor and your variable 'a' is an array of strings.

You need to change the type of your function or to set StringTokenizer st = new StringTokenizer(a[i]); being 'i' an integer counter.

Hope this helps.

Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

Correction, we're using Java 1.5 on SAP PI 7.0