Unix Technical Forum

ant fail to build because java version is not high enough?

This is a discussion on ant fail to build because java version is not high enough? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> My java version 1.5.0-beta2 is higher than that required 1.4.1, so why ant fail to build? $ ant Buildfile: ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 07:47 AM
TCMA
 
Posts: n/a
Default ant fail to build because java version is not high enough?

My java version 1.5.0-beta2 is higher than that required 1.4.1, so why
ant fail to build?

$ ant
Buildfile: build.xml

JDK.version.check:
[CheckVersion] Exception in thread "main" java.lang.RuntimeException:
JDK 1.4.1 or higher is required to run the examples in this book.
[CheckVersion] at com.bruceeckel.tools.CheckVersion.main(Unknown Sour
ce)

BUILD FAILED
file:/home/tcma/TIJ/codedev/c14/build.xml:38: Java returned: 1

Total time: 1 second

$ java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, #
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0-beta2-b51, mixed mode)

Linux version 2.6.7-gentoo-r11
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:47 AM
Sybren Stuvel
 
Posts: n/a
Default Re: ant fail to build because java version is not high enough?

TCMA enlightened us with:
> My java version 1.5.0-beta2 is higher than that required 1.4.1, so why
> ant fail to build?


You are using a beta version of Java. Why are you surprised things
don't work as expected?

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 07:47 AM
Peter Jensen
 
Posts: n/a
Default Re: ant fail to build because java version is not high enough?

TCMA wrote:

> My java version 1.5.0-beta2


Stop right there! That version of Java is severely broken, and will
fail to compile just about any current Java packages. Revert to the
stable version now, if you want things to work!

--
PeKaJe

Good teaching is one-fourth preparation and three-fourths good theatre.
-- Gail Godwin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 08:53 AM
shameus.burp@gmail.com
 
Posts: n/a
Default Re: ant fail to build because java version is not high enough?

I've tried to compile this code with full release1.5.0, 1.4.2_06 and
get the same stupid errors. I just want to compile this code to run the
examples. No such luck.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 08:53 AM
Sybren Stuvel
 
Posts: n/a
Default Re: ant fail to build because java version is not high enough?

shameus.burp@gmail.com enlightened us with:
> I've tried to compile this code


Which code?

> with full release1.5.0, 1.4.2_06


Release of what software?

> and get the same stupid errors.


What errors?

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com