|
Add apache-common-net.jar file V1.4.1 - Printable Version +- Ewon Technical Forum (https://techforum.ewon.biz) +-- Forum: Development (https://techforum.ewon.biz/forum-50.html) +--- Forum: Java (https://techforum.ewon.biz/forum-53.html) +--- Thread: Add apache-common-net.jar file V1.4.1 (/thread-2812.html) |
Add apache-common-net.jar file V1.4.1 - mickaa - 26-11-2025 Hello, I would like to add the apache-commons-net-ftp 1.4.1 (compatibility with compiler V1.3 in release note) library to be able to list and delete files in a directory to the remote server. I imported it in Eclipse: import org.apache.commons.net.ftp.*; I don't get any compilation errors. The JVM stops with instruction: FTPClient: Myftp = new FTPClient(); When I comment this line, the JVM does not break. Am I forgetting anything to integrate this library? RE: Add apache-common-net.jar file V1.4.1 - simon - 27-11-2025 Hi, Why not using the proprietary FTP functions "SendFtp" (ScheduledActions class) ? RE: Add apache-common-net.jar file V1.4.1 - mickaa - 28-11-2025 (27-11-2025, 02:05 PM)simon Wrote: Hi, Hi Simon, Today I'm using the ftp2me class, and I have no problem uploading or deleting files. I also have no problems working on the EWON server. - I would like to be able to list the files on a remote server in order to delete each file. I don't know how to do this. I tested with ftp4j-1.7.2.jar and commons-net-1.4.1.jar with the aim of implementing file listing on a remote server FTPFile[] list = client.list(); To run the ftp4j library you need a Java Runtime Environment J2SE v. 1.4 or later. RE: Add apache-common-net.jar file V1.4.1 - mickaa - 22-12-2025 Okay, I've added the script's source code, and there are quite a few missing classes in the Ewon. It's more complicated than I thought; I'll work on a different approach. RE: Add apache-common-net.jar file V1.4.1 - mickaa - 12-01-2026 (27-11-2025, 02:05 PM)simon Wrote: Hi, Because the ability to list files on a remote server is not integrated into the library |