Thursday, February 27, 2014

eclipse java heap git clone

When I try to clone a git repository using eclipse (kepler + EGit 3.0.3) and I ask to have the project imported into eclipse after the clone, I get a message that eclipse has run out of memory - Java Heap.

This can be fixed by changing the jvm parameter, shown in red below, in the eclipse configuration file.

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx1024m


Wednesday, February 19, 2014

eclipse proxy configuration

Eclipse couldn't connect to external sites because of authentication problems with the proxy server.
This really helped; even without the restart:

http://stackoverflow.com/questions/5857499/how-do-i-have-to-configure-the-proxy-settings-so-eclipse-can-download-new-plugin

"So the solution for me was to configure the manual settings for HTTP and HTTPS proxy, clear the settings for SOCKS, and restart Eclipse."

However, when I tried to debug a remote application the above interfered with the ability of the jdpa client to connect to the remote application.