You are not logged in.

#1 2007-10-14 15:55:24

tntcoda
Member
Registered: 2007-07-24
Posts: 115

JRE/Java Problem

Hi,

I just installed Argouml, which depends on the JRE which pacman installed automatically (local/jre 6u3-1).

However when i try to run argouml i get:

/usr/bin/argouml: line 3: java: command not found

Any ideas on why it cant find the java binary?

Thanks

Jack

Offline

#2 2007-10-14 15:58:28

pooflinger
Member
From: Sweden
Registered: 2007-10-05
Posts: 53

Re: JRE/Java Problem

"/opt/java/bin/java" is not in your $PATH. llogout, login,  and if it doesn't help, reboot.

Offline

#3 2007-10-14 16:02:35

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: JRE/Java Problem

Hi tntcoda,
try to logout and login again in order to update your environment with proper JAVA_HOME variable
The settings are in

 /etc/profile.d/jre.sh

Offline

#4 2007-10-14 16:11:48

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: JRE/Java Problem

Thanks guys, right that fixed the java problem, however argouml now gives me the following error sad

ERROR: unable to get localhost information.
java.net.UnknownHostException: tmain: tmain
        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.

My hostname is tmain, and /etc/hosts is setup as follows:

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost

Thanks again for any help

Offline

#5 2007-10-14 16:15:23

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: JRE/Java Problem

Try to add your hostname after localhost:

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost <your hostname>

without "<" and ">"

Last edited by luca (2007-10-14 16:16:11)

Offline

#6 2007-10-14 16:17:57

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: JRE/Java Problem

Thanks alot, all working now smile

Offline

Board footer

Powered by FluxBB