[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Java-related Bison tests all fail
From: |
Joel E. Denny |
Subject: |
Re: Java-related Bison tests all fail |
Date: |
Sat, 10 Feb 2007 16:46:33 -0500 (EST) |
On Sat, 10 Feb 2007, Bruno Haible wrote:
> Might be an installation problem with your gij or gcj. What does the
> following Java program print if you compile it with gcj -C and run it with
> gij?
>
> ============================= conftestver.java =============================
> public class conftestver {
> public static void main (String[] args) {
> System.out.println(System.getProperty("java.specification.version"));
> }
> }
> ============================================================================
It prints:
1.4
As far as I can tell, conftestver.class is created by an echo in
javacomp.m4. When using gt_JAVACOMP([1.3]) in configure.ac, this passage
appears in config.log:
configure:18697: checking for Java virtual machine
configure:18747: found /usr/local/bin/gij
configure:18781: found /usr/lib/java/bin/java
configure:18904: result: gij
configure:18957: CLASSPATH=. gij conftestver
Exception in thread "main" java.lang.ClassFormatError: conftestver (bad magic
number)
at java.lang.VMClassLoader.defineClass (natVMClassLoader.cc:77)
at java.lang.ClassLoader.defineClass (ClassLoader.java:449)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:108)
at java.net.URLClassLoader.findClass (URLClassLoader.java:1166)
at java.lang.ClassLoader.loadClass (ClassLoader.java:317)
at java.lang.ClassLoader.loadClass (ClassLoader.java:260)
at java.lang.Class.forName (natClass.cc:88)
at gnu.java.lang.MainThread.run (MainThread.java:95)
configure:18964: WARNING: unknown target-version , please update gt_JAVACOMP
macro
configure:19009: checking for Java compiler
configure:19215: found /usr/local/bin/gcj
configure:19302: gcj -C -d . conftestlib.java
configure:19484: result: no
configure:19495: checking for Java virtual machine
configure:19702: result: gij
- Java-related Bison tests all fail, Paul Eggert, 2007/02/04
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/07
- Message not available
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/07
- Message not available
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/07
- Message not available
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/09
- Re: Java-related Bison tests all fail, Bruno Haible, 2007/02/10
- Re: Java-related Bison tests all fail,
Joel E. Denny <=
- Re: Java-related Bison tests all fail, Bruno Haible, 2007/02/10
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/10
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/10
- Re: Java-related Bison tests all fail, Bruno Haible, 2007/02/10
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/10
- Re: coreutils-5.2.1 'tr' bug (was: Java-related Bison tests all fail), Bruno Haible, 2007/02/11
- Re: coreutils-5.2.1 'tr' bug, Jim Meyering, 2007/02/23
- Re: Java-related Bison tests all fail, Bruno Haible, 2007/02/11
- Re: Java-related Bison tests all fail, Joel E. Denny, 2007/02/11