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.
Page Index Toggle Pages: 1
suggestion (Read 1261 times)
suggestion
Sep 21st, 2005, 10:13am
 
hi

i am trying to create a simple library but i get lost despite of the howto.txt i am not very experienced on Java. I manage to create my own package with a dummy class but when i put it within processing folder then i cannot access it anymore. Also I try to hava a class like the one in the howto.txt then it doesnt compile at all, it looks for the rest of processing to resolve some of the data types like MouseEvent. I wonder what i am missing, i have beed reading about java packages but still i dont get it. I probably need to read more tutorials. I believe that it would be good to have a template for a library that could be downloaded. I mean the classes described in the howto but within a folder structure, i am having problems to understand where i have to include the files. I understand that they should go into /processing/yourlibrary/library so i take the example from the howto and create it there with the package mylibrary; on the top etc... But then i doesnt resolve the classes included in it, it cannot find them despite of importing the package.
sorry if the question is too basic. I have been trying to find answer in java pages but it is too wide so that i could make sense and find the solution.

many thanks

btw. i am coding outside pde in a basic editor and compilng with command line. So far everything is ok and i am able to code applets using processing. But no luck with the libraries so far.
Re: suggestion
Reply #1 - Oct 3rd, 2005, 7:04pm
 
The source code for the Net, Serial, and Video libraries are all included with the Processing download. Try looking at these for reference and try to compile them.

Casey

Page Index Toggle Pages: 1