users@glassfish.java.net

Re: Installing Glassfish on Linux

From: Kristian Rink <kawazu_at_zimmer428.net>
Date: Mon, 07 Jul 2008 13:15:57 +0200

Hi there:

looking at this...

glassfish_at_javadesktop.org schrieb:
[...]
> BUILD FAILED /root/Download/glassfish/setup.xml:156: The following
> error occurred while executing this line:
> /root/Download/glassfish/setup.xml:146: Glassfish requires JDK 1.5 or
> higher, you have java version "1.7.0" IcedTea Runtime Environment
> (build 1.7.0-b21) IcedTea Client VM (build 1.7.0-b21, mixed mode)

... and at the path in your earlier messages
(/usr/java/jdk1.6.0_06/bin), I am sort of confused which version of JDK
you are actually running on your machine. Browsing around I found [1]
reporting certain issues installing Glassfish with the IcedTea 1.7.0 JDK
package which seems to fit your problem rather well. Plus, given you
possibly(?) have two JDKs installed, maybe you're simply using the wrong
one. I am curious whether, on your machine, the output of


java -version (no full path) and

/usr/java/jdk1.6.0_06/bin/java -version

will be the same? Personally, it's things like that to initially make me
 distrust distribution-specifically prepackaged JDKs and installing Java
along with Glassfish somewhere in /opt, out of the way of package
management. ;)

Cheers,
Kristian

[1] http://www.ensode.net/java_fedora_8_icedtea.html



-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu_at_jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)