[jsword-devel] JSword for the masses (Part 2)

Mark Goodwin jsword-devel@crosswire.org
11 Oct 2002 20:12:52 +0100


Right then.

To get JSword working on 1.3.1 two changes need to be made:

javax.swing.JToolBar.setRollover(boolean) is a 1.4 method.  Should we
remove this line, or get the java.version property and only invoke this
methind if java.version > 1.4.  The former allows us to build on 1.3,
the latter makes things look nicer on newer Java versions.

java.net.URLEncoder.encode(String,String) does not exist in 1.3, but
URLEncoder.encode(String) is deprecated in 1.4.  Hmm.  Another tricky
one.  Which do we go for?

Getting JSword working on 1.2.x looks somewhat more involved, the
problems are mostly to do with various Action operations on subclasses
of AbstractButton.  I may have a look at this soon if people feel it's
worth doing.

My personal feeling is that it's more important that people be able to
run the software than develop it, although I wouldn't like to see
potential developers put off by the fact that we don't support their
platform (I'm wanting to get a mac soon myself).  

For the URLEncode problem, this wouldn't be a difficult functionality
for us to re-implement (I bet it's been done somewhere else already). 
The JToolBar.setRollover() problem is perhaps tricker.  Perhaps we could
split the javac ant-target up to separate the UI stuff from the rest?

Let me know your thoughts people.

MarkG

On Fri, 2002-10-11 at 14:50, nicc-lists email addy wrote:
> 
> ok, tried a new cvs pull, and then produced:
> 
> [Wildlands:~/CVS/jsword-cvs] nicc% ant
> Buildfile: build.xml
> 
> init:
>       [echo] Building to: target/ant
> 
> compile:
> 
> compile.section:
>       [echo] Compiling common
>      [mkdir] Created dir:  
> /Users/nicc/CVS/jsword-cvs/target/ant/temp/classes/common
>      [javac] Compiling 86 source files to  
> /Users/nicc/CVS/jsword-cvs/target/ant/temp/classes/common
>       [copy] Copying 12 files to  
> /Users/nicc/CVS/jsword-cvs/target/ant/temp/classes/common
> 
> compile.section:
>       [echo] Compiling jsword
>      [mkdir] Created dir:  
> /Users/nicc/CVS/jsword-cvs/target/ant/temp/classes/jsword
>      [javac]  
> /Users/nicc/CVS/jsword-cvs/java/jsword/org/crosswire/jsword/view/swing/ 
> desktop/Desktop.java:286: cannot resolve symbol
>      [javac] symbol  : method setRollover  (boolean)
>      [javac] location: class javax.swing.JToolBar
>      [javac]         pnl_tbar.setRollover(true);
>      [javac]                 ^
>      [javac]  
> /Users/nicc/CVS/jsword-cvs/java/jsword/org/crosswire/jsword/view/web/ 
> DemoServlet.java:112: encode(java.lang.String) in java.net.URLEncoder  
> cannot be applied to (java.lang.String,java.lang.String)
>      [javac]                     String link =  
> URLEncoder.encode(waiting.getName(), "UTF-8");
>      [javac]                                             ^
>      [javac] 2 errors
> 
> BUILD FAILED
> file:/Users/nicc/CVS/jsword-cvs/build.xml:76: Compile failed; see the  
> compiler error output for details.
> 
> Total time: 28 seconds
> [Wildlands:~/CVS/jsword-cvs] nicc%
> 
> 
> does that help at all?  lost all my javadocs recently so have to find  
> them again and then can have a look at the above problems, but am going  
> to bed now...  :)
> 
> 
> nic...  :)
> 
> 
> On Friday, Oct 11, 2002, at 17:32 Australia/Sydney, Mark Goodwin wrote:
> 
> > JSword *shouldn't* be tied to 1.4 - I'm told it should be easy to get
> > working on 1.2.x, so perhaps I'll have a look at that.  This is
> > something people shoild bear in mind when coding / testing - if poss.
> > run a test on 1.2 before you do a CVS check-in, that way things don't
> > get too broken.
> >
> > MarkG
> 
> "Morality may keep you out of jail, but it takes
>   the blood of Christ to keep you out of Hell."
> 	-- Charles Spurgeon
> 
> -------------------------------------------------
>   Interested in finding out more about God, Jesus,
>       Christianity and "the meaning of life"?
>        Visit http://www.christianity.net.au
> -------------------------------------------------
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel@crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel