Service Desk Practitioners Forum
cancel

Can’t open attachment server using webapi

Highlighted
Siekierko Przem
Respected Contributor.

Can’t open attachment server using webapi

I’m trying to open Attachment Server by this part of code:

final AttachmentServer attachmentServer = AttachmentServer.openAttachmentServer(
server_type, new String[]{attachmentServerName,
attachmentServerTargetFolder, attachmentServerUserName,
attachmentServerPassword,
usePassiveFTP});

And after running it I’m getting this exception:

Exception in thread "main" java.lang.NoClassDefFoundError: com/hp/ftpclient/FtpException
at com.hp.ifc.attachments.ftp.FTP.openAttachmentServer(Unknown Source)
at com.hp.ifc.attachments.AttachmentServer.openAttachmentServer(Unknown Source)

If someone could help me, I would be very thankful.
1 REPLY
Siekierko Przem
Respected Contributor.

Re: Can’t open attachment server using webapi

After I added this library:

"c:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\client\lib\libftp.jar"

to my project, everything started going correctly.