Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old June 26th, 2010, 07:55 PM   #1 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 8
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Cool ftp in j2me

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();
        }

    }

}

bruno386 is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a J2ME app on Android mgillespie Application Development 5 January 20th, 2012 01:59 AM
Netmite J2ME MIDP runner. bobrathbone Alpha & Beta Testing 13 May 23rd, 2011 02:06 PM
Porting J2me chess to android virtual Application Development 1 May 11th, 2011 05:24 AM
Support Java /J2ME For Android Crash27 Sony Ericsson Xperia X10 0 June 10th, 2010 07:34 PM



All times are GMT -5. The time now is 11:30 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo