sane-project-website/old-archive/1997-12/0098.html

73 wiersze
3.2 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Wed Dec 17 09:50:22 1997 PST" -->
<!-- sent="Wed, 17 Dec 1997 09:54:10 -0800" -->
<!-- name="Jeff Freedman" -->
<!-- email="jsf@hevanet.com" -->
<!-- subject="Re: jscanimage won't compile" -->
<!-- id="" -->
<!-- inreplyto="jscanimage won't compile" -->
<title>sane-devel: Re: jscanimage won't compile</title>
<h1>Re: jscanimage won't compile</h1>
<b>Jeff Freedman</b> (<a href="mailto:jsf@hevanet.com"><i>jsf@hevanet.com</i></a>)<br>
<i>Wed, 17 Dec 1997 09:54:10 -0800</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#98">[ date ]</a><a href="index.html#98">[ thread ]</a><a href="subject.html#98">[ subject ]</a><a href="author.html#98">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0099.html">Matto Marjanovic: "another xscanimage patch..."</a>
<li> <b>Previous message:</b> <a href="0097.html">Jeff Freedman: "Re: jscanimage won't compile"</a>
<li> <b>Maybe in reply to:</b> <a href="0080.html">Mathias Weigt: "jscanimage won't compile"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Allan Nielsen wrote:<br>
<i>&gt; </i><br>
<i>&gt; On Wed, 17 Dec 1997, Mathias Weigt (Stud. 94) wrote:</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; Ok I got swing-0.61 from java.sun.com.</i><br>
<i>&gt; &gt; Now all compiles cleanly but Jscanimage actually does nothing and Test</i><br>
<i>&gt; &gt; does nothing but printing the version numbers (but I think it should do a</i><br>
<i>&gt; &gt; little test-scan or at least list som devices ?).</i><br>
<i>&gt; &gt; Any ideas ?</i><br>
<i>&gt; &gt; Can I use SANE_DEBUGXXX to get more information ?</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; </i><br>
<i>&gt; I get:</i><br>
<i>&gt; </i><br>
<i>&gt; [an@k2906 japi]# java Jscanimage</i><br>
<i>&gt; File not found (libsanej.so)</i><br>
<i>&gt; java.lang.UnsatisfiedLinkError: no sanej in shared library path</i><br>
<i>&gt; at java.lang.Runtime.loadLibrary(Runtime.java)</i><br>
<i>&gt; at java.lang.System.loadLibrary(System.java)</i><br>
<i>&gt; at</i><br>
<i>&gt; at Jscanimage.main(Jscanimage.java:99)</i><br>
<i>&gt; </i><br>
<i>&gt; I have made make; make install And it went ok! What is wrong??</i><br>
<p>
First check "/usr/local/lib" (or wherever you have the SANE libraries<br>
installed), to make sure that libsanej.so was actually installed there<br>
okay.<br>
<p>
Then, I think Java is picky about where it looks for shared libraries.<br>
Even though "/usr/local/lib" is okay for "C" programs, you might have to<br>
put it in LD_LIBRARY_PATH (i.e. setenv LD_LIBRARY_PATH /usr/local/lib)<br>
for Java to find it.<br>
<p>
-- Jeff<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0099.html">Matto Marjanovic: "another xscanimage patch..."</a>
<li> <b>Previous message:</b> <a href="0097.html">Jeff Freedman: "Re: jscanimage won't compile"</a>
<li> <b>Maybe in reply to:</b> <a href="0080.html">Mathias Weigt: "jscanimage won't compile"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>