Re: Clearsilver on Mac OS X

Brandon Long <[email protected]>
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20070402180850.GA25965@bl1>
I'm worried that you ended up with a .so after applying my patch.  There
should have been code in java-jni/Makefile to do the right thing.

You can also try running the test in java-jni by typing make test in the
java-jni directory.  If that works, then the library is fine, and then
its a question of the right paths, and maybe differences between the run
environment under apache/tomcat and the java version it found for the
test.

Brandon

On 04/02/07 Matthew Hixson uttered the following other thing:
> I tried that too and I'm getting the same error.  Does it look like I  
> have the library and the .jar in the correct places?
>    -M@
> 
> On Apr 2, 2007, at 10:13 AM, Brandon Long wrote:
> 
> > 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
> >
> > 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 

-- 
 "Its much more fun to be sand than oil in the machinery of life."
                                           http://www.fiction.net/blong/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.