[jsword-devel] trunk does not compile

trent.jsword at trentonadams.ca trent.jsword at trentonadams.ca
Sun Feb 21 09:44:52 MST 2010


Oh well, that's fine, we'll just have to tell ant and maven to only allow 1.5 I guess.  And, if you want, you can follow instructions I found here...
http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

The only problem with using 1.6, even with the 1.5 compiler flag, is that 1.6 is not always backward compatible.  iBatis, for example, has some classes that it made for JDBC stuff, which completely conflict with 1.6.  The iBatis code is valid, but yet it doesn't work with 1.6.  What happened with iBatis, is that they implemented an interface in Java 1.5, and when switching to 1.6, sun added another method that iBatis didn't have.  You might be able to call it a programming error I suppose, to inherit directly from a core Java abstract or interface class, as you never know if it will change.  I'm not sure what the normal java practise is in such cases.  I would have thought that sun wouldn't change them, but who knows.

----- "DM Smith" <dmsmith at crosswire.org> wrote:

> From: "DM Smith" <dmsmith at crosswire.org>
> To: "J-Sword Developers Mailing List" <jsword-devel at crosswire.org>
> Sent: Sunday, February 21, 2010 7:22:54 AM GMT -06:00 US/Canada Central
> Subject: Re: [jsword-devel] trunk does not compile
>
> Already had tried that... Snow leopard only has Java 6. It appears
> that Java 5 is present but it is a sym link to 6.
> 
> In Him,
> 	DM
> 
> On Feb 20, 2010, at 10:44 PM, trent.jsword at trentonadams.ca wrote:
> 
> > There is a java preferences tool to set your JVM.  use spotlight to
> search for "java", and java preferences should come up first.  Just
> tell it you want 1.5 as the default, as both should be installed on
> your machine.
> > 
> > I use Linux, but I used a mac for over a year for java development
> at home. ;)
> > 
> > ----- "DM Smith" <dmsmith at crosswire.org> wrote:
> > 
> >> From: "DM Smith" <dmsmith at crosswire.org>
> >> To: "J-Sword Developers Mailing List" <jsword-devel at crosswire.org>
> >> Cc: "J-Sword Developers Mailing List" <jsword-devel at crosswire.org>
> >> Sent: Saturday, February 20, 2010 9:20:44 PM GMT -06:00 US/Canada
> Central
> >> Subject: Re: [jsword-devel] trunk does not compile
> >> 
> >> It shouldn't require 6. That's the problem w/ developing on a mac. 
> 
> >> Limited versions of java. Let's stick w/ 1.5.
> >> 
> >> 
> >> 
> >> On Feb 20, 2010, at 9:46 PM, trent.jsword at trentonadams.ca wrote:
> >> 
> >>> Oh, if I had looked at it more carefully, I would have realized
> that
> >> 
> >>> it needed java 1.6, cause it was saying that the IOException  
> >>> constructor wouldn't take a jsword constructor as an arguement,
> but 
> >> 
> >>> the 1.6 version does.
> >>> 
> >>> I didn't realize that the trunk required 1.6.  Ah, well, it works 
> 
> >>> now. :D
> >>> 
> >>> ----- "Trenton D. Adams" <trent.jsword at trentonadams.ca> wrote:
> >>> 
> >>>> From: "Trenton D. Adams" <trent.jsword at trentonadams.ca>
> >>>> To: "J-Sword Developers Mailing List"
> <jsword-devel at crosswire.org>
> >>>> Sent: Saturday, February 20, 2010 5:06:42 PM GMT -06:00 US/Canada
> 
> >> 
> >>>> Central
> >>>> Subject: Re: [jsword-devel] trunk does not compile
> >>>> 
> >>>> Hi DM Smith,
> >>>> 
> >>>> I checked out the trunk directly.  "svn status" shows no
> modified
> >>>> files.  I will check it out again, after I've gone for dinner.
> svn
> >>>> tends to be a bit buggy in regard to updating, and getting all
> new
> >>>> files.  I've been meaning to report that to them, but still
> >> haven't
> >>>> done so. :(
> >>>> 
> >>>> I'll let you know what happens.
> >>>> 
> >>>> Thanks.
> >>>> 
> >>>> ----- "DM Smith" <dmsmith at crosswire.org> wrote:
> >>>> 
> >>>>> From: "DM Smith" <dmsmith at crosswire.org>
> >>>>> To: "J-Sword Developers Mailing List"
> >> <jsword-devel at crosswire.org>
> >>>>> Sent: Saturday, February 20, 2010 5:03:33 PM GMT -06:00
> US/Canada
> >>>> Central
> >>>>> Subject: Re: [jsword-devel] trunk does not compile
> >>>>> 
> >>>>> Hmm,
> >>>>> I'm not sure what the problem is. I have a clean installation
> and
> >> it
> >>>>> works for me.
> >>>>> I'm presuming that you have the other jsword projects in
> parallel
> >>>>> directories. Ant will go into common, common-swing, and jsword
> to
> >>>>> build those first.
> >>>>> It appears that it did not build the jsword project.
> >>>>> Can you supply the entire build file?
> >>>>> 
> >>>>> In Him,
> >>>>> DM
> >>>>> 
> >>>>> On Feb 20, 2010, at 5:18 PM, Trenton D. Adams wrote:
> >>>>> 
> >>>>>> Hi Guys,
> >>>>>> 
> >>>>>> inside the bibledesktop folder I do
> >>>>>> ant all
> >>>>>> 
> >>>>>> and get a compile error.
> >>>>>> 
> >>>>>> compile:
> >>>>>>  [javac] Compiling 268 source files to
> >>>>> 
> >>>> /home/trenta/Documents/Development/java/thirdparty/jsword/trunk/
> 
> >>>> jsword/target/classes
> >>>>>>  [javac]
> >>>>> 
> >>>> /home/trenta/Documents/Development/java/thirdparty/jsword/trunk/
> 
> >>>> jsword/src/main/java/org/crosswire/jsword/index/lucene/ 
> >>>> VerseCollector.java:75:
> >>>>> cannot find symbol
> >>>>>>  [javac] symbol  : constructor
> >>>>> IOException(org.crosswire.jsword.passage.NoSuchVerseException)
> >>>>>>  [javac] location: class java.io.IOException
> >>>>>>  [javac]             throw new IOException(e);
> >>>>>>  [javac]                   ^
> >>>>>>  [javac] 1 error
> >>>>>> 
> >>>>>> _______________________________________________
> >>>>>> jsword-devel mailing list
> >>>>>> jsword-devel at crosswire.org
> >>>>>> http://www.crosswire.org/mailman/listinfo/jsword-devel
> >>>>> 
> >>>>> 
> >>>>> _______________________________________________
> >>>>> jsword-devel mailing list
> >>>>> jsword-devel at crosswire.org
> >>>>> http://www.crosswire.org/mailman/listinfo/jsword-devel
> >>> 
> >>> _______________________________________________
> >>> jsword-devel mailing list
> >>> jsword-devel at crosswire.org
> >>> http://www.crosswire.org/mailman/listinfo/jsword-devel
> >> 
> >> _______________________________________________
> >> jsword-devel mailing list
> >> jsword-devel at crosswire.org
> >> http://www.crosswire.org/mailman/listinfo/jsword-devel
> > 
> > _______________________________________________
> > jsword-devel mailing list
> > jsword-devel at crosswire.org
> > http://www.crosswire.org/mailman/listinfo/jsword-devel
> 
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel



More information about the jsword-devel mailing list