Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
Originally posted by David Harkness:
I'm curious if perhaps doing just "import YourClass;" would work.
42
Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
42
Originally posted by Michael Remijan:
I have to use a jar file which contains class files which are not packaged. None of the source files have the 'package xxx.yyy.zzz;' code in them. Now I'm developing an application that is packaged. When I try to compile I get standard "cannot resolve symbol" error even though the jar file is in the classpath. So how do I import a non-packaged class so I can use it in my code?
Originally posted by shochan vanden:
Simply put your "no-package" compiled classes in a separate jar file and include that jar in your deployment (WAR, EAR, other JAR or whatever your deployer wants).
(BTW wouldn't your "no-package" classes happen to be JasperReports generated classes? In such case I could give you a patch that generates them WITH package declaration.)
Cheers
Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
Originally posted by shochan vanden:
Simply put your "no-package" compiled classes in a separate jar file and include that jar in your deployment (WAR, EAR, other JAR or whatever your deployer wants).
Cheers
42