How to view source of java libraries?

Hello,
I need to view how some things in Java are implemented,
like how Objects are added to HashMap etc. I know this can
be done with IDEs like JBuilder and Netbeans, but is there
another way? All the classes are in rt.jar as far as I know,
but viewing those would need a decompilation. How do you
people view these files to see how Java does some of it's
things?
I don't have any IDE at use right now, so that's why
I'm asking.
Thanks in advance.
kari-matti
Message was edited by:
kari-matti

In your JDK directory you'll find a src.zip file which contains all the sources.
kind regards,
Jos

Similar Messages

  • How to view source of native method Thread.start()

    I have already downloaded and unzipped the source code for JDK. I want to view the implementation of Thread.start() method. However, I can only see one line:
    public synchronized native void start();Could anyone tell me how can view the implementation of this method? And generally, how can I view the implementation of a native method?
    Regards,
    Xinjun

    %SRC_BASE%\j2se\src\share\native\java\lang\Thread.c,
    but that only defines a table in which start0()
    forwards you to JVM_StartThread(), wherever that may
    be.You are crossing the boundary between the JDK code and the JVM (Java Virtual Machine). If you have unpacked the Mustang sources [1], take a look at:
    hotspot/src/share/vm/prims/jvm.cpp lines 2421 through 2504.
    This will soon lead you to hotspot/src/share/vm/runtime/thread.cpp
    Hope this helps...
    [1] https://mustang.dev.java.net/

  • How to manage source for java project using eclips?

    Hi,We use TFS 2013 and VS 2013 for source control ,now we want to start mobile app using eclips,
    How to control source of that project,How we can have features of tfs source control on that type of project such a mobile that use eclips.
    thanks
    Thanks. Bahar Ghadami Web Developer And Technical expert

    Hi Bahar,
    You can manage your source code with both Eclipse and My Eclipse.
    Please follow this link to install the Plugin (Team Explorer Everywhere) to manage your source code.
    http://msdn.microsoft.com/en-us/library/hh301122.aspx

  • How to view record from java source table

    hi,
    i had created a table as
    CREATE JAVA SOURCE NAMED "Hello" AS
    public class Hello {
    public static String hello() {
    return "Hello World"; } };
    also it compiled but i dont've idea to view the record from it
    can u help me

    Please check the following script --
    create or replace and resolve java source named "Hello"
    as
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    public class Hello extends Object
        public static String Display()
        throws IOException
            return "Hello World";
    create or replace procedure Hello(v_str  out varchar2)
    is
       language java
       name 'Hello.Display(java.lang.String) return String';
    create or replace procedure HDisplay
    is
    x  varchar2(400);
    begin
      Hello(x);
      dbms_output.put_line('String is: '||x);
    end;And, from sql prompt --
    exec HDisplay;N.B.: Not Tested...
    Regards.
    Satyaki De.
    Message was edited by:
    Satyaki_De

  • How to View Tables from java side from NWDS/NWDI?

    HI All,
    I want to view the following tables from java side
    CRM_ISA_ADDRESS
    CRM_ISA_BASKETS
    CRM_ISA_BUSPARTNER
    CRM_ISA_EXTCONFIG
    CRM_ISA_EXTDATHEAD
    CRM_ISA_EXTDATITEM
    CRM_ISA_ITEMS
    CRM_ISA_OBJECTID
    CRM_ISA_SHIPTOS
    CRM_ISA_TEXTS
    How can I view them using NWDS/NWDI?
    Which DC has this tables?
    Could you please help me with the procedure to view them?
    Thanks and Regards,
    Gauri

    Hi All,
    crm/isa/isacoreddic and crm/isa/shopddic in SAP-CRMDIC are having these tables.
    Thanks and Regards,
    Gauri

  • Very Easy Question: How to view source code of JAR file

    Hi Experts,
    1) Can we can see the content of JAR file?
    2) How we can we see content of JAR file?
    3) I have with me JAR file. It is sap.compcui_gpoadp~ObjectAndDataProvider.JAR. I have to make some changes in the JAR file source code. How I can find the source code?
    I tried to see the source code using NWDS. However, I can not see the code.
    Regards,
    Gaurav

    >
    Gary wrote:
    > Can I make changes in the source code of JAR file? Can I make changes in the code?
    You cannot do this by simple repacking/rearchiving of JAR, because it contains special descriptor with fingerprint. In general, JAR is unmodifiable, however, you can create a new one with modified sources.
    You can try to import the JAR in some Java project in Eclipse, for example. Then make your changes and use the Eclipse's Export JAR wizard in order to repack the modified source Java files in a new JAR.
    >
    Gary wrote:
    > Can I rename the JAR file and still it will usable? Please confirm.
    I general, yes, the operation is allowed. However, you cannot do this with JAR deployed on some J2EE server or Portal, for example. Because there are references to it.
    >
    Gary wrote:
    > Please let me know if by any chance I can see the content of JAR file in NWDS.
    Yes, sure. Use Import from Archive wizard in Eclipse. Or add the JAR in the class path of some Java project and Eclipse will show you the content of it.
    BR, Sergei

  • How to view source of e-mail without opening so I don't get a virus

    I want to be able to look at my e-mail, see who it is from, and delete if from an unwanted source.  Can this be done?  Thanks

    Just to provide a third opinion, the others are 100% correct. Viewing a message in Mail will not infect you with anything. Of course, it should go without saying (but often needs to be said) that you shouldn't open any attachments. Keep in mind that someone you know could become infected with something that sends itself to you. (That happened years ago with the Leap malware that spread through iChat, but has not yet happened on a Mac with e-mail. It always could, though.) So, don't necessarily trust an attachment just because it came from someone you know.
    For more on this topic, see my Mac Malware Guide.

  • How to view source of email message without opening the message?

    In addition to Verizon Email, I use Windows Live Mail.  With Windows Live Mail I can view the source of a message without opening the message.  This way I can find out if the message is legitimate or spam before potentially getting hit with malware from a bogus message by opening it.  I can then set up a blocking rule so a bogus message from either the sender or the domain never appears in my Inbox.  I have not found a way to do this in Verizon EMail. 
    Is there a way to view the source of a message without opening the message in Verizon EMail?  Right clicking just opens the message which I do not want to do.

    computerbug,
    You can get a preview of your email.  Log into the Verizon account and go to email > in the top you will see
    Conversations
    Contacts
    Calendars
    Settings
    Click on settings < General settings > Display and you will see 2 options for email view.
    (Preview is not available, if the resolution is less than 1024 by 768 pixels)
    Thanks,
    Tonya D

  • 2LIS_04_PEMATNR - How to view source tables and fields

    Hi,
    I need to know which Info Structures (or tables) the extractor 2LIS_04_PEMATNR reads?
    The client's system writes Goods Receipt information (when viewed with transaction MCP6) to Info Structures S029 and S225.
    I have activated the extractor 2LIS_04_PEMATNR, but no records come through when tested with RSA3.
    The goal is to extract production GR information to BW for planning.
    Any help would be appreciated, please point me into right direction!
    -miikka

    Please let me know what additional information you want for this extractors.
    I already provided you with tales names for this datasource and was rewarded with merely 2 points....facts like these do not give us motivation enough to help others...but can't help...some people do it repeatedly here on SDN
    Anyways let me know if you need further help
    rgds
    Pradip

  • How to view body of SOAP error (in Java)

    I'm trying to track down the source of a "Server" error I keep getting back when trying to invoke Web Services from Java code. I can't figure out how to view my SOAP response to get the details of the error message. So all I have to work with now is "javax.xml.rpc.soap.SOAPFaultException: Server". I created the Web Service endpoint in JDeveloper by loading the .wsdl file and selecting "Generate Web Service Proxy" - So I can't view my SOAP message/response - I just call the 'accountInsertOrUpdate' method.
    Should I expect the SOAP body to have a more detailed error as to what is causing the 'Server' error?
    Does anybody know of a method where I can view the SOAP body being sent out and received?
    I consistently get this Server error when trying to call any Oracle CRM On Demand method (about 2-3 times in a row) and then the method call works fine - no changes on my side (it is just in a loop to retry if a Server error is encountered). (If I view the Web Service Utilization in CRM On Demand - it doesn't show any of the 'Server' errors - only the successful login, method call, and logout.
    Any ideas would be greatly appreciated - Thanks!
    Brian

    I just figured out how to view the body of the SOAP error. (I just needed to cast the Exception as a SOAPFaultException to view the details).
    This is the error I consistently get: Internal Error: Session is not available. Aborting. (SBL-ODU-01006)
    So now my question - has anybody else run into this?
    I log in - get my session id. Try to call a method and get (2 or 3 times in a row) this 'Session not available' error and then it works. I try and make another method call and get 2 or 3 more 'Session not available' errors.
    I thought it might be a timing issue (where I am making too many requests/second) so I added a little 'sleep' time between method calls with no difference in response.
    Ideas?

  • How to view HTML page source in CR2011 CrystalViewer

    We are migrating from CR2008 SP3--> CR2011 (Unmanaged RAS SP5, OEM Edition 14.0.5.882)
    We have JSP page which wraps the CrystalViewer output between a ReportMenu page
    viewer.setOwnPage> FALSE Ensure that it is not generated with tags
    response.setBufferSize(4096);
    response.setContentType("text/html; charset=UTF-8");
    Writer out = response.getWriter();
    request.getRequestDispatcher("/webrpts/header.jsp").include(request,response);
    viewer.processHttpRequest(request, response, servletContext,response.getWriter());
    When we upgrade to CR2011, the viewer is showing the report in a BOX
    if we right click view Source, the report content are not shown.
    Is there any parameter to view the report source?
    I tried to print the output using viewer.getHtmlContent(request, response, servletContext);
    It does not output the Report Content....
    I am attaching a document to show how it is output in CR2008 and CR2011
    What is the difference between CR2008 and CR2011 Viewer?
    Please help.

    We are using JAVA SDK and already we are hiding the ToolBar by setting
    viewer.setDisplayToolbar(false);
    viewer.setToolPanelViewType(crToolPanelViewTypeEnum.none);
    The documentation says if
    viewer.setOwnPage(false);  then the <HTML></HTML> will not be generated by the
    viewer.processHttpRequest(....)
    But if I output the data generated by this method it does not have the report output....
    We are expecting that and process further using javascript
    What is the difference in behaviour of 2008 and 2011 Crystal Viewer?
    Previous flow explained below
    Ex
    <html>
    <head>.......
    <javascript...............>
    </head>
    <body onload=callCustom()>
    viewer.processHttpRequest(......)
    </body>
    </html>

  • How to view the java code of the message mapping,

    Hi Experts,
    <b>how to view the java code of the message mapping,</b>
    how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi sowmya,
    Open any  Message mapping in IR. Press <b>CtrlShift0(zero)</b> to open a new menu.
    There you will find an option "Is Java Source Code Available?"
    There will be an export button nearby. Use it to get the code.
    Open it in a zip , you will see the hide java code.
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

  • How to view pdf file in java/jsp?

    Hello Everybody,
    Any one help me how to view pdf file in jsp using java application.
    I have pdf file c:\app.pdf.
    How can i display the pdf file.
    Please help me.................
    Thanks

    Hello,
    You can use the below code, but i am not sure how far is this a startard way of doing it.
    # <%
    # ServletOutputStream servletOutputStream = response.getOutputStream();
    # File reportFile = new File("C:\\Tomcat 5.0\\webapps\\TestApp\\myfile.pdf");
    # FileInputStream fis = new FileInputStream(reportFile);
    # byte[] bytes= new byte[128000];
    # int count=fis.read(bytes);
    # try
    # response.setContentType("application/pdf");
    # response.setContentLength(bytes.length);
    # servletOutputStream.write(bytes, 0, bytes.length);
    # servletOutputStream.flush();
    # servletOutputStream.close();
    # }catch(Exception e){}

  • How to view the source code for Native Method

    hi
    i am using some native methods in to my code ;
    can anybody tell me how to view the source code for the same ;
    nik

    Buy/acquire a C/C++/assembly code disassembler and run the shared library through it.

Maybe you are looking for

  • Reports Distribution

    Hi, We have been distributing reports to mutiple destinations for almost six months now without any problems. The volume was low, approximately 2000 pages per day. Now, the volumes hav increased to 15000 and suddenly the report fails to distributes !

  • What does it mean @ in the permit status of a file?

    I have never seen the @ symbol in the status of a file. This is an excerpt of a directory listing in my iMac: ~$ ls -ltr | grep @ -rw-r--r--@ 1 casianorodriguezleon staff 12107 14 nov 10:58 object-design.png -rw-r--r--@ 1 casianorodriguezleon staff 1

  • Passing parameters for events

    Hi, I have a lot of buttons in my jsp page.. I would like to use the same event handler for all of them.. differentiating which one is clicked by means of a parameter.. How do i pass somthin like tat ....! Any hints ! Regards Bharathwaj

  • Max date

    I'm trying to pull records that have the max date from multiple subqueries. I've tried different sql statements, but am not able to get the results I want. I want the last record only from the three rows in the result set (the latest/max date). I'm t

  • Content of Variable

    Hi Expert, I want to see content of variable , but no result by "dbms_output.put_line" when exec procedure. CREATE OR REPLACE PROCEDURE ms_alert_custbr (p_altcd varchar2) IS v_altcomp msaltinval.ms_alt_comp%type; v_altinval msaltinval.ms_alt_inval%ty