<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Can you send me the CMakeLists.txt and manifest.xml file for both packages? Or just cut and paste.  It's probably not useful to send it to the whole list at this point, so you can just reply to me specifically. <div><br></div><div>You can try changing your Talker package CMakeLists.txt code to the following, and see if it helps to debug what is going on: </div><div><br></div><div><div>rosbuild_find_ros_package(externalLibs)</div><div>message("Found externalLibs at ${externalLibs_PACKAGE_PATH}" </div><div>add_classpath(${externalLibs_PACKAGE_PATH}/jar)</div><div>message("Java build classpath is ${_java_classpath}"); </div><div>add_runtime_classpath(${externalLibs_PACKAGE_PATH}/jar)</div><div>message("Java runtime classpath is ${_java_runtime_classpath}"); </div><div>add_jar_dir(${externalLibs_PACKAGE_PATH}/jar)</div>message("Java build classpath is ${_java_classpath}"); <div>message("Java runtime classpath is ${_java_runtime_classpath}"); </div><div>add_jni_path(${externalLibs_PACKAGE_PATH}/jar)</div></div><div>message("Java JNI path is ${_jniexe_path}")</div><div><br></div><div>Also, I tend to prefer "make" to "rosmake" because rosmake tends to suppress output that can be useful in debugging. </div><div><br></div><div><br></div><div><br></div><div><br><div><div><div>On Jul 6, 2010, at 4:18 PM, Jeremy Wright wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Nicholas,<br><br>Thanks for the reply. This doesn't seem to be working 
for me, perhaps you can tell me what I'm doing wrong.<br><br>I'm trying 
to get this working with the rosjava tutorials you sent to us here at 
the UofA. I created an externalLibs package like the one you described, 
with a jar directory. It contains one jar (jfreechart-1.0.13.jar). I 
added your cmake code below to CMakeLists.txt and I added one line to 
Talker.java:<br>
<br><div style="margin-left: 40px;">import org.jfree.*;<br><br></div>However
 make still gives the error:<br><br><div style="margin-left: 40px;">Talker.java:3:
 package org.jfree does not exist<br>import org.jfree.*;<br>^<br>
1 error<br></div><br>It seems like it's not finding the jar?<br><br>Thank you for 
your help,<br><br>Jeremy<br><br><div class="gmail_quote">On Fri, Jul 2, 2010 at 4:03 PM, Nicholas Butko <span dir="ltr"><<a href="mailto:nbutko@ucsd.edu">nbutko@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">
That must be outdated. I added some cmake code to rosjava to support this.<br>
<br>
Here is an example from cmake code that links to my "externalLibs" package, which simply consists of a "jar" directory, containing a bunch of .jar files and a .jnilib file:<br>
<br>
rosbuild_find_ros_package(externalLibs)<br>
add_classpath(${externalLibs_PACKAGE_PATH}/jar)<br>
add_runtime_classpath(${externalLibs_PACKAGE_PATH}/jar)<br>
add_jar_dir(${externalLibs_PACKAGE_PATH}/jar)<br>
add_jni_path(${externalLibs_PACKAGE_PATH}/jar)<br>
<div class="im"><br>
<br>
<br>
<br>
On Jul 2, 2010, at 3:53 PM, Jeremy Wright wrote:<br>
<br>
> The rosjava page says there isn't currently a way to use external jars, but has anyone experimented with this (successfully)? Does anyone know how I would get started?<br>
><br>
> Jeremy Wright<br>
</div>> ------------------------------------------------------------------------------<br>
> This <a href="http://SF.net">SF.net</a> email is sponsored by Sprint<br>
> What will you do first with EVO, the first 4G phone?<br>
> Visit <a href="http://sprint.com/first" target="_blank">sprint.com/first</a> -- <a href="http://p.sf.net/sfu/sprint-com-first_______________________________________________" target="_blank">http://p.sf.net/sfu/sprint-com-first_______________________________________________</a><br>

> ros-users mailing list<br>
> <a href="mailto:ros-users@lists.sourceforge.net">ros-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/ros-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/ros-users</a><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</blockquote></div><br>
_______________________________________________<br>ros-users mailing list<br><a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>https://code.ros.org/mailman/listinfo/ros-users<br></blockquote></div><br></div></div></body></html>