problem running zekr on eclipse

7 views
Skip to first unread message

Hassan

unread,
Feb 1, 2009, 10:14:09 AM2/1/09
to zekr-dev
Assalamu alaikum,

I checkout the code on eclipse, but I can't seem to be able to run it.
Is there any instructions on how do I go about building and running
the application? I can't seem to find anything on the wiki page.

Thanks,
- HR

Hassan Rom

unread,
Feb 1, 2009, 10:20:13 AM2/1/09
to zekr-dev
Just to add, I tried running ZekrMain but it failed when trying to construct the Display object in line 39 of ZekrMain.java. Any ideas?

Thanks,
- HR
--
Hassan Rom

Youssef Mohammed

unread,
Feb 1, 2009, 10:28:24 AM2/1/09
to zekr...@googlegroups.com
make sure that you have the correct SWT jar that matches your platform.
SC contains the windows version.

Regards, Youssef

Hassan Rom

unread,
Feb 1, 2009, 10:56:28 AM2/1/09
to zekr...@googlegroups.com
Thanks! That worked but now, I'm getting another error:

net.sf.zekr.common.runtime.HtmlGenerationException: java.lang.ArrayIndexOutOfBoundsException: 1
    net.sf.zekr.common.runtime.HtmlRepository.getQuranUri(HtmlRepository.java:86)
    net.sf.zekr.common.runtime.HtmlRepository.getQuranUri(HtmlRepository.java:96)
    net.sf.zekr.common.runtime.HtmlRepository.getQuranUri(HtmlRepository.java:294)
    net.sf.zekr.ui.QuranForm.updateQuranView(QuranForm.java:1580)
    net.sf.zekr.ui.QuranForm.updateView(QuranForm.java:1494)
    net.sf.zekr.ui.QuranForm.apply(QuranForm.java:1355)
    net.sf.zekr.ui.QuranForm.navTo(QuranForm.java:1425)
    net.sf.zekr.ui.QuranForm.init(QuranForm.java:318)
    net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:283)
    net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)
    net.sf.zekr.ZekrMain.main(ZekrMain.java:88)

Could this be because I'm not passing the right arguments or setting the right configuration parameters? Also, I noticed that my development instance is overwriting the configuration of my release instance. Is there some way to make my development instance use another directory different from ~/.zekr ?

Thanks,
- HR
--
Hassan Rom

Mohsen Saboorian

unread,
Feb 1, 2009, 2:02:38 PM2/1/09
to zekr...@googlegroups.com
Salaam,

Yes, it's better to use a clean ~/.zekr for your development env. You
can also customize your Zekr workspace, passing -workspace <some path>
as an argument. My suggestion is to use ~/.zekr-dev for development,
and normal .zekr folder for production application.

Mohsen.
Reply all
Reply to author
Forward
0 new messages