On 8 July 2010 12:21, Volodymyr_G <greyknightn...@gmail.com> wrote:
>> On 5 July 2010 19:16, Volodymyr_G <greyknightn...@gmail.com> wrote:
>>> Hi Sean
>>> I did exactly as you wrote, but issued an error.
>>>
>>>
>>>  [java] Exception in thread "main" java.lang.ExceptionInInitializerError
>>>    [java] Caused by: java.lang.NullPointerException
>>>    [java] at java.io.File.<init>(File.java:222)
>>>    [java] at
>>> org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:484)
>>>    [java] at org.dspace.search.DSIndexer.<clinit>(DSIndexer.java:235)
>>>    [java] Could not find the main class: org.dspace.search.DSIndexer.
>>> Program will exit.
>>>
>>> BUILD FAILED
>>> /opt/dspace/dspace-src/dspace/target/dspace-1.6.2-build.dir/build.xml:745:
>>> Java returned: 1
>
> Thanks for the reply. But I did as in the documentation and the instructions
> which I found in the internet and always had this error. I do not know what
> to do, and nobody responsible on the forum.

When does this error occur, during `ant fresh_install`?

If so, you probably just need to drop and recreate your database.
 *N.B. I'm assuming you don't have anything in there yet!*

As the dspace user (who owns the database):

dropdb dspace
createdb -U dspace -E UNICODE dspace

Then run the ant command again from within your target/dspace-build.dir/.

Sean
-- 
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to