Skip to main content

eclipse problems with ubuntu hardy heron

i had pre-christmas at work when after coming from my holidays i was presented with a new intel quad core pc. my colleages even already had installed a parallel XP/ubuntu on it. great, i thought "i can immediatly start working!".
as long as the new monodevelop is not released, i am still stuck with eclipse (ganymede ). all i now had to do was i needed to install ganymede...
after downloading ganymede from eclipse homepage, i fired it up but was very confused: eclipse behaved very sluggish.... ok, i am used to it behaving sluggish from my old machine (a p4 2100 with ubuntu), but i thought it should be quite fast with the new cpu.
but i could barely work in a normal way: when doing a search, after pressing the shortcut i needed to wait for like 2 secs until i could press something that he'd recognize.
and then after some time eclipse would crash with a "out of memory" exceptions. it also crashed sometimes with some other exceptions. this behavior and the fact that eclipse was so slow was unacceptable for me. I could not work that way so i investigated.
after i had the same problems with the ubuntu-native-eclipse 3.2 that one can install via synaptic i decided to deinstall java: after all, eclipse is a java program so i thougt maybe my java installation was corrupt.
to my puzzlement, after deinstalling java, eclipse still started, without me having reinstalled java! now i began to dig deeper and finally found some answers and what i needed to do:

i found out that there is a GJC: a gnu java compiler. my eclipse run using the GJC instead of using the normal JRE. GJC comes preinstalled with ubuntu. It is not recommended using the GJC with eclipse according to eclipse documentation. Alas on my ubuntu, GJC seemed to be the default way java apps were run.
i then removed GJC via synaptic. NOW eclipse refused to run, it did not find any runtime to use. after this i installed the (sun) JRE via synaptic. after that eclipse run smooth!

the days that i use eclipse for coding are numbered because of the approaching monodevelop release date, so i already thought of just omitting giving tipps of how to use eclipse. but still, above entry might save some of you guys some time!

happy coding!

Comments