[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [kdesupport] Soprano backend: Sesame2, Java JNI and CMake
From:       "=?ISO-8859-1?Q?Percy_Camilo_Trive=F1o_Aucahuasi?=" <orgyforever () gmail ! com>
Date:       2008-05-05 16:13:01
Message-ID: 579229230805050913xa10a07fpc9463fcc2322a8a2 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>Normally all you need is to set JAVA_HOME and it should work fine.

Thanks Sebastian, so I will try with this:
export JAVA_HOME=/usr/lib/jvm/sun-java-1.6/jre/

Cheers ; )

2008/5/5 Sebastian Trüg <trueg@k3b.org>:

> Normally all you need is to set JAVA_HOME and it should work fine.
>
> On Monday 28 April 2008 08:10:26 Percy Camilo Triveńo Aucahuasi wrote:
> > Hello there, everytime that I wanted build sesame2 backend, I got this
> > message: "Could not find Java JNI" so I checked the cmake code (related
> to
> > find the JNI):
> >
> >
> http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindJNI.cmake?root=CMake&v
> >iew=markup
> >
> > And here I noticed that the path used is "JAVA_JVM_LIB_PATH", whereas
> the
> > soprano/sesame2 path is: "JAVA_JVM_LIBRARY" (
> >
> http://websvn.kde.org/trunk/kdesupport/soprano/CMakeLists.txt?view=markup)
> > ... so the only way to install the sesame backend were add this lines in
> > soprano/CMakeLists.txt ... before find_package(JNI)
> >
> > set(JAVA_JVM_LIBRARY /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/amd64)
> > set(JAVA_INCLUDE_PATH /usr/lib/jvm/java-6-sun-1.6.0.03/include/)
> >
> > My question is: why in the ../kdesupport/soprano/CMakeLists.txt has a
> path
> > (variable) that is not supported by CMake? .. maybe I'm doing something
> > wrong.
> >
> > Percy
> >
> > pd: By the way, my system:
> > linux: 2.6.23-1-amd64 #1 SMP
> > SO:Debian 4.2.3-2
> > gcc:gcc (GCC) 4.2.3
> > qt:Using Qt version 4.4.0-rc1
> > kde:4.00.71 (KDE 4.0.71 (Alpha1)
> > JRE and JDK from debian repo: Java(TM) SE Runtime Environment (build
> > 1.6.0_03-b05)
>
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

&gt;Normally all you need is to set JAVA_HOME and it should work fine.<br><br>Thanks \
Sebastian, so I will try with this:<br>export \
JAVA_HOME=/usr/lib/jvm/sun-java-1.6/jre/<br><br>Cheers ; )<br><br><div \
class="gmail_quote"> 2008/5/5 Sebastian Trüg &lt;<a \
href="mailto:trueg@k3b.org">trueg@k3b.org</a>&gt;:<br><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">Normally all you need is to set JAVA_HOME and it should work \
fine.<br>

<div><div></div><div class="Wj3C7c"><br>
On Monday 28 April 2008 08:10:26 Percy Camilo Triveńo Aucahuasi wrote:<br>
&gt; Hello there, everytime that I wanted build sesame2 backend, I got this<br>
&gt; message: &quot;Could not find Java JNI&quot; so I checked the cmake code \
(related to<br> &gt; find the JNI):<br>
&gt;<br>
&gt; <a href="http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindJNI.cmake?root=CMake&amp;v" \
target="_blank">http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindJNI.cmake?root=CMake&amp;v</a><br>
 &gt;iew=markup<br>
&gt;<br>
&gt; And here I noticed that the path used is &quot;JAVA_JVM_LIB_PATH&quot;, whereas \
the<br> &gt; soprano/sesame2 path is: &quot;JAVA_JVM_LIBRARY&quot; (<br>
&gt; <a href="http://websvn.kde.org/trunk/kdesupport/soprano/CMakeLists.txt?view=markup" \
target="_blank">http://websvn.kde.org/trunk/kdesupport/soprano/CMakeLists.txt?view=markup</a>)<br>
 &gt; ... so the only way to install the sesame backend were add this lines in<br>
&gt; soprano/CMakeLists.txt ... before find_package(JNI)<br>
&gt;<br>
&gt; set(JAVA_JVM_LIBRARY /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/amd64)<br>
&gt; set(JAVA_INCLUDE_PATH /usr/lib/jvm/java-6-sun-1.6.0.03/include/)<br>
&gt;<br>
&gt; My question is: why in the ../kdesupport/soprano/CMakeLists.txt has a path<br>
&gt; (variable) that is not supported by CMake? .. maybe I&#39;m doing something<br>
&gt; wrong.<br>
&gt;<br>
&gt; Percy<br>
&gt;<br>
&gt; pd: By the way, my system:<br>
&gt; linux: 2.6.23-1-amd64 #1 SMP<br>
&gt; SO:Debian 4.2.3-2<br>
&gt; gcc:gcc (GCC) 4.2.3<br>
&gt; qt:Using Qt version 4.4.0-rc1<br>
&gt; kde:4.00.71 (KDE 4.0.71 (Alpha1)<br>
&gt; JRE and JDK from debian repo: Java(TM) SE Runtime Environment (build<br>
&gt; 1.6.0_03-b05)<br>
<br>
<br>
<br>
</div></div>&gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </blockquote></div><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic