using my own Package exported from eclipse
in
Integration and Hardware
•
2 years ago
Hello,
there are a lot of postings related to this kind of problem but i don't get it, sorry!
For testing purposes, i wrote and exported a package with a simple java-class in eclipse.
I have put the package here:
Processing -> libraries -> TestLib -> library -> TestLib.jar
actually the structure is the same as other external libraries i can use successfully. (ControlP5 for instance..)
but when i try to use my library like this:
import TestLib.*;
The well known errormessage "The package ... does not exist..." appears.
It also says:
"As of release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder."
but even when i put the TestLib.jar into the sketch folder (which wouldn't be an elegant solution anyway), it does not work.
Any idea what could be wrong?
Many thanks in advance
nossek
Edit:
okay, now i have put the jar file into a folder named "code" inside the sketch-folder - this works even wtihout the import-statement.
But: this is not a very nice solution, because if i use a library in several sketches and i change the implementation of the library, i have to update all the sketch folders of sketches which use that library...
there are a lot of postings related to this kind of problem but i don't get it, sorry!
For testing purposes, i wrote and exported a package with a simple java-class in eclipse.
I have put the package here:
Processing -> libraries -> TestLib -> library -> TestLib.jar
actually the structure is the same as other external libraries i can use successfully. (ControlP5 for instance..)
but when i try to use my library like this:
import TestLib.*;
The well known errormessage "The package ... does not exist..." appears.
It also says:
"As of release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder."
but even when i put the TestLib.jar into the sketch folder (which wouldn't be an elegant solution anyway), it does not work.
Any idea what could be wrong?
Many thanks in advance
nossek
Edit:
okay, now i have put the jar file into a folder named "code" inside the sketch-folder - this works even wtihout the import-statement.
But: this is not a very nice solution, because if i use a library in several sketches and i change the implementation of the library, i have to update all the sketch folders of sketches which use that library...
1