• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ftp in j2me

bruno386

Lurker
Jun 26, 2010
8
0
I have this very simple piece of java code which works fine...


How do i convert it to j2me as there is no io.file class in j2me :(



Code:
package javaapplication1;

import it.sauronsoftware.ftp4j.FTPClient;

/**
 *
 * @author bruno
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        try
        {
        FTPClient client = new FTPClient();
        client.connect("ftpserveraddy");
        client.login("user", "pass.");
        client.upload(new java.io.File("C://text.txt"));
        }
        catch(Exception e)
        {

        e.printStackTrace();
        }

    }

}
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones