score:1
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.
Source: stackoverflow.com
Related Query
- RAD / WebSphere: NoClassDefFoundError
- IBM RAD 7.5 ... why does it take WebSphere so long to start / publish / republish / debug?
- Websphere in RAD hangs on startup
- 64-bit RAD 8.0.4 console and debug mode problems while running WebSphere Application Server v6.1
- NoClassDefFoundError - Eclipse and Android
- Eclipse No tests found using JUnit 5 caused by NoClassDefFoundError for LauncherFactory
- NoClassDefFoundError JsonAutoDetect while parsing JSON object
- UnsupportedClassVersionError: JVMCFRE003 bad major version in WebSphere AS 7
- How do you connect an eclipse to a WebSphere Application server hosted on remote server?
- Updating sdk got NoClassDefFoundError for zxing
- NoClassDefFoundError on external library project for Android
- noClassDefFoundError using Scala Plugin for Eclipse
- Android Eclipse NoClassDefFoundError for external .jar files
- Where can I obtain an Eclipse server adapter for WebSphere Application Server Version 7?
- What needs to be done to add a project to a Websphere Server in Eclipse juno?
- How can I use classes from other project with maven? (ClassNotFoundException and NoClassDefFoundError is thrown)
- NoClassDefFoundError in Eclipse when adding project in build path
- NoClassDefFoundError at runtime but class is in classes.dex, what givies?
- Starting Websphere from Eclipse hangs when security is enabled
- Project facet WebSphere Web (Co-existence) version 8.0 is not supported
- NoClassDefFoundError - Eclipse - Apache HTTPClient
- NoClassDefFoundError in nested jar (Android)
- How can I set a WebSphere classloader policy to PARENT_LAST for an app created in Eclipse?
- IntelliJ NoClassDefFoundError for jar Dependencies in other Modules
- Eclipse plugin management in IBM RAD
- Start Websphere Liberty in Debug mode and connect via Eclipse
- How to increase the heap size of WebSphere Application Server V8.5 Liberty Profile in Eclipse?
- Blank profile name in Eclipse, Websphere Settings
- Any tricks to speed up RAD 7.5/WebSphere 7 deployment
- NoClassDefFoundError in Eclipse
More Query from same tag
- Window always opens blank even though code is written
- Error reading PNG metadata Android UI designer within Eclipse
- How to use cucumber/gherkin in different language?
- Maven Project on Eclipse revert java compiler version (from 1.8 to 1.5) after update (alt f5)
- Unable to install Jboss server on Eclipse Luna
- How to make an Eclipse debug launcher that launches a Class
- Eclipse - Java - Parsing Data for android-23 failed
- How to make Eclipse correctly identify which SSH key to use when you're cloning (via git import in eclipse) from two different Github accounts
- Parsing xml (storing only selected data)
- installing opencsv in eclipse + where is the documentation
- how to show marker in maps v2 with call coordinate in another class?
- maven eclipse:eclipse order of source folders get lost
- Simple way to appending new data to ArrayList
- Eclipse multiple tab rows
- java.lang.IllegalArgumentException thrown at debug launch in Eclipse CDT
- Resources with Eclipse and runnable Jar
- Error using CherryPy Tools session
- Adding external jar in a maven project
- Howto create a RCP or plugin with the visual editor instead of the default one similar to the genmodel file
- What it means "..." in this code?
- Tomcat not running in eclipse
- “cycle was detected in the build path” when there is no cycle, how to resolve?
- How to call and import database in android?
- Have to delete and re add my server when I pull code from git
- Debugging libcore String.java file in Android using Eclipse
- Interface builder in Eclipse for Android: how to see my activity in fullscreen?
- Importing Microba (External Package)
- How do I make Eclipse clean specific files when autogenerating make files
- Is it a good practice to include Eclipse project files in with sources in SCM?
- Hot Code Replace Failed (eclipse)