1 July, 2009

Configure the Java environment Eclipse loads with.



OK, well I reinstalled my laptop the other week and have being doing some programming the last couple of days with Java, to program in java I use the brilliant IDE called Eclipse, well normally I don't have any problems however over the last few days it has being crashing every 10 or 15 minutes. After playing around with the settings for awhile I remembered something I had read on a forum a while ago. Apparently Eclipse doesn't load using the system defaulted java(no idea why) but instead searches through a list to find one that is install(who would do this???). Anyway after a bit of searching I managed to find a brief post about the file, it was however for a slightly differnet OS and a different version of Eclipse, anyway I managed to track down the file. The file is called:

/etc/eclipse/java_home

In that file there is a list of different location for java directories, in order to use the sun java by default you have to add the following line at the top of the list:

/usr/lib/jvm/java-6-sun

In order to add that line just use your favorite text editor, remember you will need sudo permissions to edit the file.

Anyway that seems to have made Eclipse go back to is stable old self.

This was tested under Ubuntu 9.04 and 8.10 and seems to work on both.

------------------------------------------
NOTE: These articles are tutorials/general ramblings. I do not except responsibility for anything that goes wrong, be it a broken HDD, an entire computer or if you chop off your arms, follow anything I say on this site at your own risk.
------------------------------------------

Comments

Name:Rob Ward
URL:www.rob-ward.co.uk
Comment:
Apparently this works with Eclipse 3.4

------------------------------------------
Name:Rob Ward
URL:www.rob-ward.co.uk
Comment:
This was done with Eclipse 3.2, don't know how it works on the newer versions.....

------------------------------------------
Name:Rob Ward
URL:www.rob-ward.co.uk
Comment:
This apparently works with Ubuntu 8.04

------------------------------------------


Leave a comment

Name:


URL:(optional)


Protection Number (Please insert in box below):9718


Comment:


This website was designed and implemented by myself, all opinions and views expressed are my own unless otherwise specified. Excluding the images contained within the header and any specified elsewhere on the site images are my own.

Copyright Rob Ward
2009 - 2012