You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Matt Warnock <mw...@ridgecrestherbals.com> on 2010/05/18 18:54:58 UTC

Re: compile error on trunk and 10.04, revision 945444 SOLVED (workaround)

Th problem appears to be openjdk-specific.
If after doing "apt-get install java-6-sun-jdk" I then run
"update-java-alternatives --list" I get three options:
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj

If I then run "update-java-alternatives --set java-6-sun"
then it compiles fine.  

If I change back with "update-java-alternatives --set java-6-openjdk" it
breaks again.  But 9.04 compiles fine under openjdk, like I said. Still
don't know what openjdk is missing on Debian stable, but the Sun java
package apparently supplies it.

BTW, just out of curiosity, what is the purpose of "./ant", and why
would it be needed?  It seems to set JAVA, look for an
"ant-launcher.jar" file (of which there are several in my system, but
none in this directory tree, should I worry?) and then launch java,
which I assume runs the ant application.  How is this different from
the /usr/bin/ant shell script, which seems to do a lot more, but in the
same general vein?  Is the ./ant just a quick-and-dirty version of the
same thing?  Is there a reason I should use one or the other?

-- 
Matt Warnock <mw...@ridgecrestherbals.com>
RidgeCrest Herbals, Inc.

On Tue, 2010-05-18 at 10:03 -0600, Matt Warnock wrote:
> I am compiling from the command line, using openjdk, "java -version"
> gives the following:
> java version "1.6.0_0"
> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>