UPDATE: Do not worry. User Error. He would delete the question, but could not answer.
I am trying to use eclipse to create a jar of packages, rather than a runnable jar, which I can import into another project.
So far I have done this:
- Create a new project
- Create a package in this project (pkg.nme.with.dots)
- Create a class in this package
- Export → Java → Jar
The resulting .jar file has only one META-INF and three .project , .classpath and MyClass.class .
If I try import pkg.nme.with.dots.MyClass; , I get a package error not found, despite adding the full path to the jar in my CLASSPATH.
I tried to add the jar as an external library in eclipse, but it is still not recognized.
Obviously, I exported it to a format that import ed could not be. How to export it correctly?
source share