I have reinstalled snow leopard (10.6.4) and it's fully updated. Running java -version gives me:
Java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) Client VM (build 16.3-b01-279, mixed mode)I have installed a fresh version of eclipse (helios, 3.6, build: 20100617-1415).
I create a new java project, add a simple test case:
public class TestMyEclipse {
@Test
public void testIt() {
assertTrue(true);
}
}
When I run this in normal mode in eclipse it works as expec开发者_如何转开发ted. But when I run it in debug mode I get the following error:
Invalid memory access of location 0x14 rip=0x1007f9d22
The problem is that your localhost has been removed from your hosts entry. I've posted a blog entry detailing how I fixed it. http://yadg.blogspot.com/2011_01_01_archive.html
I found another blog which describes the problem and the solution in greater detail. Here is the link if it helps:
http://apachefelix.blogspot.com/2012/05/offtopic-mac-cant-resolve-localhost-and.html
Type /private/etc in the finder.
Look for the hosts file. Edit it and paste:
127.0.0.1 localhost
I used sublime and it'll ask sudo credentials before saving the modified file.
精彩评论