Eclipse hangs when trying to install Klocwork plug-in on machine with no internet access

If Eclipse is installed on a machine with local network access but no Internet access, in some versions it will hang when trying to enter the "Find & update" screen.

This is a well-known Eclipse issue.

There are two possible solutions.

Solution 1

After Eclipse loads, but before entering the "Find & update" screen, disconnect the network cable.

Do not disconnect the network cable before Eclipse loads, as in some variants (such as Wind River Workbench), it performs a license check at startup, which will fail without local network access.

Solution 2

It is possible to change the Eclipse update policy. For example, you can create a fake policy file:

<?xml version="1.0" encoding="UTF-8"?>
<update-policy>
    <url-map pattern="org.eclipse" url="http://localhost:9876"/>
</update-policy>

And save it, say, to /space/mypolicy.xml.

After that, go to Window > Preferences > Install/Update, and type the policy URL here; it will be:

file:///space/mypolicy.xml (yes, the third slash is for the Unix root).