Jar dependency import not working for jars not organized in directories
Answered
Hello,
Perhaps a very simple issue. Here I have imported two local jars as libraries. One of them is organized as org.bonej.* and that works fine. The other one has a class directly under the Jar and the compiler does not recognize it. I verified by trying other Jar libraries that the issue for me is the Jar file structure. I simply couldn't access any of the classes that exist under the jar directly.
Can you direct me to access them? or is that a bug?
Thanks,
Please sign in to leave a comment.
It's Java limitation, you cannot import classes from the default package: http://stackoverflow.com/a/2193298/104891.
Indeed that was the cause. Thank you for the info.