Accepted answer

what you need to do is add the java project as a deployment assembly for the ear project.

this will than automatically add the $project.jar from your java project under /lib/ folder for thie .ear

websphere automatically pics .jar files from lib folder and add them to the classpath and these .jar can be found by all ejb.jar and .war packaged inside the .ear file.

so, right click your ear project, go to properties, and than selec "deployment assembly" than add your java project there, you should than see the generated jar under lib folder.

enter image description here

Related Query

More Query from same tag