Find jar file which contains wanted class

I have too many jar and zip files under my classpath. How could I know which jar or zip file contains the class file I wanted?
Thanks.

Maybe this tool will be of interest to you:
Java Tip 105: Mastering the classpath with JWhich - Identify which class will be loaded in your classpath
http://www.javaworld.com/javaworld/javatips/jw-javatip105.html?
Jesper

Similar Messages

  • Can't find jar file which contains com.sap.portal.directory - Constants

    Hi,
    I am not able to find a jar-file which contains the Constants class of com.sap.portal.directory.
    Does anybody know where to find it?
    Thank you in advance.
    Kind regards, Patrick.

    Hi,
    Refer this link
    Using JAR Class Finder
    in the server u can find the jar files required for the application....
    C:usrsapJ2EJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportal
    Regards,
    Senthil K.

  • How should I create JAR file which  contain JMF library and project classes

    Hi,
    I installed the JMF windows pack. I compiled and ran successfully myApplet (which use JMF librarie) in Internet Explorer on my machine. When I run this applet on some different machine, where JMF isn�t installed- it�s not running.
    There is an error:
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    I was trying to create jar file, which contain librarie JMF.jar and all other files which are require to run myApplet (*.jar, *.class, the files from folder �MyApplet�) and run it on the other computer. It still doesn�t work.
    Also I ran a JMF Customizer and created customize.jar but this file contains only JMF classes. I don�t know how add other files to it.
    How should I create a jar file which will contains all essential files to run myApplet on other machine (something like �All In One� J )
    I�m using Eclipse.
    Can somebody help me?.
    Thank You!
    Best regards:
    Peter

    Hi
    i want to make a jar file of application which is using JMF to play audio
    and video. it works well during compilation and execution but doesn't
    works in jar file.
    please help me how i make a jar file whic will run audio and video too
    your's truely
    abdul

  • Error in running jsp file which contains inner class,help !

    Environment ias sp4 for windows2000
    Error:
    try to access class jsp.APPS.bsteelWZ.order.OrderMgmtMain$1$sOrderHelper
    from class jsp.APPS.bsteelWZ.order.OrderMgmtMain
    OrderMgmt.jsp contains a class named sOrderHelper.
    It's all ok on ias sp2 for solaris.
    Thank you!

    405 errors in the HTTP cycle
    Any client goes through the following cycle:
    * Obtain an IP address from the IP name of your site (your site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
    * Open an IP socket connection to that IP address.
    * Write an HTTP data stream through that socket.
    * Receive an HTTP data stream back from your Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
    This error occurs in the final step above when the client receives an HTTP status code that it recognises as '405'.
    Resolving 405 errors - general
    405 errors often arise with the POST method. You may be trying to introduce some kind of input form on your Web site, but not all ISPs allow the POST method necessary to process the form.
    All 405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site.

  • Making excecutable jar file which contains folder

    hi,
    I have a strange (at least for me it is) problem. I made an excecutable *.jar file of one of my projects. The problem is, that it only works if the *.jar file is in the same folder as my project.
    my project uses subfolders. i noticed, that if i deleted everything, leavin only the *.jar file and the folders, then it works.
    so my question is: how can i tell my java programm to look for the folders inside the jar file?
    yes, i did put all folders inside the jar file and yes i used relative paths within my programm.
    thanx
    Usul

    for example:
      analysePoints.addImage(new File("Candidates", "A.png"));
      analysePoints.addImage(new File("Candidates", "Circle.png"));
      analysePoints.addImage(new File("Candidates", "Cross.png"));
      analysePoints.addImage(new File("Candidates", "Heart.png"));
      analysePoints.addImage(new File("Candidates", "TriangleN.png"));
      analysePoints.addImage(new File("Candidates", "TriangleSW.png"));or
       while( helpInt < pathsToImagesVT.size() )
         File currentImagePath = (File)pathsToImagesVT.elementAt(helpInt);
         Image currentImage = null;
        try{
          currentImage = getToolkit().createImage(currentImagePath.getCanonicalPath());
          MediaTracker helpMT = new MediaTracker(this);
          helpMT.addImage(currentImage,0);
          helpMT.waitForAll();
         } catch(InterruptedException e) {System.out.println(e.toString());}
           catch(IOException f){System.out.println(f.toString());}

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
    <html>
    <applet code="file.class" archive="file.jar" width="500" height="300">
    <param name="name" value="value">
    </applet>
    </html>
    I want to know how to execute this class file without using the html tags.
    pls help me out in this.
    Anki

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

  • Which  is  jar file   the corresponding OCFCardAccessor Class?

    hello,
    when I complied my java file. I have following error:
    can't file the OCFCardAccessor.Class
    CardRequest cr = new CardRequest(CardRequest.NEWCARD, null,OCFCardAccessor.class);
    I already include the all jar file in the project,I find the jar file which include the OCFCardAccessor.class file,but can't file.
    if you known that please tell me.
    Regards
    deng

    Raktim,
    check this thread
    Re: How to use IUserfactory in Webdynpro?
    Thanks
    Bala Duvvuri

  • To include a JAR file that contains enterprise beans in a WAR module

    1)I'm studying java ee tutorial in 6 but I do not understand what he means by "To include a JAR file that contains enterprise beans in a WAR module, add the JAR to the WEB-INF/lib directory of the WAR module" at this link:
    http://docs.oracle.com/javaee/6/tutorial/doc/gipio.html
    how do I create a file. jar to hold the enterprice beans in netbeans?
    2)
    as regards the case study prensete always in the tutorial "dukes-forest" I do not understand how it is structured, I think that the "dukes-store" is a web application (web module. war) to which are added other projects "entities "etc. .. is that correct? if it is right how do I create the project "entities" in netbeans? how do I add it to the project "dukes-store"?
    link at case study del tutorial:
    http://docs.oracle.com/javaee/6/tutorial/doc/glnpw.html

    Hi,
    I have also tried putting the actual jar file in my
    jar file that I created, that didn't work either.
    I didn't try extracting the contents of the jar file
    into mine because the directory structure would
    conflict my dir structure in the jar file (manifest
    file that is)Out of curiosity are you trying to use executable jar files? If so you might want to put the classpath in the manifest using Class-Path: blah.jar etc. Be remember that this resolves to the disk filesystem not the internals of the jar that is being executed. In other words - the blah.jar file resides in the same directoy on the disk as your executable jar.
    If you could clearly describe what you are trying to achive and how it is structured I am sure we could give you more pointers.
    TTFN

  • Is there way to debug JAR file,which doesnt has sources.

    Hi
    I have jar file called myjar.jar,which contains only .class files.Assume,I dont have sources for this jar.
    Is there way to debug myjar.jar file??
    However,I can use Djcompiler and get the sources for the jar and use it for debugging.I think,Its not good Idea??
    Thanks in advance.
    Thanks
    kaleem

    Hello,
    Yes - Alt+92 works, but it is too complicated method for most users. As \ is used so often (e.g. login into domain, file and UNC paths) there should be more direct support in keyboard layout.
    Some users are using other Languages (English, Russian) keyboard layout, just to enter that single character.
    Those who know about presence of Microsoft Keyboard Layout Creator load the existing layout and modify it so that VK_OEM_5 key with "\ |" on it in combination with space produce "\" and not "°".
    I would suggest to map "\" to AltGr + "/" key, because it is physically close to VK_OEM_5 and also conceptually idea that AltGr changes meaning from one slash to other is quite logical. That combination is not currently used, so it can be used for that new
    purpose without breaking anything.
    Dainis

  • How to read a line from a file which contains 45000 characters?

    Hi all,
         Iam a receiving a .CSV file which contains n number of rows ,each row has a data seperated with delimiter.
    These values based on delimiter it is seperated and certain validations are handled.
    Iam using UTL_FILE.GET_LINE operator to read the value and store it in a variable which is declared as l_text VARCHAR2(30000).
    when we receive a line which contains huge characters say 45000 then it throws an error(Unable to read the file).
    Only on rare cases we used to receive these kind of files with huge size.
    Kindly help to solve this issues.
    Database details.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Hereby i have tried with long Raw data type but still same error unable to read the file.pls find the sample code below,
    declare
    l_text             LONG RAW;
    l_importTypeFile   UTL_FILE.FILE_TYPE ;
    begin
         PKG_COMMON.PROC_FOPEN(g_Directory, P_FILENAME,    'RB',l_importTypeFile,    p_error_cd, p_error_msg) ;
    UTL_FILE.GET_RAW(l_ImportTypeFile,l_Text);
    End;
    Thanks in Advance
    Siva

    Hi Siva,
    Are you trying to use data from this .csv file into your realtion tables. If yes and If you are using 11g Oracle database. I would suggest you create External Tables using the below query,
    http://www.oracle.com/technetwork/issue-archive/2011/11-mar/o21nanda-312277.html
    STEP1: You need a Directory where your SCHEMA has read/write access. Store the csv file in that directory.
    STEP2: Create an EXTERNAL Table script. Please refer the above URL. Examples are for coma delimiter (,); replace it with your pipe (|) in the code
    STEP: Once your external table is created you can simply create a relational table as below:
    CREATE  TABLE relation_table
      AS
    SELECT * FROM external_table;
    Regards,
    RaviR

  • JAR file which needs other JAR files

    Hi,
    I try to run a jar file, which imports some external classes. These classes are in the library "reader.jar", which is added to the classpath. But if I start it with ...
         D:\TestProject>java -cp ./reader.jar -jar viewer.jar
    ... I get an error: java.lang.NoClassDefFoundError: de/readers/TestReader
    If I copy the file "reader.jar" to "... j2sdk1.4.2/jre/lib/ext", I can start
    "viewer.jar" successfull with ...
         D:\TestProject>java -jar viewer.jar
    Why can't I add "reader.jar" to the classpath or why is it not used by Java?

    When you run JAR's, you can not use the classpath defined at the command prompt (well, you can use it, it is just ignored). The JAR has its own class path defined in its manifest file. Add:
    CLASS-PATH: reader.jar
    to the manifest file of the viewer.jar and it should work.

  • Required the details of jar files which is loaded in the database

    Hi
    We are having a 10g database which is running under Solaris machine. There are lot of .jar files which are loaded into the database. I would like to know how to find those .jar file details atlease the name of the files which are loaded in the database. Is there any view for this.
    I couldnt find anything from the Java option in TOAD
    Please provide a solution.
    Thanks
    SHIYAS M

    From 11g onwards, you have
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL> desc javajar$
    Name Null? Type
    NAME NOT NULL VARCHAR2(30)
    OWNER# NOT NULL NUMBER
    PATH VARCHAR2(4000)
    CONTENTS BLOB
    SQL> desc javajarobjects$
    Name Null? Type
    JARNAME NOT NULL VARCHAR2(30)
    OWNER# NOT NULL NUMBER
    OBJNAME NOT NULL VARCHAR2(40)
    NAMESPACE NOT NULL NUMBER

  • Find the schema which contains all these tables

    In my DB, only SCOTT has all the three tables EMP,DEPT, BONUS. There are schemas which have either one or two of these tables but only SCOTT has all these 3 tables.
    To find the schema which contains all these *3* tables. I tried the below mentioned queries which gave the wrong answers.
    1.
    select TABLE_NAME, owner from dba_Tables where table_name IN ('EMP','DEPT', 'BONUS')-- will return any schema which has any of these tables. So, wrong result
    2.
    select TABLE_NAME, owner from dba_Tables where table_name = 'EMP' AND TABLE_NAME='DEPT' AND TABLE_NAME= 'BONUS'-- Wrong result because it is mutually contradictory. As AP has mentioned below, A table_name cannot be equal to all the three tables .
    Edited by: GarryB on Dec 22, 2010 7:56 AM

    Hi,
    GarryB wrote:
    Thanks everyone. So, this means that this seemingly simple query cannot be written with just a plain AND , OR . Right?You're right. Every query needs SELECT and FROM, for example.
    What's wrong with Solomon's simple solution?
    Whatever you don't like about it, I'm sure there's another approach that doesn't have the same problem, even if it is slower and more complicated.
    As AP pointed out, no one row has all the information you need to decide if that row will be part of the result set or not.
    You need something that can make a decision based on the data in multiple rows.
    GROUP BY, like Solomon suggested, is the easiest and most efficient way I know of.
    Anything that GROUP BY does can probably be done by analytic functions. In this case, it will be more complicated and slower, but you can get the same results.
    A self-join, as user13524665 demonstrated, is another way.
    You could also get the results you want using EXISTS-, IN-, or scalar sub-queries, all of which would be even more complicated, and scale just as poorly, as a self-join.
    CONNECT BY, recursive sub-queries, MODEL, and XML functions can also look at several rows at the same time. I don't believe you want to read and test soltuions for all of these any more than I want to write all of them. Solomon gave a good solution for your original problem. If you want to add some extra restrictions to your problem (such as "I can't use ... or ...") explain clearly what those restrictions are, and why you need them.

  • Where to find .jar files so I can implement import java.util.logging

    I'm trying to figure out how to take an application built for Websphere and port it to WebLogic. I've come across this blog entry http://blogs.sun.com/fkieviet/entry/using_java.util.logging_in_bea_weblogic and would like to try creating and using the startup class.
    I have not been able to find the correct jar files.
    import weblogic.common.T3ServicesDef;
    import weblogic.common.T3StartupDef;
    import weblogic.logging.LoggingHelper;
    In reading the documentation on using the NonCatalogLogger APIs at http://download.oracle.com/docs/cd/E12840_01/wls/docs103/i18n/writing.html I also see some code calling for the following imports
    import weblogic.jndi.Environment;
    import weblogic.logging.NonCatalogLogger;
    1. Does anyone know where I can grab these?
    2. There must be a strategy for finding these .jars that people use. If so, what is it?

    I thought I understood you, but the more I look at what you've set here, I'll just be honest and admit that the I don't know what you are saying here:
    'You should be able to add the "weblogic.jar" in the WebLogic distribution to your classpath.' - What doe this mean?
    1. Go to my xxxWeb app Dynamic Web Project and right-click and select Build Path / Configure Build Bath / Libraries - Select Add external JARS and navigate to the weblogic.jar
    2. Go to my xxxWeb app Dynamic Web Project and right-click and select Build Path / Configure Build Bath / Libraries - Select Add Library and try to go from there?
    3. Go to my xxxWeb app Dynamic Web Project and right-click and select Build Path / Configure Build Bath / Libraries - Select Add Variable and try to go from there?
    4. Go to my xxxWeb app Dynamic Web Project and right-click and select Build Path / Configure Build Bath and do something else?
    5. Something else?
    Also, I don't know what you mean here:
    'You don't need to (and you shouldn't) copy that jar file, just have it in your compilation classpath. It will be present automatically at runtime.'
    Sorry for being so simple here but I've been trouble shooting why I can't follow what look like pretty simple steps to implement over-riding the ApplicationLifecycleListener Class to use existing java.util.logging.Logger code by adding the following to the the weblogic-application.xml:
    <wls:listener>
         <wls:listener-class>com.qualcomm.weblogic.log.listener.UtilLogWrapper</wls:listener-class>
    </wls:listener>
    And including as a referenced jar file, a simple POJO class instance of com.qualcomm.weblogic.log.listener.UtilLogWrapper.
    My resrouces for this are:
    1. http://blogs.sun.com/fkieviet/entry/using_java.util.logging_in_bea_weblogic.
    2. http://www.oracle.com/technology/pub/articles/drolet-ant.html.
    Maybe my weblogic.jar is at the root of the problem.
    I hope you can 'dumb this down' for me with a simple explanation of steps to do what you outlined above.

  • Can't find jar-file in DC

    Hello,
    I'm developing a JSPDynpage with beans.
    These beans connect to an R/3-system.
    I want to make use of the Connector Framework.
    I added the needed used DC's to my development component, but I'm still missing 1 jar-file with the IConnectorGateService-class (i think its the connectorserviceapi.jar) wich DC do I have to add to my used DC's?
    Thanks for help,
    Joachim
    Message was edited by: Joachim Van Praet

    Hello,
    Ok, Then you have to create a seperate DC if type "<b>EXTERNAL Library</b>" , And then make it as a public part for use by other DC's. For more information you can try do like this.
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2361">Add External Jar to DC</a>
    I hope this will solve your problem.
    Regards
    Pravesh

Maybe you are looking for

  • How do i add an apple id for family sharing for my husband

    I am trying to set up family sharing and have added my daughters easily but when i try and invite my husband it says we cant as he email address is already associated with my apple id. How can i set him up to use family sharing?

  • Can we run Payment medium   or dunning  in the profit center level also ?

    Hi friends Is it possible we can run a payment medium program or dunning in the profit center level.If it is yes means, how we can run at the profit center level for all vendors and customers Regards Aravind 9980838025 Bangalore India

  • Perspektivisch Verformen Funktion nicht verfügbar

    "Perspektivisch Verformen". Ich nutze das Photoshop CC / Lightroom Abo. Die Updates sind auf dem neuesten Stand. Die Funktion "Perspektivisch verformen erscheint jedoch nicht in den Menüfunktionen. In den Voreinstellungen/Leistung ist "Grafikprozesso

  • The WebApplicationException log ID is [00219B410BF5006A00000000000008D4]

    Dear all:             I open IE but it response err msg. plz hlep me. 500   Internal Server Error Error: "Application error occurred during the request processing." Troubleshooting Guide https://sdn.sap.com/irj/sdn/wiki?path=/display/jsts/home Detail

  • AOL Mobile Web  login issues

    Is anyone having trouble logging into AOL on the Mobile Web? I have been trying for a week ? I cannot get on?  Please let me know if anyone else is having issues with this - Thanks!!