Recent always changing application platform, will be transferred to the processing code in the eclipse.
processing on converted to introduce eclipse can also be used, but does not describe specifically how to use third-party libraries
Processing in Eclipse \ Processing.org
If you need to use a third-party library, you need to add your own hand, to the pit.
Into the act: not necessarily go according to this method, there is a proclipsing plug, tubing given address:
064 - Processing in supervisory - Class powermeter and KNOB - Eclipse - YouTube
This is a text description of the process:
Proclipsing: Using the Eclipse IDE for Processing Projects: 14 Steps
Unfortunately, due to Google download site maintenance stop, so it can only be read in the following way .zip
I apologize that, during the installation of the plug-in or a problem,
If my eclipse 64 Wei problem does not match, I would like to re-download the 32-bit installation, it is very troublesome.
I decided to choose the first approach the beginning of the import bag.
step:
1, found in the processing path in the core file, export.txt information platform in the introduction, if the eclipse is win64, it is necessary there will be a class-platform file export.txt mentioned a folder are imported, or run unsuccessful :
2, eclipse the main import file, this is the key, rather than just one core.jar file:
3、找到原先在processing里下载的libraries 路径,偏好设定 路径里 查找 .jar 包,我的是:
4、比如 peasycam ,在 library里 找到 .jar 文件,
5、eclipse在新建项目时,如何导入 用户自定义的 .jar 文件,这里不是重点,不赘述。
6、效果图:
PS:多个class不能extends PApplet ,只有主进程继承PApplet,其他类为构造私有PApplet
Multiple classes eclipse with processing - Processing / Beginners - Processing Foundation
参考资料:
OpenGL Execption on eclipse - Processing Forum