thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Doe <jd...@yahoo.com>
Subject Re: Trying to compile thrift...
Date Fri, 24 Jul 2009 13:34:40 GMT
From: David Reiss <dreiss@facebook.com>
> If that doesn't help, take a look at your config.log.  There should
> be a comprehensible error message.

First, I must state that I am no java expert at all...
There is no system wide CLASSPATH for some reason.
So I search for all directories with .jar files and added most of them:
export CLASSPATH=/usr/share/java:/usr/java/jdk1.6.0_07/lib:/usr/java/jdk1.6.0_07/jre/lib:/usr/java/jdk1.6.0_07/jre/lib/ext:/usr/java/jdk1.6.0_07/jre/lib/im:/usr/java/jdk1.6.0_07/jre/lib/security:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/ext:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/im

With this CLASSPATH, I get in the config.log:
....
configure:20404: checking for javac and java
Running "javac configtest_ax_javac_and_java.java"
Running "java configtest_ax_javac_and_java"
Exception in thread "main" java.lang.NoClassDefFoundError: configtest_ax_javac_and_java
Caused by: java.lang.ClassNotFoundException: configtest_ax_javac_and_java
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Running "kaffe configtest_ax_javac_and_java"
/Install/cassandra/thrift/configure: line 20423: kaffe: command not found
Running "jikes configtest_ax_javac_and_java.java"
/Install/cassandra/thrift/configure: line 20416: jikes: command not found
Running "gcj -C configtest_ax_javac_and_java.java"
/Install/cassandra/thrift/configure: line 20416: gcj: command not found
configure:20437: result: no
configure:20451: checking for ant
configure:20469: found /usr/bin/ant
configure:20481: result: /usr/bin/ant
configure:20489: checking for Java class org.apache.log4j.Logger
Running " configtest_ax_javac_and_java.java"
/Install/cassandra/thrift/configure: line 20495: configtest_ax_javac_and_java.java: command
not found
configure:20500: result: no
configure:20509: checking for Java class org.apache.commons.lang.builder.HashCodeBuilder
Running " configtest_ax_javac_and_java.java"
/Install/cassandra/thrift/configure: line 20515: configtest_ax_javac_and_java.java: command
not found
configure:20520: result: no
....

I think I first need to find good java packages; installing the distrib default packages seem
to miss some configuration steps (like set a CLASSPATH)... :/

Thx,
JD


      


Mime
View raw message