Home » Tutorials » Ubuntu Hints and Tips » ArgoUML install problem

Tip to get ArgoUML working

I'm using Ubuntu Gutsty 7.10. 

I was wanting to try out ArgoUML, but found a couple of problems with the installation. 

Firstly the link it created in my menu was "ArgoUML" rather than the case-sensitive "argouml", but when I tried "argouml" it failed to load, with the following:

alex@ubuntu:~$ argouml
ERROR: unable to get localhost information.
java.net.UnknownHostException: ubuntu: ubuntu
        at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
        at org.argouml.application.Main.checkHostsFile(Main.java:496)
        at org.argouml.application.Main.main(Main.java:124)
On Unix systems this usually indicates thatyour /etc/hosts file is incorrectly setup.
Stopping execution of ArgoUML.

To get it working, I edited the "/etc/hosts" file (use sudo), and add your computer name (the bit after the "@" symbol on the command line, if you're not sure) as on the line below:

127.0.0.1 localhost ubuntu

In my case, I added "ubuntu", which is the default. It loaded okay for me after that!