A solution to the exception of cannot open eclipse marketplace

1. Abnormal information

error: 
Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Connection failed
This is most often caused by a problem with your internet connection.Please check your internet connection and retry. 
Unable to read repository at http://marketplace.eclipse.org/catalogs/api/p. No content is allowed in the preamble.
Connection reset 
Connection failed

This is most often caused by a problem with your internet connection.Please check your internet connection and retry. 
Connection reset

2. Solutions

In the eclipse installation directory, find the eclipse.ini file and add the following at the end of the file:

-Djava.net.preferIPv4Stack=true

3. java.net.preferIPv4Stack

java.net.preferIPv4Stack (default: false)

If IPv6 is available on the operating system the underlying native socket will be an IPv6 socket. This allows Java(tm) applications to connect too, and accept connections from, both IPv4 and IPv6 hosts.

If an application has a preference to only use IPv4 sockets then this property can be set to true. The implication is that the application will not be able to communicate with IPv6 hosts.

Similar Posts: