FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Discussion
   General Processing Discussion
(Moderators: fry, REAS)
   accessing external JAR files
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: accessing external JAR files  (Read 377 times)
metaphorz


accessing external JAR files
« on: Aug 17th, 2004, 10:39pm »


Can someone tell me how to access an external
JAR file? We have constructed a library and plan
to access this through Processing programs. After
some searching, I saw that one can create a "code"
file underneath the appropriate sketch; however,
is there a way to place the .jar in a more central
location (since the library is not specific to  
one sketch). Placing the .jar in the usual Java
jre/lib/ext directory didn't work.
 
Also, when I did put the .jar file in a "code"
directory of the sketch, the Processing program
stopped working correctly, leading me to believe
that there is some sort of variable naming conflict?
I will be happy to email the .java file (which is
used to form the .jar file) to anyone that is
interested.
 
metaphorz


Re: accessing external JAR files
« Reply #1 on: Aug 19th, 2004, 10:14pm »

After some discussion with Ben and Casey,
this turned out to be our problem of trying
to use a Java "package" statement, without having
the appropriate sub-directory structure under
"code".
 
Still, I think we need to perhaps allow for
a global "code" directory for libraries and
jars, so that it isn't necessary to copy and
paste new "code" subdirectories every time that
a new sketch is created, which needs a common
external library.
 
Pages: 1 

« Previous topic | Next topic »