cancel
Showing results for 
Search instead for 
Did you mean: 

UDF imports

elko_hasse
Participant
0 Kudos

Hi,

I use an own method in UDF, but I cannot use imports, I have to write the package name in front of the method, why ?

In Detail.

I created public class <i>util</i> with public static method <i>concat</i>. The class is part of package <i>com.xx.xi.xxx</i>.

The class file lies in directory <i>com/xx/xi/xxx/util.class</i>.

I compiled class <i>util</i> and created jar-file <i>util.jar</i>.

The jar.file I imported as archive in integration repository.

Now I created an UDF, but I have to write packagename in from of method name like: com.xx.xi.xxx.util.concat.

I cannot use the import statement. Then I get error <i>symbol not resolved</i>.

Any Idea ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi elko,

>>I cannot use the import statement.... get error symbol not resolved.

to use external classes in UDF u need to import the class i.e

package.classname in ur case...com.xx.xi.xxx.util

then to use method write:

class.methodname

in ur case util.concat()

it shud wrk... check if u have done this...

regards,

latika.

Answers (1)

Answers (1)

elko_hasse
Participant
0 Kudos

Thanks,

now its clear. I just used the wrong syntax. Certainly, I have to call the method with <i>class.method</i>.

Elko