processing / processing-library-template-ant

Processing Library Template for Eclipse
Other
141 stars 447 forks source link

warning: [path] bad path element #16

Open hamoid opened 7 years ago

hamoid commented 7 years ago

Hi, I'm getting some warnings when exporting a library. I attach it as PDF to keep the colors, which may help find the relevant parts in the long text:

ant-warnings.pdf

My library needs jna-X.X.X.jar and jna-platform-X.X.X.jar. What I've done so far is to drop the two files inside the lib/ folder in my Eclipse project, and added them to the build path.

I believe the resulting library works (it's a Windows specific issues which I can't test, but others tell me it works).

Is there any way to get rid of those warnings?

prisonerjohn commented 7 years ago

Are you referring to the following lines?

[javac] warning: [path] bad path element "/home/self/Desktop/edu/src/processing/libraries/VideoExport/library/lib/jna.jar": no such file or directory
[javac] warning: [path] bad path element "/home/self/Desktop/edu/src/processing/libraries/VideoExport/library/lib/test-classes": no such file or directory
[javac] warning: [path] bad path element "/home/self/workspace/VideoExport/lib/lib/jna.jar": no such file or directory
[javac] warning: [path] bad path element "/home/self/workspace/VideoExport/lib/lib/test-classes": no such file or directory

If so, you should make sure those files are present at the paths in the messages.

hamoid commented 7 years ago

Yes, those are the problematic lines. I have:

~/workspace/VideoExport/lib/jna-4.4.0.jar
~/workspace/VideoExport/lib/jna-platform-4.4.0.jar

I have selected Configure Build Paths and then Add JARs for the these two jna files. If I choose Add External JARs instead, the last two warnings disappear, I assume because then the paths are absolute instead of relative. Is that the right approach?

The first two warnings are about the target folder, which is created by the Ant script. The two jna JARs are placed inside the library/ at the target, together with the compiled VideoExport.jar and no lib/ folder is created. Why does the script place them in a folder, but searches for the files in a different folder? Maybe there's something odd in my configuration?

Thank you :)

hamoid commented 7 years ago

Here's the source of the library: https://github.com/hamoid/video_export_processing