Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: [path] bad path element #16

Open
hamoid opened this issue Mar 30, 2017 · 3 comments
Open

warning: [path] bad path element #16

hamoid opened this issue Mar 30, 2017 · 3 comments

Comments

@hamoid
Copy link

hamoid commented Mar 30, 2017

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
Copy link
Member

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
Copy link
Author

hamoid commented Apr 3, 2017

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
Copy link
Author

hamoid commented Apr 4, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants