[jsword-devel] Flashcard build silliness

DM Smith dmsmith555 at yahoo.com
Thu Sep 9 13:24:49 MST 2004


The short answer is that ant will do what you tell it to.
I ahve told it to build all the *.java that have changed wrt what it 
built last time.
If you are running all, it deletes the class files and starts from scratch.

I am trying to get the new code and test it.

Troy A. Griffitts wrote:

> DM,
>     One of my test cases was using ant and jdk 1.4.2 to compile.  This 
> still gives a null editor window.  John added a menu to the quiz app 
> (among other things), and there is a choice to launch the editor.  If 
> I build using jdk 1.4.2 and GNUMakefile found in flashcards/app, 
> everything works, but if I build with jdk 1.4.2 and 
> flashcards/build.xml the editor window does not work.  John also added 
> a number of IM classes.  I'm ignorant of how ant works.  Does it find 
> new .java files or does it need to have them enumerated?
>
>     -Troy.
>
> On Thu, 9 Sep 2004, DM Smith wrote:
>
>> In building you need to pass the -source flag to the compiler. You 
>> need to tell it you are building code for 1.4 that has asserts.
>>
>> Troy A. Griffitts wrote:
>>
>>> OK John,
>>>     Here's my latest discoveries.
>>>
>>>     If I build on the server with ant and jdk 1.5.0, I have the null 
>>> editor window, running on XP jdk 1.4.1.
>>>     If I build on the server with ant and jdk 1.4.2, I have the null 
>>> editor window, running on XP jdk 1.4.1.
>>>     If I build on the server with your build script and jdk 1.5.0, I 
>>> get 1.5.0 compile errors which have been fixed and committed, and 
>>> then I get:
>>>
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
>>> org/crosswire /flashcards/Quiz (Unsupported major.minor version 49.0)
>>>
>>>     which is probably expected from XP and jdk 1.4.1
>>>
>>>     If I build on the server with your build script and jdk 1.4.2 
>>> everything works on XP jdk 1.4.1.
>>>
>>>     Hope we can track this down.
>>>
>>>         -Troy.
>>>
>>> get On Thu, 9 Sep 2004, John Jacques wrote:
>>>
>>>> Troy,
>>>>
>>>> I don't get anything when I try to run the editor from the MainMenu
>>>> using webstart (Quiz does work).  All works well when I run from the
>>>> command line (on Linux):
>>>>
>>>>     $ java -jar flashcards.jar
>>>>
>>>> The Editor is the correct size etc.
>>>>
>>>> I almost have my local web server set up to allow me to use webstart.
>>>> The last remaining obsticle is signing the jar file!  I am trying as
>>>> recommended
>>>> (http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/development.html#signing) 
>>>> but haven't been able to obtain 'unrestricted access'...
>>>>
>>>> On Thu, 2004-09-09 at 12:20, Troy A. Griffitts wrote:
>>>>
>>>>> John,
>>>>>      We could try setting a size.  It's not necessarily a webstart
>>>>> issue.  I got that error I reported to you by running the produced 
>>>>> jar
>>>>> file on an XP box.  If you click on the webstart link from this page:
>>>>>
>>>>> http://crosswire.org/flashcards/
>>>>>
>>>>> does the edit choice work for you?
>>>>>
>>>>> I can grab the corner of the very small editor window and resize it
>>>>> larger, but there is nothing on the client area.
>>>>>
>>>>> If you'd really like the breathing marks to be entered before the 
>>>>> letters,
>>>>> the IM mechanism supports multiple keystroke for character entry. 
>>>>> This is
>>>>> used in the Michigan Claremont Hebrew keymap, if you'd like to see 
>>>>> how it
>>>>> works.  Actually, just reviewed HebrewMCIM.java and it looks really
>>>>> convoluted.  Sorry about that.
>>>>>
>>>>>      Thanks for your work!
>>>>>
>>>>>          -Troy.
>>>>>
>>>>>
>>>>>
>>>>> On Wed, 8 Sep 2004, John Jacques wrote:
>>>>>
>>>>>> Troy,
>>>>>>
>>>>>> The main difference I see is that MainFrame.java doesn't use
>>>>>> java.awt.Toolkit to determine the screen size as in Editor.java.  It
>>>>>> might be worth setting a screen size there...
>>>>>>
>>>>>> I'm glad my other changes didn't break anything!
>>>>>>
>>>>>> I'll try to set up webstart on a local webserver.  Looks like I 
>>>>>> would
>>>>>> just have to edit Flashcards.jnlp.  Is it that simple?
>>>>>>
>>>>>> On Wed, 2004-09-08 at 16:49, Troy A. Griffitts wrote:
>>>>>>
>>>>>>> John,
>>>>>>>      Thank you for your recent submissions.  I have updated the
>>>>>>> webstart installer to the latest code and the editor doesn't 
>>>>>>> seem to
>>>>>>> launch for me.  I get an error:
>>>>>>>   ERROR :
>>>>>>> org.crosswire.flashcards.EditorFrame[frame0,0,0,0x0,invalid,hidden,layo 
>>>>>>> ut=java.awt.BorderLayout,title=,resizable,normal,defaultCloseOperation=HIDE_ON_C 
>>>>>>> LOSE,rootPane=javax.swing.JRootPane[,0,0,0x0,invalid,layout=javax.swing.JRootPan 
>>>>>>> e$RootLayout,alignmentX=null,alignmentY=null,border=,flags=385,maximumSize=,mini 
>>>>>>> mumSize=,preferredSize=],rootPaneCheckingEnabled=true] :
>>>>>>> Thread[main,5,main]
>>>>>>> null
>>>>>>>
>>>>>>> and a very small windows (actually just the titlebar).
>>>>>>>
>>>>>>> Let me know if you have an idea what it might be.  Thank you.
>>>>>>>
>>>>>>>      -Troy.
>>>>>>>
>>>>>>>
>>>>>>> On Wed, 18 Aug 2004, John Jacques wrote:
>>>>>>>
>>>>>>>> Troy,
>>>>>>>>
>>>>>>>> I'm going to check in my changes to flashcards.  So far there 
>>>>>>>> are no
>>>>>>>> major changes, just minor fixes.
>>>>>>>>
>>>>>>>> If I want to make larger changes, should we branch?  Does the 
>>>>>>>> revision
>>>>>>>> (4 in this case) match up with other CrossWire software such as 
>>>>>>>> modedit
>>>>>>>> (which I believe is used elsewhere)?
>>>>>>>>
>>>>>>>> One last question, is there a mailing list, or any other forum, 
>>>>>>>> where
>>>>>>>> new ideas should be discussed before they are implemented?
>>>>>>>>
>>>>>>>> On Sun, 2004-08-15 at 03:23, Troy A. Griffitts wrote:
>>>>>>>>
>>>>>>>>> John,
>>>>>>>>>     We've recently changed servers and it has been keeping me 
>>>>>>>>> busy for the
>>>>>>>>> past few weeks.  We just put a new live SVN repository online at:
>>>>>>>>>
>>>>>>>>> https://crosswire.org/svn/flashcards/
>>>>>>>>>
>>>>>>>>> The repository permission is currently WORLD READ/WRITE.  If 
>>>>>>>>> you would
>>>>>>>>> like to commit your changes to the repository, you are welcome 
>>>>>>>>> to do so.
>>>>>>>>>   Not sure if you've had subversion experience.  If now, you 
>>>>>>>>> can find
>>>>>>>>> info and software at:
>>>>>>>>>
>>>>>>>>> http://subversion.tigris.org
>>>>>>>>>
>>>>>>>>> Thanks again for your willingness to help.
>>>>>>>>>
>>>>>>>>>     -Troy.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> John Jacques wrote:
>>>>>>>>>
>>>>>>>>>> Troy,
>>>>>>>>>>
>>>>>>>>>> I made the following changes.  Let me know if you keep any of 
>>>>>>>>>> them!
>>>>>>>>>> There are files named "Changes.eruditelite" in any directory 
>>>>>>>>>> I made
>>>>>>>>>> changes in that describe each change and the modified files. 
>>>>>>>>>> I have
>>>>>>>>>> also included the change files in this messages (see below).
>>>>>>>>>>
>>>>>>>>>> Are you using a revision control system?
>>>>>>>>>>
>>>>>>>>>> Also, what do you think of the following proposals:
>>>>>>>>>>
>>>>>>>>>>     1) Add a Quiz mode in which the user is presented with the
>>>>>>>>>>        vocabulary word only (not multiple choice) and then the
>>>>>>>>>>            answer (either time delayed or by pressing a 
>>>>>>>>>> button).  The
>>>>>>>>>>            user then indicates whether they knew the word or 
>>>>>>>>>> not.  The
>>>>>>>>>>            current mode (multiple choice) would still be 
>>>>>>>>>> available.
>>>>>>>>>>
>>>>>>>>>>     2) Cleanup ".flash" files when saving (eliminate unused
>>>>>>>>>>            entries, renumber etc.)
>>>>>>>>>>
>>>>>>>>>> ========== In the top directory:
>>>>>>>>>>
>>>>>>>>>> 1) Added GNUmakefile to speedup working from emacs/command line.
>>>>>>>>>> 2) Updated to the latest (on the website 22 July 2004) 
>>>>>>>>>> modedit.  This
>>>>>>>>>>    allowed me to enter text (classical greek) in Mandrake 10.0.
>>>>>>>>>> 3) Added MounceBasicsChapter04.flash (Vocabulary from Chapter 
>>>>>>>>>> 4 of
>>>>>>>>>>    Mounce's Basics of Biblical Greek).
>>>>>>>>>>
>>>>>>>>>> ========== In src/flash:
>>>>>>>>>>
>>>>>>>>>> 1) Changed tool tip for "Save" from "Help" to "Save"
>>>>>>>>>> (EditorFrame.java:102)
>>>>>>>>>> 2) Stopped displaying exception on startup when 
>>>>>>>>>> "NewLesson.flash"
>>>>>>>>>>    didn't exist.  (EidtorFrame.java:247)
>>>>>>>>>>
>>>>>>>>>> On Sat, 2004-07-17 at 16:37, Troy A. Griffitts wrote:
>>>>>>>>>>
>>>>>>>>>>> John,
>>>>>>>>>>>     Thanks for the offer.  We'd love any help you'd be 
>>>>>>>>>>> willing to
>>>>>>>>>>> volunteer.  That's how our open projects improve!  You'll 
>>>>>>>>>>> find the source
>>>>>>>>>>> in the same directory pointed to by the download link.  I 
>>>>>>>>>>> don't think we
>>>>>>>>>>> have an actual link to it yet.
>>>>>>>>>>>
>>>>>>>>>>>     We do have some c++/linux/handheld apps:
>>>>>>>>>>>     http://crosswire.org/qpsword/
>>>>>>>>>>>
>>>>>>>>>>>     And we'd love to see flashcards run on the Zaurus! :) Or 
>>>>>>>>>>> at least
>>>>>>>>>>> a client that reads the same lesson formats.
>>>>>>>>>>>
>>>>>>>>>>>     Thanks you again for your persistence to get our app to 
>>>>>>>>>>> work and
>>>>>>>>>>> willingness to help!
>>>>>>>>>>>
>>>>>>>>>>>     -Troy A. Griffitts
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Sat, 17 Jul 2004, John Jacques wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Troy,
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks for the response!  The final sigma is " (double 
>>>>>>>>>>>> quote) and my
>>>>>>>>>>>> confusion about saving a new list was the pop-up hint for 
>>>>>>>>>>>> the save
>>>>>>>>>>>> button (which says "Help").  It all works now...
>>>>>>>>>>>>
>>>>>>>>>>>> If you are interested in programming help, let me know. I am a
>>>>>>>>>>>> programmer (embedded Linux/Real Time) so most of my 
>>>>>>>>>>>> experience is OS
>>>>>>>>>>>> porting and device drivers but I have written a fair amount 
>>>>>>>>>>>> of Java
>>>>>>>>>>>> (~7,000 lines) including a Swing GUI.
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, 2004-07-17 at 07:02, Troy A. Griffitts wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> John, I believe that final sigma is the ' key.  Did you 
>>>>>>>>>>>>> type a filename
>>>>>>>>>>>>> in the filename box before you hit save?  I realize this 
>>>>>>>>>>>>> isn't an
>>>>>>>>>>>>> orthodox method for saving a new file, but it's a first 
>>>>>>>>>>>>> rev of the
>>>>>>>>>>>>> software.  Please let me know if this information hasn't 
>>>>>>>>>>>>> helped get you
>>>>>>>>>>>>> going.
>>>>>>>>>>>>>
>>>>>>>>>>>>>     -Troy A. Griffitts.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> John Jacques wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> First of all, thank you for a wonderful program! However, 
>>>>>>>>>>>>>> I can't seem
>>>>>>>>>>>>>> to get FlashEditor.jar to save any of the changes I make 
>>>>>>>>>>>>>> or let me enter
>>>>>>>>>>>>>> a sigma (the end of word sigma that is)...
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> sword-support mailing list
>>>>>>>>>>>>>> sword-support at crosswire.org
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>
>>> _______________________________________________
>>> 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