Martin, using the latest CVS checkout (5/3/2005) I was able to simply
run 'build.bat jar' and 'build.bat compile.examples' and everything
compile fine, but with some warnings.

I'm running:
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode)
but dont think that will make a difference as long as its 1.5. 

Also, it looks like .9.6 release missed the patch to get it to compile
on 1.5, but its a really easy fix. Just go in, open up
src\main\org\exolab\castor\persist\ClassMolder.java  and make line
1102 match this
if ( (o1 instanceof java.math.BigDecimal) && ((java.math.BigDecimal)
o1).compareTo((java.math.BigDecimal)o2) == 0) {

Its a simple addition of casting, but apparently 1.5 is strict about it. =\
You will still get all the warnings, but those can be safely ignored.

Hope this helps! 

-Nick

On 5/3/05, Nick Stuart <[EMAIL PROTECTED]> wrote:
> Martin, I know castor works/compiles on JDK 1.5. Have done it myself a
> couple of times. Will try again with the latest CVS release to let you
> know the results, but at a minimum you should be able to download the
> .96 binary and have it work with out any issues.
> 
> I realize its a stop gap manuever but it will get you up and running.
> 
> -Nick
> 
> 
> On 5/3/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> > Gentlemen-
> > Since I punted back to j2sdk1.4.2_08
> > I noticed that my Tomcat 5.5 is complaining as I see
> >
> > This release of Apache Tomcat was packaged to run on J2SE 5.0
> > or later. It can be run on earlier JVMs by downloading and
> > installing a compatibility package from the Apache Tomcat
> > binary download page.
> >
> > Is there any effort to bring Castor to use J2SE 5.0??
> >
> > Vielen Danke/Many Thanks,
> > Martin
> > 001-617-852-7822
> >
>

Reply via email to