[MonetDB-users] Installation Problems

Stefan Manegold Stefan.Manegold at cwi.nl
Wed Sep 24 19:45:34 CEST 2008


Hi Scott,

I guess, Jennie was not refering to JDK 1.5 vs. JRE 1.6, but 
java 1.5 (reported by ant) vs. javac 1.5.0_16 (reported by configure).

Apart from that, running JDK 1.5 created jar's using JRE 1.6 should be
possible --- I recall that I ran the Sun JDK 1.5 created jar's of our
release using IcedTea 1.7 on my Fedora 9 Laptop ...

In fact, in case building the MonetDB JDBC driver keep (unexpectedly)
failing for you, you might consider simply using the released jar file as
downloadable from
http://monetdb.cwi.nl/Download/
or
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/.DailyBuilds./Release/JARs/

Stefan

On Wed, Sep 24, 2008 at 08:31:34AM -0500, Scott Stephens wrote:
> My current thinking is that my installation of ant requires the 1.6
> JRE to function.  For some reason I've always been changing the
> default JRE and default javac in tandem: I've never tried a 1.6 JRE
> and a 1.5 javac (just didn't occur to me until now).  I'll give that a
> try later today and see if it works.  Is there a dependency on the
> default JRE at build time?  Once I get it built it should be fine to
> run .jars built for 1.5 on the 1.6 JRE, right?
> 
> On Wed, Sep 24, 2008 at 4:39 AM, Ying Zhang <Y.Zhang at cwi.nl> wrote:
> > Hello Scott,
> >
> >
> > On Sep 24, 2008, at 04:56 , Scott Stephens wrote:
> >
> >> I ran ant -diagnostics:
> >>
> >> ------- Ant diagnostics report -------
> >> Apache Ant version 1.7.0 compiled on September 8 2008
> >>
> >> -------------------------------------------
> >> Implementation Version
> >> -------------------------------------------
> >> core tasks     : 1.7.0
> >> optional tasks : not available
> >>
> >> -------------------------------------------
> >> ANT PROPERTIES
> >> -------------------------------------------
> >> ant.version: Apache Ant version 1.7.0 compiled on September 8 2008
> >> ant.java.version: 1.5
> >                   ^^^^^
> >
> > In your installation log, it says:
> >
> > <snip>
> > This program built for x86_64-pc-linux-gnu
> > gmake cannot be found in the path
> > javac 1.5.0_16
> > javac: no source files
> > <snip>
> >
> > Would it be that your ant is using a slightly older version of java,
> > than javac?  Because this is the typical situation in which you get
> > the error "Bad version number in .class file".
> >
> >>
> >> ant.core.lib: /usr/share/ant/lib/ant.jar
> >> ant.home: /usr/share/ant
> >>
> >> <snip>
> >>
> >> -------------------------------------------
> >> org.apache.env.Which diagnostics
> >> -------------------------------------------
> >> Not available.
> >> Download it at http://xml.apache.org/commons/
> >>
> >> -------------------------------------------
> >> XML Parser information
> >> -------------------------------------------
> >> Bad version number in .class file
> >>
> >> It looks like  was using java 1.5 in both ant and javac, but the last
> >> line is definitely concerning.  I installed Sun Java 1.6 and I got a
> >> much more reasonable ant -diagnostics printout.  Of course I need
> >> either java 1.4 or 1.5 to build MonetDB... which leaves me in a bit of
> >> a bind I guess.  For the time being I'll try building Monet with java
> >> 1.6 anyway and see how that goes.
> >
> > If you want to use JDBC, you have to use java 1.4 or 1.5, the 'java'
> > module will not compile with Java 1.6
> > See for example the configure output:
> >  checking for Java >= 1.4, but < 1.6... yes -> 1.5.0_16 found
> >
> > The JDBC 1.6 API is not compatable with JDBC 1.5 API, and the
> > implementation was no trivial task.  Actually, Fabian (our JDBC guy)
> > has tried to implement 1.6, but didn't succeed / hasn't finished due
> > to quite several difficulties.  Maybe he can tell you more about this.
> >
> > Regards,
> >
> > Jennie
> >>
> >>
> >> -- Scott
> >>
> >> On Mon, Sep 22, 2008 at 10:00 AM, Stefan Manegold
> >> <Stefan.Manegold at cwi.nl> wrote:
> >>> On Mon, Sep 22, 2008 at 04:51:13PM +0200, Ying Zhang wrote:
> >>>> Hello Scott,
> >>>>
> >>>> First of all, thanks for trying MonetDB.
> >>>>
> >>>> On Mon, Sep 22, 2008 at 07:46:28AM -0500, Scott Stephens wrote:
> >>>>> I've been attempting to install MonetDB by compiling the Aug. 2008
> >>>>> superball.  My system is 64-bit linux, specifically the Ubuntu
> >>>>> Intrepid Ibex alpha .  It appears that the installation is failing
> >>>>> while compiling the JDBC driver, with the error message:
> >>>>>
> >>>>> BUILD FAILED
> >>>>> java.lang.UnsupportedClassVersionError: Bad version number
> >>>>> in .class file
> >>>>>
> >>>>> I'm using the Sun Java 1.5.0 JRE and JDK.  You can look at my full
> >>>>> installation log here:
> >>>>> http://docs.google.com/Doc?id=dhqbmd8x_6fqdnn7c3
> >>>>> Can somebody help me out?  I'm hoping I've just made an easily
> >>>>> corrected newbie mistake, but I'm out of things to try.
> >>>>
> >>>> This looks like you have multiple versions of java/javac installed
> >>>> on
> >>>> your system. 'ant' might be using a different java compiler than
> >>>> the one
> >>>> 'javac' in your path (but I unfortunately don't know how to find
> >>>> which
> >>>> javac ant is using...).
> >>>
> >>> `ant -diagnostics` ?
> >>>
> >>> Stefan
> >>>
> >>>> Can you maybe search for all java versions you have, and
> >>>> remove/disable all but one version?
> >>>>
> >>>>
> >>>> Kind regards,
> >>>>
> >>>> Jennie
> >>>>
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Scott
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>
> >>>>> -------------------------------------------------------------------------
> >>>>> This SF.Net email is sponsored by the Moblin Your Move
> >>>>> Developer's challenge
> >>>>> Build the coolest Linux based applications with Moblin SDK & win
> >>>>> great prizes
> >>>>> Grand prize is a trip for two to an Open Source event anywhere in
> >>>>> the world
> >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >>>>> _______________________________________________
> >>>>> MonetDB-users mailing list
> >>>>> MonetDB-users at lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/monetdb-users
> >>>>
> >>>> -------------------------------------------------------------------------
> >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >>>> challenge
> >>>> Build the coolest Linux based applications with Moblin SDK & win
> >>>> great prizes
> >>>> Grand prize is a trip for two to an Open Source event anywhere in
> >>>> the world
> >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >>>> _______________________________________________
> >>>> MonetDB-users mailing list
> >>>> MonetDB-users at lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/monetdb-users
> >>>
> >>> --
> >>> | Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
> >>> | CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
> >>> | 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
> >>> | The Netherlands     | Fax : +31 (20) 592-4312       |
> >>>
> >>> -------------------------------------------------------------------------
> >>> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >>> challenge
> >>> Build the coolest Linux based applications with Moblin SDK & win
> >>> great prizes
> >>> Grand prize is a trip for two to an Open Source event anywhere in
> >>> the world
> >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >>> _______________________________________________
> >>> MonetDB-users mailing list
> >>> MonetDB-users at lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/monetdb-users
> >>>
> >>
> >> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> >> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> >> the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> MonetDB-users mailing list
> >> MonetDB-users at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/monetdb-users
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK & win great prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > MonetDB-users mailing list
> > MonetDB-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/monetdb-users
> >
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> MonetDB-users mailing list
> MonetDB-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-users
> 

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the users-list mailing list