How make personal library for Processing.
in
Library and Tool Development
•
5 months ago
I'm trying to create a simple library in order to remove some Tab of my Processing IDE and because i dont need to edit this classes. I work with processing 2+.
I tried to "Sketch > Add file" after doing my .jar, but it don't work, i get the normal error message meaning that it can't find the needed library
I tried to make library manually with the good folder architecture, and with the "package ExcelReader" at the top of each java script:
- Sketch
- libraries
- ExcelReader
-library
- ExcelReader.jar
- library.properties
- src
but i get the same error than before, it dont find the library and tell that i must place it in a folder named libraries.
And finally, i tried with the Eclipse way, i get a Successfull Compillation but when i place my ExcelReader lib in libraries folder and write "import ExcelReader;", i get a new error:
I tried to "Sketch > Add file" after doing my .jar, but it don't work, i get the normal error message meaning that it can't find the needed library
I tried to make library manually with the good folder architecture, and with the "package ExcelReader" at the top of each java script:
- Sketch
- libraries
- ExcelReader
-library
- ExcelReader.jar
- library.properties
- src
but i get the same error than before, it dont find the library and tell that i must place it in a folder named libraries.
And finally, i tried with the Eclipse way, i get a Successfull Compillation but when i place my ExcelReader lib in libraries folder and write "import ExcelReader;", i get a new error:
- java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:430)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:185)
at processing.mode.java.JavaBuild.build(JavaBuild.java:144)
at processing.mode.java.JavaBuild.build(JavaBuild.java:123)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:114)
at processing.mode.java.JavaEditor$19.run(JavaEditor.java:472)
at java.lang.Thread.run(Thread.java:680)
I cant get it, i dont understand why this own library cant get work. If i try to put controlP5 at the same place, it work, so i wonder if my library is correct. So where could come from the problem?! Any idea?
Thanks.
Thanks.
1