cancel
Showing results for 
Search instead for 
Did you mean: 

Imported Archives (Java) - UDF - package not found

Former Member
0 Kudos

Hi,

I have created a simple Java program using NWDS and imported the jar file into the Namespace. When I try to instantiate my class, it says Package does not exist.

Can any one let me know why am I getting this error?

Thanks

Venkat Viswanathan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

My import statement had an error. I forgot to add .* or .<specific class> in the import statement.

It happened due to long-time working on .NET where you don't import a specific class, rather you use a specific package. Also, it is due to extensive usage of IDE which catches these type of silly errors. I believe XI needs an IDE support.

henrique_pinto
Active Contributor
0 Kudos

I always test my developments on eclipse before inputing it in UDF. This way you can debug your functions.

Regards,

Henrique.

bhavesh_kantilal
Active Contributor
0 Kudos

Venkat,

Did you create the JAR file using the PACKAGE or did u create the JAr file using the CLASS file?

Right CLick on the package in NWDS> Export> JAR-->

and then import this jar in XI.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Venkat,

Check this thread..

cheers

Prashanth

P.S Please mark helpful answers

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

did you fill the <b>import section</b>

in your user defined function with the package name

of your java class?

Regards,

michal