eclipse - java multiple projects ClassNotFoundException -


i have 2 java projects projecta (java web app) , projectb (contains other java classes) in eclipse ide. e.g.

projecta                             projectb |_helloworld.java                     |_printhelloworld.java    |_helloworld(                         |_print()      new printhelloworld().print()       ) 

so projecta has class method calling method class in projectb. in order these projects build, have built projectb , added jar dependency on projecta's build-path. don't compilation errors , project seems build fine.

however, when debug through code. classnotfoundexception @ line projecta calls method in project b

does know doing wrong/have missed out?

create war file if needed classes in that.

the compiler build path not same deploy path. may need explicitly add dependent jar in deployment assembly option


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -