[MonetDB-users] monetdb-install.sh: com.sun.tools.javac.Main is not on the classpath.
Hi all, I logged in on another INS1 desktop 'vili', and try to install monetdb there with $monetdb-install.sh --enable-xquery --enable-optimize --nightly=stable --prefix="/export/scratch0/zhang/MonetDB" and it ends in: BUILD FAILED /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:94: The following error occurred while executing this line: /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:289: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/ jre" While javac says: $ which javac /usr/bin/javac $ javac -version javac 1.6.0_0 Manually setting JAVA_HOME to my own java installation ends in the same error: $env JAVA_HOME=/ufs/zhang/install/java/current monetdb-install.sh -- enable-xquery --enable-optimize --nightly=stable --prefix="/export/ scratch0/zhang/MonetDB" The log is attached. Thanks in advance. Jennie
On 09-09-2009 18:22:16 +0200, Ying Zhang wrote:
Hi all,
I logged in on another INS1 desktop 'vili', and try to install monetdb there with
$monetdb-install.sh --enable-xquery --enable-optimize --nightly=stable --prefix="/export/scratch0/zhang/MonetDB"
and it ends in:
BUILD FAILED /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:94: The following error occurred while executing this line: /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:289: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/ jre"
it points to the JRE (Java Runtime Environment), not the JDK (Java Development Kit) or SDK.
Manually setting JAVA_HOME to my own java installation ends in the same error: $env JAVA_HOME=/ufs/zhang/install/java/current monetdb-install.sh -- enable-xquery --enable-optimize --nightly=stable --prefix="/export/ scratch0/zhang/MonetDB"
The log is attached. Thanks in advance.
is this log from that run, or your first?
On Sep 09, 2009, at 18:40 , Fabian Groffen wrote:
On 09-09-2009 18:22:16 +0200, Ying Zhang wrote:
Hi all,
I logged in on another INS1 desktop 'vili', and try to install monetdb there with
$monetdb-install.sh --enable-xquery --enable-optimize -- nightly=stable --prefix="/export/scratch0/zhang/MonetDB"
and it ends in:
BUILD FAILED /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:94: The following error occurred while executing this line: /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:289: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-1.6.0- openjdk-1.6.0.0.x86_64/ jre"
it points to the JRE (Java Runtime Environment), not the JDK (Java Development Kit) or SDK.
Manually setting JAVA_HOME to my own java installation ends in the same error: $env JAVA_HOME=/ufs/zhang/install/java/current monetdb-install.sh -- enable-xquery --enable-optimize --nightly=stable --prefix="/export/ scratch0/zhang/MonetDB"
The log is attached. Thanks in advance.
is this log from that run, or your first?
Sorry, my text was unclear. To be sure, I have started a fresh install (just logout and log into 'vili' again) with $monetdb-install.sh --enable-xquery --enable-optimize --nightly=stable --prefix="/export/scratch0/zhang/MonetDB" its log is attached. I'm a bit surprised by the message that JAVA_HOME "is currently set to "/usr/lib/jvm/java-1.6.0- openjdk-1.6.0.0.x86_64/jre", because I always set JAVA_HOME to point to my own java installation: $ grep JAVA_HOME ~/.bashrc export JAVA_HOME=$HOME/install/java/current PATH=$JAVA_HOME/bin:$PATH $ echo $JAVA_HOME /ufs/zhang/install/java/current Thanks a lot. Jennie
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
On 09-09-2009 20:01:01 +0200, Ying Zhang wrote:
Sorry, my text was unclear. To be sure, I have started a fresh install (just logout and log into 'vili' again) with
$monetdb-install.sh --enable-xquery --enable-optimize --nightly=stable --prefix="/export/scratch0/zhang/MonetDB"
its log is attached. I'm a bit surprised by the message that JAVA_HOME "is currently set to "/usr/lib/jvm/java-1.6.0- openjdk-1.6.0.0.x86_64/jre", because I always set JAVA_HOME to point to my own java installation:
If I were you, I'd disable java compilation and just do it by hand with ant. There is a zillion of scripts inbetween the actual invocation and the excecuted binary. sed -i -e 's/DO_JAVA=/noDO_JAVA=/' monetdb-install.sh
When you ssh to another machine, your .bashrc is not executed by
default. Either add a line to your .login to execute .bashrc or after
you ssh run
$> source .bashrc
On Wed, Sep 9, 2009 at 8:01 PM, Ying Zhang
On Sep 09, 2009, at 18:40 , Fabian Groffen wrote:
On 09-09-2009 18:22:16 +0200, Ying Zhang wrote:
Hi all,
I logged in on another INS1 desktop 'vili', and try to install monetdb there with
$monetdb-install.sh --enable-xquery --enable-optimize --nightly=stable --prefix="/export/scratch0/zhang/MonetDB"
and it ends in:
BUILD FAILED /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:94: The following error occurred while executing this line: /var/tmp/MonetDB-1252495100/MonetDB-java/java/build.xml:289: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/ jre"
it points to the JRE (Java Runtime Environment), not the JDK (Java Development Kit) or SDK.
Manually setting JAVA_HOME to my own java installation ends in the same error: $env JAVA_HOME=/ufs/zhang/install/java/current monetdb-install.sh -- enable-xquery --enable-optimize --nightly=stable --prefix="/export/ scratch0/zhang/MonetDB"
The log is attached. Thanks in advance.
is this log from that run, or your first?
Sorry, my text was unclear. To be sure, I have started a fresh install (just logout and log into 'vili' again) with
$monetdb-install.sh --enable-xquery --enable-optimize --nightly=stable --prefix="/export/scratch0/zhang/MonetDB"
its log is attached. I'm a bit surprised by the message that JAVA_HOME "is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre", because I always set JAVA_HOME to point to my own java installation:
$ grep JAVA_HOME ~/.bashrc export JAVA_HOME=$HOME/install/java/current PATH=$JAVA_HOME/bin:$PATH
$ echo $JAVA_HOME /ufs/zhang/install/java/current
Thanks a lot.
Jennie
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
participants (3)
-
Fabian Groffen
-
Lefteris
-
Ying Zhang