Jump to content

Couldn't Resolve Localhost error on OSX Maverick/Java 7 up45


Recommended Posts

I am running OSX Maverick on my iMac with Java 7 update 45 and get the error


Couldn't Resolve Localhost. On Mac: fix /private/etc/hosts file


I have tried uninstalling Java and re-installing but still have the error when I start the Admin console. This is preventing me from backing up my ISY configuration. I did look at other posts on this and it seems to have come up before. I looked at a post that said to edit the hosts file but it was not clear what it was I was to add. Can anyone help with this error?


Link to comment

Hi Kentinada-


It sounds to me like your hosts file is damaged or has the wrong permissions.


Bring up the Terminal program and type:

cat /private/etc/hosts 


And see what is returned. You should see a line included that says:     localhost


Have you run a repair permissions since upgrading to Mavericks? If not, launch the DiskUtility and click RepairPermissions - See if that helps.



Link to comment

Try typing:

ping localhost 


See if it returns:

64 bytes from icmp_seq=0 ttl=64 time=0.xxx ms


You will have to hit Ctrl-C to stop the ping once started.



Link to comment

OK. Thats good. Thje only thing odd that I noticed in your hosts file was a missing entry for your computers name. Mine looks like:


# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##	Xathros-MacBook-Air.local	localhost	broadcasthost


I wonder if that missing entry is the culprit.



Link to comment

go to the System Preferences, Sharing Applet:



The bottom line there is what should be in the hosts file.


Try editing the computer name - change it to something else, save the change then change it back and save again - that may update the file for you.





Link to comment


This topic is now archived and is closed to further replies.

  • Create New...