Problem with running Zekr 1.0.0 on Linux

89 views
Skip to first unread message

Saeed Rasooli

unread,
Aug 7, 2011, 2:42:37 AM8/7/11
to zekr
Hi everyone and Happy Ramadan

I have problem with running Zekr 1.0.0 (x86_64) on Linux
OS: ArchLinux (x86_64) using Oracle JRE 7-2 and Firefox 5


Other details:

MOZILLA_FIVE_HOME=/usr/lib/firefox


$ ls -1 /usr/lib/firefox
application.ini
blocklist.xml
chrome
chrome.manifest
components
defaults
dependentlibs.list
dictionaries
extensions
firefox
firefox-bin
icons
libmozalloc.so
libxpcom.so
libxul.so
mozilla-xremote-client
omni.jar
platform.ini
plugin-container
README.txt
removed-files
run-mozilla.sh
searchplugins



Error test while running zekr:
org.eclipse.swt.SWTError: XPCOM error -1041039104
at org.eclipse.swt.browser.Mozilla.error(Unknown Source)
at org.eclipse.swt.browser.Mozilla.initFactories(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at net.sf.zekr.ui.QuranForm.makeFrame(QuranForm.java:475)
at net.sf.zekr.ui.QuranForm.init(QuranForm.java:300)
at net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:278)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)

Mohsen Saboorian

unread,
Aug 9, 2011, 4:50:19 PM8/9/11
to ze...@googlegroups.com
Salaam,

Please download and test latest SWT for your platform from here:

Unzip the package and put swt.jar under Zekr lib folder (replace the old one with downloaded version). Test and tell us about the result.

BTW, I didn't test Zekr against Linux+Java 7 yet.

Regards,
Mohsen


--
You received this message because you are subscribed to the Google Groups "zekr" group.
To post to this group, send email to ze...@googlegroups.com.
To unsubscribe from this group, send email to zekr+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zekr?hl=en.


Saeed Rasooli

unread,
Aug 10, 2011, 12:58:35 AM8/10/11
to ze...@googlegroups.com
Thanks Mohsen

After copy:

org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/firefox'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    no swt-mozilla-gtk-3800 in java.library.path
    no swt-mozilla-gtk in java.library.path
    /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3800.so: /usr/lib/firefox-5.0/libxul.so: undefined symbol: gtk_major_version
    Can't load library: /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so
)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source)

    at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
    at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
    at net.sf.zekr.ui.QuranForm.makeFrame(QuranForm.java:475)
    at net.sf.zekr.ui.QuranForm.init(QuranForm.java:300)
    at net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:278)
    at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)
    at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    no swt-mozilla-gtk-3800 in java.library.path
    no swt-mozilla-gtk in java.library.path
    /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3800.so: /usr/lib/firefox-5.0/libxul.so: undefined symbol: gtk_major_version
    Can't load library: /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so

    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    ... 8 more



I remove /home/ilius/.swt/ and almost the same error:


org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/firefox'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    no swt-mozilla-gtk-3800 in java.library.path
    no swt-mozilla-gtk in java.library.path
    Can't load library: /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3800.so
    Can't load library: /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so
    /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3800.so: /usr/lib/firefox-5.0/libxul.so: undefined symbol: gtk_major_version
)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source)

    at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
    at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
    at net.sf.zekr.ui.QuranForm.makeFrame(QuranForm.java:475)
    at net.sf.zekr.ui.QuranForm.init(QuranForm.java:300)
    at net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:278)
    at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)
    at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    no swt-mozilla-gtk-3800 in java.library.path
    no swt-mozilla-gtk in java.library.path
    Can't load library: /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3800.so
    Can't load library: /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so
    /home/ilius/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3800.so: /usr/lib/firefox-5.0/libxul.so: undefined symbol: gtk_major_version

    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    ... 8 more

Saeed Rasooli

unread,
Aug 10, 2011, 1:10:49 AM8/10/11
to ze...@googlegroups.com
I tried with both Oracle's JRE and OpenJDK, and the same error.

Saeed Rasooli

unread,
Aug 10, 2011, 5:17:12 AM8/10/11
to ze...@googlegroups.com
I also tried with jre 6u26 (version of package)
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

And still the same error (libxul.so: undefined symbol: gtk_major_version)

Abdul Rauf Malik

unread,
Aug 11, 2011, 2:49:51 AM8/11/11
to ze...@googlegroups.com
I am an old man and recently purchased new laptop with windows 7.  Also purchased latest version of Inpage with Zekr Quran software, but I am unable to run Zekr with windows 7.  It runs ok on my old pc with windows xp.  Can any body please help me, as I am a layman in pc. 

--

M.Ababekri

unread,
Aug 11, 2011, 8:34:26 PM8/11/11
to zekr
As-salamu alaykum.
I just tested Zekr on Windows 7.

After I downloaded Zekr from zekr.org, and installed, it didn't run
saying "Java VM" not found.

Then I downloaded Java from http://java.com/download, and installed.
After that, Zekr worked!

So try to install Java, if you had the same problem.

On Aug 11, 12:49 pm, Abdul Rauf Malik <malikabdulr...@gmail.com>
wrote:

Fraidoon Sarwary

unread,
Aug 12, 2011, 5:50:56 AM8/12/11
to ze...@googlegroups.com
Asalaam Alaykum,

this has almost nothing to do with your issue of running Zekr on windows7; but in general and advise I give to my family members that you should buy either a Mac (which lowest price is bellow $900) or if that is still pricy buy a pc but with an Linux (like) Operating System. This makes your life much easier in the long run and your pc will not slow down because of many many viruses that are out there targeting windows based pc's.  

So if you just bought this pc and you can afford it; then buy a Mac and return your pc. If you can't affor it then load Linux (Ubuntu) and there is even a simple script that makes ubuntu into Mac like interface called (Macbuntu).

Salaam Alaykum Wa-Rahmatullah wa-barakatu,

Fraidoon

Mohsen Saboorian

unread,
Aug 12, 2011, 5:59:31 AM8/12/11
to ze...@googlegroups.com
Salaam,

@Saeed,
According to SWT FAQ, from version 3.3, there is no need to put these native files in PATH, as they already exist in jar file. Are you sure you didn't unpack jar file? You should have swt-mozilla-gtk-3800.so in swt.jar (which should itself exist in <zekr>/lib folder).

Mohsen

--

Mohsen Saboorian

unread,
Aug 12, 2011, 6:00:25 AM8/12/11
to ze...@googlegroups.com
Also try with a 32-bit JRE + 32-bit SWT.

Mohsen Saboorian

unread,
Aug 12, 2011, 6:05:01 AM8/12/11
to ze...@googlegroups.com, Abdul Rauf Malik
Abdul Rauf,
Salaamun Alaikum,

I don't know who prepared the package you purchased, but please note that Zekr is a free/gratis software of no charge and the official download site is here: http://zekr.org/download.html
My suggestion is: download this portable package, unzip it somewhere on your computer and run zekr.exe.

Portable package has Java inside, so no need to have anything elese.

Regards,
Mohsen

I Ahmed

unread,
Aug 18, 2011, 2:58:30 PM8/18/11
to ze...@googlegroups.com
Dear Mohsen
Assalam O' Alaikum
There is a misguide information is given by Mr Abdul RAUF. We sell InPage publisher, just for easy to users, we have included Zekr, indopak Quranic ver in InPage installer cd, however it is also freely available at our web Zekr.ahmedgraf.com.


Iqbal Ahmed
Ahmed Grafics
Cell: (92-322) 223 4330
Sent from my iPad

I Ahmed

unread,
Aug 18, 2011, 3:01:30 PM8/18/11
to ze...@googlegroups.com
Dear mr Abdul Malik
From where you purchase Zekr Quranic software, have you pay for this software or you purchase InPage software and Zekr was bundled in InPage cd?


Iqbal Ahmed
Ahmed Grafics
Cell: (92-322) 223 4330
Sent from my iPad

Mohsen Saboorian

unread,
Aug 18, 2011, 9:02:12 PM8/18/11
to ze...@googlegroups.com, ahme...@gmail.com
Dear Iqbal,
Wa alaikumassalaam wr,

There is no problem if you prepare a special package for Zekr and sell it, according to Zekr GPL license. I just wanted to remind that the official download site is zekr.org and that some unofficial packages on the internet may contain badwares.

Regards,
Mohsen

Abdul Rauf Malik

unread,
Aug 19, 2011, 1:25:19 AM8/19/11
to ze...@googlegroups.com
Dear Br. Iqbal Ahmed,

I had purchased Inpage from Qari M Akram Mohammadi, 2 Jail Road, Lahore, with payment who did not provide me any cd, but installed the Inpage on my laptop with Zekr software files.  He tried to run the Zekr, but could not succeed.  He told me that windows 7 does not support this. 

Abdul Rauf Malik
Reply all
Reply to author
Forward
0 new messages