<div dir="ltr"><div>Sure. I am on it, I will do it before Sunday. I was kind of stuck in figuring out cmake way of doing things.<br>So compiling cpp file with JNI code needs JNI headers to be included and Java binaries to be linked. I do like this when running my standalone code:<br>
<br>gcc -I/usr/lib64/jvm/java-7-openjdk/include/ -I/usr/lib64/jvm/java-7-openjdk/include/linux/ -L/usr/bin/java -L/usr/lib64/jvm/java-7-openjdk/jre/lib/amd64/server/ javaFromCpp.cpp -ljvm<br><br>Also running resultant executable requires LD_LIBRARY_PATH to be set. I was figuring out how to do these things in cmake.<br>
</div>As far as I understand I need to do find_package(JNI) in top CMakeLists.txt file in src/calligra directory. Then do following in CMakeLists.txt in odb directory.<br><br>include_directories(${JNI_INCLUDE_DIRS})<br>target_link_libraries (helloworld ${JNI_LIBRARIES})<br>
<br>Though I am not yet sure how to set LD_LIBRARY_PATH in cmake.<br>Further, I need to install a Java library called hsqldb.jar (used for jdbc operations on odb files) using cmake and get its absolute path in my cpp code. I don't understand how to do it. Please help me in this.<br>
<div><br>Thanks,<br>Harshita<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 June 2014 00:36, Jaroslaw Staniek <span dir="ltr"><<a href="mailto:staniek@kde.org" target="_blank">staniek@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 5 June 2014 09:17, Jaroslaw Staniek <<a href="mailto:staniek@kde.org" target="_blank">staniek@kde.org</a>> wrote:<br>
> Hello,<br>
> How do you do? I'd like to receive:<br>
> - status (achievements, issues, close todos) every week on Wednesdays<br>
> morning CET<br>
> - updated <a href="http://community.kde.org/GSoC/2014/StatusReports" target="_blank">http://community.kde.org/GSoC/2014/StatusReports</a><br>
><br>
<br>
</div>^^ <a href="http://community.kde.org/GSoC/2014/StatusReports" target="_blank">http://community.kde.org/GSoC/2014/StatusReports</a> is expected by KDE<br>
before Sunday<br>
Please also take time and blog on your blog or on <a href="http://blogs.kde.org" target="_blank">blogs.kde.org</a><br>
<div><div><br>
> Thanks!<br>
><br>
> ---------- Forwarded message ----------<br>
> From: Valorie Zimmerman <<a href="mailto:valorie.zimmerman@gmail.com" target="_blank">valorie.zimmerman@gmail.com</a>><br>
> Date: 5 June 2014 08:50<br>
> Subject: Getting Underway: First steps<br>
> To: KDE-soc <<a href="mailto:kde-soc@kde.org" target="_blank">kde-soc@kde.org</a>><br>
><br>
><br>
> Greetings again, GSoC students.<br>
><br>
> At this point, we hope that you and your mentor are very well<br>
> acquainted, and have worked out a routine for regular communication.<br>
><br>
> We hope the code base you are working with is now familiar to you, as<br>
> are all the tools and documentation you need.<br>
><br>
> We hope all of you have your KDE developer account set up and working,<br>
> so that your code can be seen by your team members (including<br>
> Reviewboard).<br>
><br>
> We hope that your blog is set up somewhere, and that you have added it<br>
> to PlanetKDE [Pro-tip: "Add your blog" link right up top].<br>
><br>
> And we hope you have blogged at least once, introducing yourself and<br>
> your project to the KDE community as a whole. If not, do it now,<br>
> please. Once you have published blog posts, please list on the Status<br>
> Reports wiki page, and keep that up-to-date.[1]<br>
><br>
> Please write back if you are having any problems with any of the above<br>
> steps, or ask your mentor.<br>
><br>
> All the best,<br>
><br>
> Your loving GSoC admins<br>
><br>
> 1. <a href="http://community.kde.org/GSoC/2014/StatusReports" target="_blank">http://community.kde.org/GSoC/2014/StatusReports</a><br>
> _______________________________________________<br>
> Kde-soc mailing list<br>
> <a href="mailto:Kde-soc@kde.org" target="_blank">Kde-soc@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/kde-soc" target="_blank">https://mail.kde.org/mailman/listinfo/kde-soc</a><br>
><br>
><br>
> --<br>
> regards / pozdrawiam, Jaroslaw Staniek<br>
> Kexi & Calligra & KDE | <a href="http://calligra.org/kexi" target="_blank">http://calligra.org/kexi</a> | <a href="http://kde.org" target="_blank">http://kde.org</a><br>
> Qt for Tizen | <a href="http://qt-project.org/wiki/Tizen" target="_blank">http://qt-project.org/wiki/Tizen</a><br>
> Qt Certified Specialist | <a href="http://www.linkedin.com/in/jstaniek" target="_blank">http://www.linkedin.com/in/jstaniek</a><br>
<br>
<br>
<br>
--<br>
regards / pozdrawiam, Jaroslaw Staniek<br>
Kexi & Calligra & KDE | <a href="http://calligra.org/kexi" target="_blank">http://calligra.org/kexi</a> | <a href="http://kde.org" target="_blank">http://kde.org</a><br>
Qt for Tizen | <a href="http://qt-project.org/wiki/Tizen" target="_blank">http://qt-project.org/wiki/Tizen</a><br>
Qt Certified Specialist | <a href="http://www.linkedin.com/in/jstaniek" target="_blank">http://www.linkedin.com/in/jstaniek</a><br>
</div></div></blockquote></div><br></div></div>