Re: [ros-users] rosjava external jars

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Jeremy Wright
Date:  
To: ros-users
Subject: Re: [ros-users] rosjava external jars
Nicholas,

Thanks for the reply. This doesn't seem to be working for me, perhaps you
can tell me what I'm doing wrong.

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:

import org.jfree.*;

However make still gives the error:

Talker.java:3: package org.jfree does not exist
import org.jfree.*;
^
1 error

It seems like it's not finding the jar?

Thank you for your help,

Jeremy

On Fri, Jul 2, 2010 at 4:03 PM, Nicholas Butko <> wrote:

> That must be outdated. I added some cmake code to rosjava to support this.
>
> 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:
>
> rosbuild_find_ros_package(externalLibs)
> add_classpath(${externalLibs_PACKAGE_PATH}/jar)
> add_runtime_classpath(${externalLibs_PACKAGE_PATH}/jar)
> add_jar_dir(${externalLibs_PACKAGE_PATH}/jar)
> add_jni_path(${externalLibs_PACKAGE_PATH}/jar)
>
>
>
>
> On Jul 2, 2010, at 3:53 PM, Jeremy Wright wrote:
>
> > 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?
> >
> > Jeremy Wright
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Sprint
> > What will you do first with EVO, the first 4G phone?
> > Visit sprint.com/first --
> http://p.sf.net/sfu/sprint-com-first_______________________________________________
> > ros-users mailing list
> >
> > https://lists.sourceforge.net/lists/listinfo/ros-users
> > _______________________________________________
> > ros-users mailing list
> >
> > https://code.ros.org/mailman/listinfo/ros-users
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>