LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2012, 04:36 AM   #1
prabhas4
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Rep: Reputation: Disabled
Argo Uml installation


Hello , I am looking for a UML tool that imports java project and converts into UML diagrams/class diagrams. One of my friend suggested Argo UML. I was downloaded and tring to install it. I was followed the instruction in READ_me, trying to run a script the installs Argo Uml. But unable to install it. Error show that

./argouml.sh
log4j:WARN No such property [follow] in org.apache.log4j.ConsoleAppender.
ERROR: unable to get localhost information.
java.net.UnknownHostException: host: host
at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at org.argouml.application.Main.checkHostsFile(Main.java:639)
at org.argouml.application.Main.initPreinitialize(Main.java:289)
at org.argouml.application.Main.main(Main.java:165)
On Unix systems this usually indicates thatyour /etc/hosts file is incorrectly setup.
Stopping execution of ArgoUML.

Please help me.. I am using Fedora 15..
Thanks in advance.

Last edited by prabhas4; 06-26-2012 at 09:20 AM.
 
Old 06-22-2012, 06:12 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) # rpm -Uvh jdk-1.6.0_31-fcs.<arch>.rpm

64bits http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm
32bits http://ftp.scientificlinux.org/linux...1-fcs.i586.rpm

2) java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

3) cd argouml-0.32.2/ && sh argouml.sh : No issues.
4) cd argouml-0.34/ && sh argouml2.sh : No issues.

.
 
Old 06-22-2012, 07:07 AM   #3
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
You could even just launch the latest version from the website home page using Java WebStart.
 
1 members found this post helpful.
Old 06-26-2012, 09:19 AM   #4
prabhas4
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Issue not resolved:

$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.8) (fedora-65.1.10.8.fc15-i386)
OpenJDK Server VM (build 20.0-b11, mixed mode)

# cd argouml-0.34/ && sh argouml2.sh

same error i m getting again.
 
Old 06-26-2012, 09:33 AM   #5
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
First result on Google for "ERROR: unable to get localhost information.": link.
You should basically make sure that a localhost entry exists inside your /etc/hosts file.
 
1 members found this post helpful.
Old 06-26-2012, 11:51 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 4

OK, you will have to switch from "openjdk" to java version "1.6.0_31"
by using the "/etc/alternatives/" mechanism ...

1) su
2)
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_31/bin/java 2000

3) /usr/sbin/alternatives --config java
.. And then please select the "sun jdk6".


.
 
1 members found this post helpful.
Old 06-26-2012, 01:36 PM   #7
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
I don't think it is an issue with the OpenJDK, as I can successfully start the latest ArgoUML using OpenJDK 7_u5 on my system.
The issue probably lies in a misconfigured localhost in /etc/hosts, but only the OP can tell
 
Old 06-27-2012, 05:12 AM   #8
prabhas4
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you every one .. Problem solved .. it is the problem with local host, i changed /etc/hosts file, made an entry to it with my <ip4 adress> <host name> ..
Thanks for the link provided .. @414N
 
Old 06-28-2012, 05:50 AM   #9
prabhas4
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
system slows down while booting.. after an entry <ip4address> <hostName> into the etc/hosts .. how to make it as fast bootup ..
 
Old 06-28-2012, 08:48 AM   #10
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
Try appending your hostname to the first localhost entry, in a similar way as described here.
 
1 members found this post helpful.
Old 06-28-2012, 01:01 PM   #11
prabhas4
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thats working fine now... (booting as normal and argoUml is also).. Thank you @ 414N
 
  


Reply

Tags
jdk6



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uml saritha Linux - Newbie 4 01-04-2008 12:42 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 11-05-2006 12:21 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-21-2006 11:33 PM
What is UML? asahlot Linux - Software 1 10-28-2005 08:33 AM
No makefiles for uml installation piraisudi Linux - Newbie 0 04-18-2005 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration