I used to be able to scan with your plugin in linux using Marcel Austenfeld's
Scan plugin http://rsbweb.nih.gov/ij/plugins/twain-scan.html and using the library uk.co,mmscomputing.device.sane.jar But now I get this error: -------------------- JarLib.load Error = java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so] JarLib.load Error = java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so] java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib .loadX: Could not find library [libjsane.so] at uk.co.mmscomputing.util.JarLib.loadX(JarLib.java:40) at uk.co.mmscomputing.util.JarLib.load(JarLib.java:10) at uk.co.mmscomputing.device.sane.jsane.<clinit>(jsane.java:140) at uk.co.mmscomputing.device.sane.SaneScanner.isAPIInstalled(SaneScanner.jav a:17) at uk.co.mmscomputing.device.scanner.Scanner.getDevice(Scanner.java:86) at Scan_.<init>(Scan_.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc ces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst ruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ij.IJ.runUserPlugIn(IJ.java:182) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) JarLib.load Error = java.lang.UnsatisfiedLinkError: no jsane in java.library.path JarLib.load Error = java.lang.UnsatisfiedLinkError: no jsane in java.library.path java.lang.UnsatisfiedLinkError: no jsane in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at uk.co.mmscomputing.util.JarLib.load(JarLib.java:22) at uk.co.mmscomputing.device.sane.jsane.<clinit>(jsane.java:140) at uk.co.mmscomputing.device.sane.SaneScanner.isAPIInstalled(SaneScanner.jav a:1 7) at uk.co.mmscomputing.device.scanner.Scanner.getDevice(Scanner.java:86) at Scan_.<init>(Scan_.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc ces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst ruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ij.IJ.runUserPlugIn(IJ.java:182) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at Scan_.<init>(Scan_.java:59) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc ces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst ruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ij.IJ.runUserPlugIn(IJ.java:182) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at Scan_.<init>(Scan_.java:59) at Scan_.run(Scan_.java:48) at ij.IJ.runUserPlugIn(IJ.java:184) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) -------------------- Any ideas ? The file not found is right there in the jar file called uk.co,mmscomputing.device.sane.jar under uk/co/mmscomputing/device/sane/lin32/libjsane.so I am running opensuse linux x86_64 bits. Could that be a problem? I tried emailing Marcel directly, but the email address bounces. Regards Gabriel |
Hi!
Probably this scanner plugin runs only in a Linux 32bit system. If you are using a 64bit distro, you will propably need to compile using GCC the libjsane.so to your system. To compile with jdk 1.5 jni.h, I am using the following command: g++ -Wall -fPIC -pthread -D_REENTRANT -D_GNU_SOURCE -I/home/david/desenvolvimento/jdk1.5.0_22/include/ -I/home/david/desenvolvimento/jdk1.5.0_22/include/linux -shared -o libjsane.so jsane.cpp jdesc.cpp jnu.cpp If you do not have the source codes in C++ of libjsane.so, please, send me a message. I you reply u with the sources. To compile in 64bit platform, you will need to change some lines in the source too. Best regards David -----Mensagem original----- De: ImageJ Interest Group [mailto:[hidden email]] Em nome de Gabriel Landini Enviada em: quarta-feira, 28 de julho de 2010 08:19 Para: [hidden email] Assunto: Scan does not scan I used to be able to scan with your plugin in linux using Marcel Austenfeld's Scan plugin http://rsbweb.nih.gov/ij/plugins/twain-scan.html and using the library uk.co,mmscomputing.device.sane.jar But now I get this error: -------------------- JarLib.load Error = java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so] JarLib.load Error = java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so] java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib .loadX: Could not find library [libjsane.so] at uk.co.mmscomputing.util.JarLib.loadX(JarLib.java:40) at uk.co.mmscomputing.util.JarLib.load(JarLib.java:10) at uk.co.mmscomputing.device.sane.jsane.<clinit>(jsane.java:140) at uk.co.mmscomputing.device.sane.SaneScanner.isAPIInstalled(SaneScanner.jav a:17) at uk.co.mmscomputing.device.scanner.Scanner.getDevice(Scanner.java:86) at Scan_.<init>(Scan_.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc ces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst ruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ij.IJ.runUserPlugIn(IJ.java:182) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) JarLib.load Error = java.lang.UnsatisfiedLinkError: no jsane in java.library.path JarLib.load Error = java.lang.UnsatisfiedLinkError: no jsane in java.library.path java.lang.UnsatisfiedLinkError: no jsane in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at uk.co.mmscomputing.util.JarLib.load(JarLib.java:22) at uk.co.mmscomputing.device.sane.jsane.<clinit>(jsane.java:140) at uk.co.mmscomputing.device.sane.SaneScanner.isAPIInstalled(SaneScanner.jav a:1 7) at uk.co.mmscomputing.device.scanner.Scanner.getDevice(Scanner.java:86) at Scan_.<init>(Scan_.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc ces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst ruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ij.IJ.runUserPlugIn(IJ.java:182) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at Scan_.<init>(Scan_.java:59) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc ces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst ruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at ij.IJ.runUserPlugIn(IJ.java:182) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at Scan_.<init>(Scan_.java:59) at Scan_.run(Scan_.java:48) at ij.IJ.runUserPlugIn(IJ.java:184) at ij.IJ.runPlugIn(IJ.java:151) at ij.Executer.runCommand(Executer.java:124) at ij.Executer.run(Executer.java:61) at java.lang.Thread.run(Thread.java:619) -------------------- Any ideas ? The file not found is right there in the jar file called uk.co,mmscomputing.device.sane.jar under uk/co/mmscomputing/device/sane/lin32/libjsane.so I am running opensuse linux x86_64 bits. Could that be a problem? I tried emailing Marcel directly, but the email address bounces. Regards Gabriel |
On Wednesday 28 July 2010 16:18:27 you wrote:
> Probably this scanner plugin runs only in a Linux 32bit system. Hi David, Yes, that seems to be the case. Unfortunately the original website is down a the moment, so I cannot contact the original author to report the problem. > If you are using a 64bit distro, you will propably need to compile using > GCC the libjsane.so to your system. Yes, that seems to be the case, however it would be good if the author could provide the libjsane.so for 64 bits in the same file (less of a hassle for others to make it work too). If not, I will try compiling it. > To compile with jdk 1.5 jni.h, I am using the following command: > g++ -Wall -fPIC -pthread -D_REENTRANT -D_GNU_SOURCE > -I/home/david/desenvolvimento/jdk1.5.0_22/include/ > -I/home/david/desenvolvimento/jdk1.5.0_22/include/linux -shared -o > libjsane.so jsane.cpp jdesc.cpp jnu.cpp > > If you do not have the source codes in C++ of libjsane.so, please, send me > a message. I you reply u with the sources. Thanks, I do not have the sources, But I have been using the xsane gui instead. I may ask for the sources if I cannot contact the author in the next few days or if s/he is not keen on providing the 64bit version. Many thanks again. Cheers Gabriel |
Fortunately I have all the source codes from the site here. I downloaded it
before it goes offlline. If you want, just ask it. Best regards, David -----Mensagem original----- De: ImageJ Interest Group [mailto:[hidden email]] Em nome de Gabriel Landini Enviada em: quarta-feira, 28 de julho de 2010 12:27 Para: [hidden email] Assunto: Re: RES: Scan does not scan On Wednesday 28 July 2010 16:18:27 you wrote: > Probably this scanner plugin runs only in a Linux 32bit system. Hi David, Yes, that seems to be the case. Unfortunately the original website is down a the moment, so I cannot contact the original author to report the problem. > If you are using a 64bit distro, you will propably need to compile using > GCC the libjsane.so to your system. Yes, that seems to be the case, however it would be good if the author could provide the libjsane.so for 64 bits in the same file (less of a hassle for others to make it work too). If not, I will try compiling it. > To compile with jdk 1.5 jni.h, I am using the following command: > g++ -Wall -fPIC -pthread -D_REENTRANT -D_GNU_SOURCE > -I/home/david/desenvolvimento/jdk1.5.0_22/include/ > -I/home/david/desenvolvimento/jdk1.5.0_22/include/linux -shared -o > libjsane.so jsane.cpp jdesc.cpp jnu.cpp > > If you do not have the source codes in C++ of libjsane.so, please, send me > a message. I you reply u with the sources. Thanks, I do not have the sources, But I have been using the xsane gui instead. I may ask for the sources if I cannot contact the author in the next few days or if s/he is not keen on providing the 64bit version. Many thanks again. Cheers Gabriel |
In reply to this post by David Faulstich Diniz Reis
Hi David,
this thread seems one year old, but I wish to ask you what changes I need to perform to such source files I got to compile on a 64-bit architecture machine? I'll wait your answer...I hope you answer! Best regards, Michele Cardone |
In reply to this post by David Faulstich Diniz Reis
Hi David,
I am facing the same issue for running scanner plugin ubuntu 64 bit os JarLib.load Error = java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so]JarLib.load Error = java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so] java.lang.UnsatisfiedLinkError: uk.co.mmscomputing.util.JarLib.loadX: Could not find library [libjsane.so] and read your message for compiling the libjsane for 64 bit. i don't have sources for the same. In this regards i would like to compile and use them. if you send it to my mail. Thanks, Lakshmi Prasad Mandava |
Free forum by Nabble | Edit this page |