We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › how to add new library to Processing?
Page Index Toggle Pages: 1
how to add new library to Processing?? (Read 466 times)
how to add new library to Processing??
Aug 7th, 2006, 7:09am
 
Hi,

I tried to add the "carnivore" library to "Processing"
as described on this web page:

   http://r-s-g.org/carnivore/processing.php

and then I tried to run the example program:

   http://r-s-g.org/carnivore/p5_sample2.txt

but it fails with this error:

  You need to modify your classpath, sourcepath, ....
   Jikes could not find package org.rsg.carnivore in the code folder
   or in any libraries.

I read Ben Fry's comments in processing/libraries/howto.txt
but I don't see any instructions about how to set my classpath, or whatever.

Interestingly, In the "Sketch > Import Library >" menu
I don't see the new "carnivore" library listed, even though
it is there in the "libraries" folder.

Can anyone help me figure out how to add this library
and run the example?

-- David Jones
djones (at) mcmaster.ca
Re: how to add new library to Processing??
Reply #1 - Aug 7th, 2006, 10:09am
 
I've try it and it works. Are you sure that you have downloaded the right file (http://r-s-g.org/carnivore/download/current_p5.zip) and unpacked it in the folder yourProcessingFolder->library.
Re: how to add new library to Processing??
Reply #2 - Aug 7th, 2006, 5:01pm
 
oops!  I downloaded the wrong file.

I had "CarnivorePE" instead of "Carnivore Library for Processing".

The library works as advertised,
and the example processing program
is easy to understand and modify.

... however, I don't know how to convert an IP address
(130.113.128.10) into a hostname (something.myhost.com)

Does anyone know how to do that in Processing?

-- David Jones

Page Index Toggle Pages: 1