Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

FTPS using JDK 1.4, Apache Commons, JScape, JSh

843790Sep 18 2008 — edited Jan 21 2009
I want to write a stand-alone Java program (not web based, it is Java main class), I want to do FTPS (FTP over SSL) to a remote box outside the firewall. Following are my questions:
1. Does JDK 1.4 support it?
2. Does JDK 1.5 support it?
3. Does Apache Commons commons-net-1.4.1.jar support it in JDK 1.4?

If not, I may look into using JScape or JSh.

Any recommendation on how to write FTPS using JDK package 1.4?

I was thinking of using JDK 1.4 as follows, however do not know if it will support FTPS. However, JDK support is rudimentary.
URL url = new URL("ftp://user01:pass1234@ftp.foo.com/README.txt;type=i");
URLConnection urlc = url.openConnection();
InputStream is = urlc.getInputStream(); // To download
OutputStream os = urlc.getOutputStream(); // To upload

I have used Apache commons for FTP in the past, but it was not FTPS. I do not think that Apache commons supports FTPS. Please let me know, if Apache commons can also support FTPS.

As far as I know, JScape supports FTPS.

Any recommendation, or suggestion will be helpful.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 18 2009
Added on Sep 18 2008
1 comment
195 views