D. Wroblewski
D. Wroblewski

Reputation: 7590

Can't start applications in eclipse in debug mode on newly installed mac

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 expected. But when I run it in debug mode I get the following error:

Invalid memory access of location 0x14 rip=0x1007f9d22

Upvotes: 3

Views: 3632

Answers (3)

Relevance
Relevance

Reputation: 1

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.

Upvotes: 0

zooes
zooes

Reputation: 1468

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

Upvotes: 1

Andrew
Andrew

Reputation: 116

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

Upvotes: 10

Related Questions