Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

java.lang.NoClassDefFoundError: com/enterprisedt/net/ftp/FTPException

Hi all
I am trying to set up a tFTPConnection, with FTPS Support, using the below setup

However I am left with the following error when I try and run it:
java.lang.NoClassDefFoundError: com/enterprisedt/net/ftp/FTPException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.getMethod0(Class.java:2813)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: com.enterprisedt.net.ftp.FTPException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
Exception in thread "main"


Any ideas what is wrong?
I am running this:
"Talend Open Studio for Data Integration"
Version: 5.6.1
Build id: V5.6.1_20141207_1530
On a windows 8 64bit machine.
Labels (3)
31 Replies
Anonymous
Not applicable
Author

I get an error here now:
} catch (com.enterprisedt.net.ftp.FTPException e) {
globalMap.put("tFTPRename_1_CURRENT_STATUS",
"File rename fail.");
throw e;
}


Telling me that com.enterprisedt cannot be resolved to a type.
There is not a file to be renamed currently (I am setting up the job to work), but I have email alerts set up if there is no file etc, but this is killing the job.
Anonymous
Not applicable
Author

I think your install might be corrupted possibly. Do you have a folder called \plugins\org.talend.libraries.ftp_5.6.1.20141207_1530\lib
with the following files inside...
commons-net-3.3.jar
edtftpj.jar
ftp4j-1.7.2.jar
jsch-0.1.51.jar
If the answer is no, that is your problem. You should be able to get these Jars from teh first folder I asked you to check earlier. If the folder does not exist, simply create it and add the files. You will then need to restart your Talend Studio.
Jcs19
Creator II
Creator II

For some reason it is not displaying my screenshots.....
This is the error I receive:
"com.enterprisedt cannot be resolved to a type"

You need to post 10 messages in the forum  0683p000009MA9p.png
Anonymous
Not applicable
Author

RHall
I have them in this folder:
.../TOS_DI-r118616-V5.5.1/TOS_DI-r118616-V5.5.1/plugins/org.talend.libraries.ftp_5.5.1.r118616/lib
Files:
commons-net-3.3.jar
edtftpj.jar
ftp4j-1.5.1.ar
jsch.jar


Not sure at all whats going on
Anonymous
Not applicable
Author

Hang on, you are using 5.6.1, correct? I ask as you have just told me that the folder in which you have those files is a 5.5.1 folder. Have you upgraded from 5.5.1? Do you have both version running side by side? If so, that is fine, but you will need this folder ....
org.talend.libraries.ftp_5.6.1.20141207_1530
Anonymous
Not applicable
Author

RHall
I do not have that in this folder:
C:\Talend\TOS_DI-20141207_1530-V5.6.1\workspace\.metadata\.plugins\

Do I literally just take the four files from my previous folder, and put them in a folder named:
org.talend.libraries.ftp_5.6.1.20141207_1530

Many thanks for all your help
Anonymous
Not applicable
Author

It's not a folder inside your workspace, it is a folder inside your main installation. Mine is here...
\Talend-Studio-20141207_1530-V5.6.1\plugins\org.talend.libraries.ftp_5.6.1.20141207_1530\lib
If you don't have that folder, I would take a back up of your jobs and reinstall.
Anonymous
Not applicable
Author

RHall
Thank you for your help.
I will export all my jobs, uninstall/reinstall Talend and start over again 0683p000009MACn.png
Will let you know, cheers!
Anonymous
Not applicable
Author

Yes, please post here again for your FTP jar issue. On my end, I have passed on the image upload issue to the web dev team to investigate it. Cheers
Anonymous
Not applicable
Author

Esabot,
I believe the issue with posting images is due to not having posted more than 10 posts. I recently set up a new user on here (this one) as my old one was linked to my old Talend work account. When I set that up I had to post 10 times before I could post images.