The launcher is probably pointing to an old java install, remove ftb launcher, remove all its crap in your user files, clean your registry and reinstall.
Java 7 prevents FTP transfers on Windows Vista and 7.
In FTP, before a file is transferred a PORT or a PASV command must be sent. As soon as one of the commands is sent the Windows Firewall closes the socket that sent it. This only happens if the firewall is on and an exception for java.exe is absent. I suspect this problem is related to Java 7 using the new Vista IP stack.
Does anyone have any ideas how to fix or work around this problem? We're distributing a Java FTP library so we obviously can't add exceptions ourselves.
Exception:
JRE version info:
FOLLOW-UP 1 (14 November 2011):Oracle has analysed the problem and have found that it seems to be a bug in Windows Firewall and/or the IPv6 stack. They managed to replicate the problem with a native C (i.e. non-Java) app, so this is strong evidence that the bug is not in Java. They have informed Microsoft, so the ball is in their court now. More details can be found at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696
FOLLOW-UP 2 (27 July 2012):A (very helpful) contact at Oracle has told me that the issue has now been escalated at Microsoft. We're hoping to see some results soon.
FOLLOW-UP 3 (15 August 2012):Our contact at Oracle has told us that Microsoft has accepted the bug and is in the process of prioritizing it.
FOLLOW-UP 4 (21 September 2012):Microsoft has produced a patch that is currently being tested by Oracle. No word on a release date.
FOLLOW-UP 5 (11 October 2012):Success at last! Microsoft has publicly released a hotfix. They imply that the fix will be included in a general software update in the future:
'if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.'
9 Answers
We tested the Windows hotfix http://support.microsoft.com/kb/2754804 and confirmed that it did resolve the problem.
The problem is caused by the stateful FTP filter of the firewall. As a workaround you can disable it by executing netsh advfirewall set global StatefulFTP disable
with administrator rights.
I've submitted a bug report to Oracle, see bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696
They've marked the priority as low, which makes me think that they don't quite understand the magnitude of the problem, i.e. that FTP is broken on Java/Windows. I forgot to state that explicitly in the bug report. If anyone else feels like it should have a higher priority please add a comment to the Oracle bug report.
I just noticed that you can also 'vote' for the bug, so please give it a vote if you agree it's significant.
This problem can be demonstrated without JDK7, it's the firewall in Windows 7 blocking the ftp protocol when the application is using IPv6-mapped IPv4 addresses. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696 for more details and workarounds.
Blogged about the issue here:http://podzemski.com/2011/09/12/java-7-prevents-ftp-transfers-on-windows-when-firewall-is-on/
Maybe it'll cause some additional awareness of the problem.
Actually TFTP under JDK7 on windows 7 also have the same problem, the MS hotfix does resolve FTP issue, but still not works for TFTP. Seems Oracle should report the same problem to MS and get another hotfix to resolve TFTP issue as well.
The same bug was reported here with a test case:Java 7 Socket Exception Bug forum.Its an issue with Java 7
I had the same problem using IDE Eclipse Neon, JAVA 7 and Windows 7 Professional. Trying to upload a PDF file to an FTP server. I solved it by running the following command in CMD as administrator:
protected by Community♦Mar 16 '17 at 15:29
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged windowsftpjava-7windows-firewallwfp or ask your own question.
With Java (JRE) you can run Java applications on your Windows PC!
- Java JRE 8 Update 212 (32-bit)
Date released: 16 Apr 2019 (one month ago)
- Java JRE 8 Update 211 (32-bit)
Date released: 16 Apr 2019 (one month ago)
- Java JRE 8 Update 202 (32-bit)
Date released: 20 Jan 2019 (5 months ago)
- Java JRE 8 Update 201 (32-bit)
Date released: 17 Jan 2019 (5 months ago)
- Java JRE 8 Update 192 (32-bit)
Date released: 17 Oct 2018 (8 months ago)
- Java JRE 8 Update 191 (32-bit)
Date released: 17 Oct 2018 (8 months ago)
- Java JRE 8 Update 181 (32-bit)
Date released: 18 Jul 2018 (11 months ago)
- Java JRE 8 Update 172 (32-bit)
Date released: 17 Apr 2018 (one year ago)
- Java JRE 8 Update 171 (32-bit)
Date released: 17 Apr 2018 (one year ago)
- Java JRE 8 Update 162 (32-bit)
Date released: 16 Jan 2018 (one year ago)
- ...
- Java JRE 8 Update 212 (32-bit)
Join our mailing list
Stay up to date with latest software releases, news, software discounts, deals and more.
Subscribe