<div><FONT color=#000000>I managed to load projects: common,jsword,common-swing,bibledesktop. From the SVN each as its own project. That works fine.</FONT></div> <div><FONT color=#000000>I managed to get APIExamples.java to run.</FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>But I get a runtime error.</FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>By default it's KJV because APIExamples.java says </FONT></div> <div><I><FONT size=2><FONT color=#000000>BIBLE_NAME</FONT></I></FONT><FONT color=#000000><FONT size=2> = </FONT><FONT size=2>"KJV"</FONT></FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>The main method first calls readPlainText()</FONT></div><FONT size=2><FONT size=2> <div align=left><FONT color=#000000>public static void main(String[] args)</FONT></div> <div align=left><FONT color=#000000>{</FONT></div> <div align=left><FONT
color=#000000>APIExamples examples = </FONT></FONT><B><FONT size=2><FONT color=#000000>new</FONT></B></FONT><FONT size=2><FONT color=#000000> APIExamples();</FONT></div> <div align=left><FONT color=#000000></FONT></div><FONT size=2> <div align=left><FONT color=#000000>examples.readPlainText();</FONT></div> <div align=left><FONT color=#000000>examples.readStyledText();</FONT></div> <div><FONT color=#000000>examples.readDictionary();</FONT></div></FONT></FONT></FONT> <div><FONT color=#000000 size=2>......</FONT></div> <div><FONT color=#000000>}</FONT></div> <div><FONT color=#000000 size=2></FONT> </div> <div><FONT color=#000000 size=2>it crashes within the readPlainText() method.</FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>readPlainText has</FONT></div><B><FONT size=2> <div align=left><FONT color=#000000>public</FONT></B></FONT><FONT color=#000000><FONT size=2> </FONT><B><FONT size=2>void</B></FONT></FONT><FONT
color=#000000><FONT size=2> readPlainText() </FONT><B><FONT size=2>throws</B></FONT></FONT><FONT size=2><FONT color=#000000> BookException, NoSuchKeyException</FONT></div> <div align=left><FONT color=#000000>{</FONT></div> <div align=left><FONT color=#000000></FONT> </div> <div align=left><FONT color=#000000>Books books = Books.<I>installed</I>();</FONT></div> <div><FONT color=#000000>// At this point it only installs WLC, not KJV. I know 'cos I watched the variable in Eclipse.</FONT></FONT></div> <div><FONT color=#000000></FONT> </div> <div align=left><FONT color=#000000></FONT><FONT size=2></div> <div align=left><FONT color=#000000>Book bible = books.getBook(</FONT></FONT><I><FONT size=2><FONT color=#000000>BIBLE_NAME</FONT></I></FONT><FONT color=#000000 size=2>);</FONT></div> <div align=left><FONT color=#000000 size=2>//bible==null because KJV doesn't exist</FONT><FONT size=2></div> <div align=left><FONT color=#000000></FONT></div> <div
align=left><FONT color=#000000></FONT></FONT> </div> <div align=left><FONT color=#000000><FONT size=2>Key key = bible.getKey(</FONT><FONT size=2>"Gen 1 1"</FONT><FONT size=2>); </FONT><FONT size=2>//$NON-NLS-1$</FONT></FONT><FONT size=2></div> <div align=left><FONT color=#000000>//I think by this point we have a null pointer exception</FONT></div> <div align=left><FONT color=#000000></FONT> </div> <div align=left><FONT color=#000000></FONT> </div> <div align=left><FONT color=#000000></FONT> </div> <div align=left><FONT color=#000000>//So it doesn't even get to</FONT></div> <div align=left><FONT color=#000000>..........................</FONT></div></FONT><FONT size=2> <div><FONT color=#000000>System.</FONT></FONT><I><FONT size=2><FONT color=#000000>out</FONT></I></FONT><FONT color=#000000><FONT size=2>.println(</FONT><FONT size=2>"The plain text of Gen 1:1 is "</FONT><FONT size=2> + text); </FONT><FONT size=2>//$NON-NLS-1$</FONT></FONT></div>
<div><FONT color=#000000 size=2></FONT> </div> <div><FONT color=#000000 size=2>}</FONT></div> <div><FONT color=#000000 size=2></FONT> </div> <div><FONT color=#000000><FONT size=2> </div></FONT></FONT> <div><FONT color=#000000>I guess I need to somehow install KJV. </FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>How? </FONT></div> <div><FONT color=#000000>I notice some "raw" files here</FONT></div> <div><A href="http://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles"><FONT color=#000000>http://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles</FONT></A></div> <div><FONT color=#000000>Where would I extract the KJV files to?</FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>I notice that even the "raw" one isn't plain text. It's in a ztext directory, and is perhaps compressed. I doubt it's zip. If I rename it as zip it won't open in winzip. I was
hoping for some xml perhaps.</FONT></div> <div><FONT color=#000000></FONT> </div> <div><FONT color=#000000>Thanks in advance</FONT></div><p> 
                <hr size=1>
The <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/free_from_isp/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">all-new Yahoo! Mail</a> goes wherever you go - free your email address from your Internet provider.