java - Classpath issue with modular project -
i have multi module project (play-sbt-java) structured follows
myapplication | |---- module_a -- com/package-a/... |---- module_b -- com/package-b/... |---- module_c -- com/package-c/... | | |---- lib/mysubapplication.jar mysubapplication | |---- com/package/myclass.java
and contents of class in mysubapplication
follows
import com.package-a..... import com.package-b..... import com.package-c..... public class myclass{ // ..... }
and want create jar
of mysubapplication
, add library in myapplication
, class loaded via reflection @ runtime.
every time run it, land noclassdeffounderror
. , classes being complained imports myclass
i.e com/package-a/...
, com/package-a/...
, com/package-/...
though still part of multi-module project
caused by: java.lang.noclassdeffounderror: com/package-a/... @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(class.java:2701)
what tried far
added class files each module_a
, module_b
, module_c
mysubapplication
, create fat uber jar , added fat jar lib folder myapplication
, didn't work, still noclassdeffounderror
any appreciated in !
Comments
Post a Comment