on 12-11-2007 11:32 AM
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 ?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
now its clear. I just used the wrong syntax. Certainly, I have to call the method with <i>class.method</i>.
Elko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.