Some application servers have added a mechanism to an EAR file similar to the WEB-INF directory in a WAR file. This mechanism uses a directory call APP-INF. It's contents are quite similar to WEB-INF, it contains sub-directories called lib and classes (at least).
Some J2EE application developer got so used to it that they think it's the standard. They also want to use it in OC4J.
The fastest solution
OC4J comes with the support of a product-specific deployment descriptor called orion-application.xml which is located in the META-INF directory of the EAR file. This file consists of a number of OC4J-specific settings. One of them is the <library> tag. This tag has one attribute path which points to the directory or JAR file you need. To use it simply include a line like<library path="../../applications/ear/APP-INF/classes" />
in your orion-application.xml. For each JAR file another line is necessary.
Caveat
This approach has some disadvantages:- You need to know what the name of the J2EE application is (ear in this case) and you must be very sure that this name is used during deployment!
- You need to add one line per library you use.