Build problem with external JAR

Hello,
I am developing a custom web dynpro component. I need to use some of the JARs delivered by SAP such as com.sap.security.api (can be found in \SAP\IDE\IDE70\eclipse\plugins). I have included the JAR files to my project in Properties->Java Build path->Libraries). Everything is working fine: I can build/deploy the application and it is running fine in the application server.
Anyhow, the problem comes when I try to activate my activity in the development configuration perspective.
In the build log I can see for example the following:
[javac] ERROR: /usr/sap/VDD/JC10/j2ee/cluster/server0/temp/CBS/3/.B/4789/t/067D33924E6154CA5284F16652954F88/gen_wdp/packages/com/mydevelopment/mystuff/MyComponent.java:29: package com.sap.security.api does not exist
     [javac] ERROR: import com.sap.security.api.IUser;
I have been reading several threads about similar issues, but I am not quite satisfied with the answers. There seems to be several opinions about how to solve this.
Now the questions are:
- How can I get rid of this error?
- What is the best practice in overall to use the SAP delivered JARs in custom web dynpro component/project.
Edited by: Pa Pa on Nov 21, 2009 2:07 PM

Hi Pa,
To use any jar in your DC  on NWDI track, you need to follow the following steps:
1. Go to Your project>Used DCs and try to add a new one by locating the DC among those which are already present on the track.
2. If you are not able to locate any DC with the required jars then,
a. Create an external library DC where you need to add all the jars in the library folder of the project using an activity.
b. Create public parts for compile time and run time for this dc.
c. Deploy the DC.
d. Goto src folder of your dc and say Add files to DTR (your jars would be on the track)
e. Deploy the external library DC so that the Jars are deployed on the portal server.
f. Add the public parts of this External Library DC under used DCs of your development component.
g. Add this external library under library references of your project.
h. Build and deploy.
i.  Now try activating your activity.
Use the following link to know how to execute these steps.
[Add and Use Jars through used DCs|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/3ce3e4df201d63e10000000a11466f/frameset.htm]
[Screen Shots|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID1078501850DB00490474849923920126End?blog=/pub/wlg/9517]
Please let me know, if you ahave any doubt.
Regards,
Tushar Sinha

Similar Messages

  • Problems with Signed jar

    I am having a problem with signed jar and deploy in html
    get this error on the page
    self signed
    /dist/testfx.html
    JavaFX application could not launch due to system configuration. See java.com/javafx for troubleshooting information.Unsigned jar works perfectly but has security and permission issues when using classes.
    This was working in beta 45

    Can you post an example project that demonstrates the problem? There were changes to the ant tasks and netbeans support around B45 that could cause problems depending on which version of the SDK and NetBeans you have. Similarly, if you wrote ant scripts prior to B44 and then use them with a later build you could have problems. And of course, if you're producing the Jar file and deployment artifacts without using the provided ant tasks (for example, using the normal ant jar task) you'll have problems.
    I've verified that this works as expected in the FX 2.0 GA release using ant from the command line, and with the NetBeans 7.1 beta release using the FX 2.0 GA release.

  • Problems with external context mapping

    Hi ,
    I am having the following problems with external context mapping from one WD component to another.
    Problem description:
    In the <i>Component Interfaces</i> I have defined a WD interface "InfA".
    In the <i>interface controller</i> of this compoenent,I have ContextA and attributeA(cardinality 1..1).The contextA is marked as an "Input Element".
    Now my webdynpro componentB adds InfA as used component.In componentB I decalre a contextB with attributeB and map it to contextA to set up the external context mapping.
    Now I expect that if any webdynpro component implements this WD interface InfA ,he has access to contextA with the data getting filled from contextB.
    After i have created the component for the used component I try to fill values in the source node contextB thru this code:
    wdContext.currentContextB.setB(value);
    But in the runtime I keep getting error nullPointerException for nodeContextB,suggesting that the mapping has not been completed.
    Can anyone suggest due to what the error can come ,and, if its a webdynpro bug ,is there a workaround??
    Thanks in advance for your help.
    Best regards
    Sourav

    HI,
    Valery : I personally checked  by doing the example, if the names of value attribute are different in the child's interface and parents component controller then it throws the exception.
    Sourav: NullPointer Exception is thrown when something is not properly initialised, if in the main component the cardinality of mapped origin is 1.1 then you need to access it element directly like:
    wdContext.currentParentNodeElement().setFname("Abhijeet");
        wdContext.currentParentNodeElement().setLname("M");
    i will suggest just check out if you are declaring some element of value node and without initialising taking its use or what?
    if this doesnt solve your problem, please post the expanded exception.
    hope it helps
    let me know if you face nay problem
    regards

  • Performance problem with ojdbc14.jar

    Hi,
    We are having performance problem with ojdbc14.jar in selecting and updating (batch updates) entries in a table. The queries are taking minutes to execute. The same java code works fine with classes12.zip ans queries taking sub seconds to execute.
    We have Oracle 9.2.0.5 Database Server and I have downloaded the ojdbc14.jar from Oracle site for the same. Tried executing the java code from windows 2000, Sun Solaris and Opteron machines and having the same problem.
    Does any one know a solution to this problem? I also tried ojdbc14.jar meant for Oracle 10g, that did not help.
    Please help.
    Thanks
    Yuva

    My code is doing some thing which might be working well with classes12.zip and which does not work well with ojdbc14.jar? Any general suggestions to make the code better, especially for batch updates.
    But for selecting a row from the table, I am using index columns in the where cluase. In the code using PreparedStatement, setting all the reuired fields. Here is the code. We have a huge index with 14 fields!!. All the parameters are for where clause.
    if(longCallPStmt == null) {
    longCallPStmt = conn.prepareStatement(longCallQuery);
    log(Level.FINE, "CdrAggLoader: Loading tcdragg entry for "
    +GeneralUtility.formatDate(cdrAgg.time_hour, "MM/dd/yy HH"));
    longCallPStmt.clearParameters();
    longCallPStmt.setInt(1, cdrAgg.iintrunkgroupid);
    longCallPStmt.setInt(2, cdrAgg.iouttrunkgroupid);
    longCallPStmt.setInt(3, cdrAgg.iintrunkgroupnumber);
    longCallPStmt.setInt(4, cdrAgg.iouttrunkgroupnumber);
    longCallPStmt.setInt(5, cdrAgg.istateregionid);
    longCallPStmt.setTimestamp(6, cdrAgg.time_hour);
    longCallPStmt.setInt(7, cdrAgg.icalltreatmentcode);
    longCallPStmt.setInt(8, cdrAgg.icompletioncode);
    longCallPStmt.setInt(9, cdrAgg.bcallcompleted);
    longCallPStmt.setInt(10, cdrAgg.itodid);
    longCallPStmt.setInt(11, cdrAgg.iasktodid);
    longCallPStmt.setInt(12, cdrAgg.ibidtodid);
    longCallPStmt.setInt(13, cdrAgg.iaskzoneid);
    longCallPStmt.setInt(14, cdrAgg.ibidzoneid);
    rs = longCallPStmt.executeQuery();
    if(rs.next()) {
    cdr_agg = new CdrAgg(
    rs.getInt(1),
    rs.getInt(2),
    rs.getInt(3),
    rs.getInt(4),
    rs.getInt(5),
    rs.getTimestamp(6),
    rs.getInt(7),
    rs.getInt(8),
    rs.getInt(9),
    rs.getInt(10),
    rs.getInt(11),
    rs.getInt(12),
    rs.getInt(13),
    rs.getInt(14),
    rs.getInt(15),
    rs.getInt(16)
    }//if
    end_time = System.currentTimeMillis();
    log(Level.INFO, "CdrAggLoader: Loaded "+((cdr_agg==null)?0:1) + " "
    + GeneralUtility.formatDate(cdrAgg.time_hour, "MM/dd/yy HH")
    +" tcdragg entry in "+(end_time - start_time)+" msecs");
    } finally {
    GeneralUtility.closeResultSet(rs);
    GeneralUtility.closeStatement(pstmt);
    Why that code works well for classes12.zip (comes back in around 10 msec) and not for ojdbc14.jar (comes back in 6-7 minutes)?
    Please advise.

  • Problem with external punchout in SRM Server 713

    Hello,
    We upgrade from SRM_SERVER 701 SP 04 to SRM_SERVER 713 SP 02, now we have a problem with external catalog, we did not change anything in standard call structure, however now when the user access to external catalog, select a product and "checkout", SRM returns to shopping cart screen without products and no message are register in log in transaction code SLG1.
    Our parameters in structure are:
    10                     https://xxxxxxxxx                          URL
    20 VIEW_ID          NAME                            Fixed value
    30 VIEW_PASSWD     XXXXXX               Fixed value
    40 USER_ID          SY-UNAME                   SAP field
    50 BRANDING      search5                     Fixed value
    60 LANGUAGE      ES                           Fixed value
    70 COUNTRY      MX                             Fixed value
    75 EASYORDER 1                          Fixed value
    80 target _top                                  Fixed value
    85 ~caller      CTLG                              Fixed value
    90 OCI_VERSION     4.0                     Fixed value
    91 FILTER                                      Fixed value
    92 OPI_VERSION 1.0                     Fixed value
    100 HOOK_URL                             return URL
    110 returntarget      _top                       Fixed value
    we made some test with parameter BYPASS_INB_HANDLER, set as 'X' but this not solve our issue.
    We have an implementation in badi BBP_CATALOG_TRANSFER to map product category, even if I set an external breakpoint in this implementation, system does not pass through it, also we test with this implementation inactive and behavior is the same, nothing transfer to shopping cart
    Does anyone know what's missing?
    Thanks in advance.
    Best regards,
    José Luis D.

    Hello Jason,
    Thank you for your answer, but as I told, If I set an external breakpoint it does not stop for debugging, so I can't see table as you recomended. This process (debugging) is familiar to me, in last version I can do it.
    Any suggestion?
    Thanks in advance, best regards
    José Luis D

  • I have a problem with external editing preferences where Photoshop will not launch when I choose "Edit In"...

    Hi. I have a problem with external editing preferences. If I add Photoshop as an external editor, it won't launch when selected, if I add it as an additional external editor it will. Why? How can I fix this as I need to use Photoshop and another program as the additional external editor.
    I use a Mac running OS X (10.8.5) and PS CS4 and LR 5.7. Any ideas on a fix? Thanks in advance.

    I don't know why Photoshop won't start. However, it's possible to create external editor presets using the additional external editor tools. There are instructions on how to do this in the Lightroom help. You could assign Photoshop and create one preset, and then assign another program and create another preset.
    I don't know if deleting your preferences would fix the problem or not. It can sometimes fix other problems.
    Preference and other file locations in Lightroom 5

  • Problem with protocol.jar with weblogic

    atg10.0.3 and weblogic 11g on 64bit linux.
    I've been plagued by this problem with ATG's protocol jar. While it loads the jar when starting up startWeblogic.sh it does not get loaded when starting a managed server thus i get the following errors:
    **** Error Fri Jun 15 15:56:43 MDT 2012 1339797403444 / Unable to start service "/atg/scenario/ScenarioManager": atg.nucleus.ServiceException: The configuration file XMLFile(/atg/scenario/scenarioManager.xml) could not be read: java.net.MalformedURLException: unknown protocol: dynamosystemresource
    **** Error Fri Jun 15 15:56:43 MDT 2012 1339797403544 /atg/scenario/ScenarioManager Unable to combine messaging information from the process manager component /atg/scenario/ScenarioManager. The process manager has not been classified yet so it cannot be determined if global messages should be listened for. This error indicates a problem with component startup order - the /atg/scenario/ScenarioManager component has been started before the /atg/dynamo/messaging/MessagingManager component
    **** Error Fri Jun 15 15:56:43 MDT 2012 1339797403583 /atg/dynamo/messaging/MessagingManager An exception occurred while trying to parse XML definition file "XMLFile(/atg/dynamo/messaging/dynamoMessagingSystem.xml)" java.net.MalformedURLException: unknown protocol: dynamosystemresource
    Following instructions has led me to place the protocol.jar from DAS/lib to the root of my domain directory and then apply the classpath entry in startWeblogic.sh script. protocol.jar shows up at the top of this scripts SDTOUT. But I cannot seem to get it included in the production.out logs when starting the managed server.
    Any ideas?
    Thanks!
    -Kip

    Yes I figured this out. The problem was the version of weblogic. I was using 1.3.6 when it should have been 1.3.5. After changing out the version, I no longer had problems with protocol.jar.
    Thanks!
    -Kip

  • Problem with External 2.1 digital speakers

    Anybody have any problems with external digital speakers connected to the SPDIF connection?  I have a 1215-600XT, and I tried connecting my old DELL Boston Acoustic 2.1 speakers.  They worked, but any time a "sound" played, a loud pop would follow the end of the sound track.  If its multiuple sounds (i.e. an application that is making numerous alert sounds) I get multiple pops.  It even happens at the endf of music tracks.  It was so annoying, I stopped using the speakers.  before I invest in another set of speakers, want to know I am not wasting my time.
    Also, anyway of getting the soundcard to support digital 2.1 or other sound?  The set-up screen only shows stereo for external speakers and no way of adding more.
    Sincerely
    Scott

    pmoney,
    If you need a RMA, you will need to contact Customer Support either via email or phone. Also, it may be a fault with the sub and not just the cable alone, anyway contact Customer Support and they will be able to assist further.
    Jason

  • Session EJB with external jar dependacy problem

    I have a Session EJB that I am having trouble adding to my Creator 2 project. The session bean is developed with netbeans 5.0, ejb2.1, for sjsas 8.2 PE. It has one external jar which is compiled into the ejb jar. When I try to add the session bean to my creator 2 project I get a java.lang.reflect.UndeclaredThrowableException. Creator 2 is not finding one of the Exception external jar.
    The only way I have been successful in added the session EJB is also add the external jar. But the project fails when you load the page with javax.naming.NameNotFoundException: No object bound to the name java: xxxxxx I believe the EJB is failing at instantiation.
    Has anyone had this problem and overcome it?
    Thanks,
    Francis

    Finally I found solution.
    Instead of deploying ejb jar to ear I've created a new ear deployment profile (so now I have ejb jar profile and ear profile).
    It contains ejb jar + external jar library and custom manifest.mf with class-path to ext. jar.
    Difference between this and previous version is the old one ear cointained ejb jar and the ejb jar contained ext. jar.
    Now ear contains both ejb jar and ext. jar.
    Rado

  • Problem using external jars in my java component

    Hi Guys,
    I just wanted to ask how to properly reference an external jar to a java dc. I already have an external library dc which contains my external jars and also compilation and assembly public parts,  a j2ee library which has the assembly public part of the external jars that is deployed to the server, a java dc which has the compilation public part of the external jar.
    My problem is whenever I trigger a method of the java dc in my webdynpro dc I'm having an exception. weird thing is when I put the whole method from the java dc to the webdnypro dc it functions well. So I'm thinking if the interaction between my java dc and j2ee lib dc has to do with this maybe I'm missing some configuration.
    need your insight on this one.
    Thanks,

    Hi TznHuang,
    Pleaserefer to this blog might helpful for you
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    Also please build external DC and then sync sorurces and sync used DC from inactive DC TAB for DC where you have used
    external DC.
    Hope bit helps
    Regards
    Arun Jaiswal

  • Compiling with external JARs using Eclipse

    I've spent 3 days on this and I still don't seem to be any nearer solving the problem. I am using a couple of external JAR files within my project and everything is working fine within the IDE, it's when I come to compile my own JAR that I'm having problems. I've tried created my JAR by choosing file->export, but it doesn't seem to pull in the external JARs. My class paths must be correct as I can run it within the IDE, but I'm missing something.
    Next I discovered ANT and had a play with that. After some toil I got it to generate a JAR, but it has two problems. 1. The manifest file cannot be found, but let's forget about that for now, as I haven't really looked into it. 2. The generated JAR is only 250Kb, when (if the external JARs are packaged with it) it should be closer to 5Mb. Again I've set my class paths in the External Tools dialog, but still nothing.
    Could someone please try and point me in the right direction. I've even spent a couple of hours at Borders reading up on ANT and Eclipse, that where my ANT script came from, but it hasn't got me the result I need. If it's any help my build.xml is below
    <?xml version="1.0" encoding = "UTF-8"?>
    <project name="C_G" default="Main Build" basedir=".">
        <property name="bin" location="bin"/>
        <property name="src" location="."/>
        <property name="jardir" location="${bin}/lib"/>
        <property name="jarfile" location="${jardir}/c_g.jar"/>
        <property name="build.compiler"
        value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
        <target name="Main Build" depends="Initialize, Compile, Jar">
            <echo message="Ant Building"/>
        </target>
        <target name="Initialize">
            <delete dir="${bin}"/>
            <delete dir="${jardir}"/>
            <mkdir dir="${bin}"/>
            <mkdir dir="${jardir}"/>
        </target>
        <target name="Compile" depends="Initialize">
            <javac srcdir="${src}"
                destdir="${bin}">
            </javac>
        </target>
        <target name="Jar" depends="Initialize, Compile">
            <jar destfile="${jarfile}" basedir="${bin}"/>
        </target>
    </project>

    Damn it, so I do have to tackle the 'manifest not
    found problem' first then. I would have though
    Eclipse would have made a better job at making the
    manifest file.All I can say: RTFM. This is not an Eclipse support forum. Maybe it does, and you use some incorrect settings.
    I just placed it into the root of the JAR, but when I
    run it can't find itIt doesn't belong there. It goes into a directory named META-INF

  • Problem with External Library

    Hi Everybody
    I'm using NW04s (7.0) sp 11 and I'm having problem using an <a href="http://sourceforge.net/projects/jexcelapi/">external jar</a>
    for reading and writing to excel files. (I already used this jar with a regluar WD project and now I want to use it in a Web Dynpro DC project).
    I tried using <a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro blog</a> and <a href="/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas Blog</a>.
    I tryed following both step by step, but when I tryed to use my project I get Class Not Found Error. The library is being created but it doesn't contain any jars.
    I'll will give ten points for anyone who will guide me step by step how to deploy an external library in NW04s
    Maybe something changed in this version??? Or this Jar isn't suitable for SAP J2ee server
    Regards
                Omer

    I tried this blog and had 2 problems.
    1.)
    I didn't understand this part from the blog
    "Caveat confector:
    One should always remember this significant and valid point: 'Use ONLY DC Builds to create the deployable archive if you work with assembly public parts."
    What should  I 'DC Build' the  'Web Dynpro DC' or the 'external library DC'?
    It isn't clear.
    2.)
    When I tried now to do it, I followed the blog and I get this warning when trying to build External Library DC.
    "17/06/2007 10:02:09 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] WARNING: jexecel_lib: Compute DC build order: skipping DC that could not be loaded: MyComponents:sap.com/jexecel_lib. Exception: Failed to read component definition from local file MyComponents:sap.com/jexecel_lib : Cannot read component definition. File does not exist: D:\Documents and Settings\omers\.dtc\LocalDevelopment\DCs\sap.com\jexecel_lib\_comp\.dcdef (Cannot read component definition. File does not exist: D:\Documents and Settings\omers\.dtc\LocalDevelopment\DCs\sap.com\jexecel_lib\_comp\.dcdef)"
    what is the reason, for this warning?

  • Migrating prject with external jars from 10g to 11g

    Hi..
    I am migrating a project which is using external jar files. I have included jar files in sca-inf/lib folder as well as on server directory. But i am getting error that the particular class in jar cannot be intialized. Error is given below:-
    Could not initialize class com.ge.realestate.ea.framework.util.FrameworkXMLUtils;

    Thanks for replying...
    I have already followed all the steps in that document. But i am unable to access classes in the jars included in the project. May be I have to recompile all the jars in 11g with ant. Because I am able to access only those classes which are not importing any classes. The imports used in the specific class are given below:-
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.StringWriter;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import oracle.xml.parser.v2.XMLLSSerializer;
    import org.apache.log4j.Logger;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.collaxa.xml.XMLHelper;
    import com.oracle.bpel.client.BPELFault;
    I am not sure if importing one of these is causing the problem.

  • Signing problems with ucf.jar

    I've been trying to sign my extension with ucf.jar to make it possible to install the .zxp. I created a self-signed certificate using Keychain Access > Certificate Assistant in MacOSX and exported it to a .p12-file. When i try to build and sign the .zxp with:
    java -jar ucf.jar -package -storetype PKCS12 -keystore certificate.p12 -storepass password myExtension.zxp -C "./myExtension/" .
    i get the following stacktrace:
    Packaging failed: Unknown or invalid signature algorithm.
    java.security.GeneralSecurityException: Unknown or invalid signature algorithm.
        at com.adobe.pki.PKIContext.VerifyCertPath(PKIContext.java:167)
        at com.adobe.ucf.CodeSigner.BuildAndVerifyCertChain(CodeSigner.java:297)
        at com.adobe.ucf.CodeSigner.getXMLKeyInfo(CodeSigner.java:241)
        at com.adobe.ucf.CodeSigner.getSignatureXML(CodeSigner.java:184)
        at com.adobe.ucf.UCFOutputStream.finalizeSig(UCFOutputStream.java:264)
        at com.adobe.ucf.UCFPackager.createPackage(UCFPackager.java:109)
        at com.adobe.ucf.UCF.doPackage(UCF.java:114)
        at com.adobe.ucf.UCF.main(UCF.java:64)
    Couldnt find anything about this in the sign-toolkit-pdf.

    Sorry to hear you've been having problems with this - the next release of the signing toolkit should hopefully make things easier.
    For now, please try these two things:
    Download the latest version of the signing toolkit (which includes UCF.jar) from here: http://www.adobe.com/devnet/creativesuite/sdk/eula_cs6-signing-toolkit.html
    Generate a P12 file using the keytool (e.g./usr/bin/keytool):keytool -genkey -alias ALIAS -keystore FILENAME.p12 -storepass PASSWORD -validity 3650 -keyalg RSA -keysize 2048 -storetype pkcs12
    Please let me know how you get on.
    Best wishes,
    Fraser

  • Attempting to build mplayer with external (shared) ffmpeg libraries.

    Theoretically it is possible - the Gentoo guys have done in their e-build (USE flag external-ffmpeg).
    However, when I do it I get multiple build errors about undefined references.
    I use mplayer svn 29438 and ffmpeg 0.5 (and svn 19564).
    The necessary additions to a normal mplayer build are:
    depends=('ffmpeg>=0.5')
    --enable-rpath \
    --enable-dynamic-plugins \
    --disable-libavutil_a \
    --disable-libavcodec_a \
    --disable-libavformat_a \
    --disable-libpostproc_a \
    --disable-libswscale_a \
    --enable-libavutil_so \
    --enable-libavcodec_so \
    --enable-libavformat_so \
    --enable-libpostproc_so \
    --enable-libswscale_so \
    Any help-insight why it does not build?
    PS: Does ffmpeg has to be built with:
    --disable-stripping
    Last edited by wantilles (2009-08-02 17:49:14)

    It may be a GCC linker issue, but as had been stated a few times above, there are unnecessary parts of your build that are causing the problem. I don't use --enable-path, don't --enable-vdpau, don't explicitly try to link to the FFmpeg shared objects. I really don't --enable anything. In fact, I try to disable as much as Mplayer as possible to avoid it using it's own internal libraries. This is my configure line, with the exception that I added the dynamic-plugins bit just to see if it works. And yes, even VDPAU is working great here:
    ./configure --prefix=/usr --confdir=/etc/mplayer \
    --disable-gui \
    --disable-faad \
    --disable-faad-internal \
    --disable-runtime-cpudetection \
    --enable-dynamic-plugins \
    --disable-faac \
    --disable-faac-lavc \
    --disable-libdv \
    --disable-aa \
    --disable-mencoder \
    --disable-liblzo \
    --disable-speex \
    --disable-fribidi \
    --disable-smb \
    --disable-openal \
    --disable-x264 \
    --disable-esd \
    --disable-jack \
    --disable-gl \
    --disable-fbdev \
    --disable-mp3lib \
    --disable-dvb \
    --disable-dvbhead \
    --disable-libvorbis \
    --disable-musepack \
    --disable-directfb \
    --disable-nas \
    --disable-liba52 \
    --disable-libavutil_a \
    --disable-libavcodec_a \
    --disable-libavformat_a \
    --disable-libswscale_a \
    --disable-libpostproc_a \
    --disable-tv \
    --disable-tv-v4l1 \
    --disable-tv-v4l2 \
    --disable-tv-teletext \
    --disable-v4l2 \
    --disable-dga2 \
    --disable-dga2 \
    --disable-vidix
    My advice to you is to let Mplayer link to whatever it finds and if there's some functionality it didn't pick up on, then try the --enable switch.

Maybe you are looking for