Re: Clearsilver on Mac OS X
Brandon Long <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20070402171316.GA22754@bl1> |
You can just rename it as .jnilib instead of .so
This is one of the things in the patch I sent.
Brandon
On 04/02/07 Matthew Hixson uttered the following other thing:
> I was able to build libclearsilver-jni.so, but I can't seem to get it
> to load under Tomcat. The README for ClearSilver says:
>
> "You must put the native library into a standard library location
> (i.e. like /lib), or make sure that Java can find it by using
> the java command line directive:
>
> -Djava.library.path=/somewhere/else
>
> Then you must put the clearsilver.jar file into your java
> CLASSPATH."
>
> I have a servlet context listener that starts as soon as my webapp
> initializes and I'm printing the system properties java.library.path
> and java.class.path.
>
> java.library.path = .:/Users/mhixson/Library/Java/Extensions:/Library/
> Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
>
> java.class.path = /usr/local/tomcat/bin/bootstrap.jar:/usr/local/
> tomcat/bin/commons-logging-api.jar:/usr/local/tomcat/common/lib/
> clearsilver.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
> 1.5.0/Classes/.compatibility/14compatibility.jar
>
> I have put libclearsilver-jni.so in /usr/lib/java and clearsilver.jar
> is in the location shown in the classpath.
>
> When I hit the code that uses ClearSilver, I see this written to the
> console:
>
> Could not load 'clearsilver-jni'
>
> The other libraries in my /usr/lib/java are all either .dylib
> or .jnilib files. The file command tells me these are "Mach-O
> universal binary with 2 architectures". And the .so file is "ELF 32-
> bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped".
> Does that make any difference? Is there a way to build the
> ClearSilver library as a .jnilib?
>
> Thanks,
> -M@
>
>
>
> Yahoo! Groups Links
>
>
>
--
"I suspect the 'no smoking no drinking' rules for Mormons have resulted
in some of the best ice cream I have ever tasted..." -- LostBoyJim
http://www.plastic.com/article.html?sid=02/10/15/03572850#10