Could I set breakpoint in the code of core Java classes in JDK?

The programme never stop at this kind of breakpoint when debugging.
How can I do that?

It is MyEclipse I used.
It remind me someting like "no line number information".
or it is the jdk version problem ?

Similar Messages

  • When I send messages off-line, they enter in the addressed mailbox with the date and hour which I've clicked "Send later". How could I set up to the real time?

    When I send messages off-line, they enter in the addressed mailbox with the date and hour which I've clicked “Send later”. How could I set up to the real time?

    What you say about Send Later timestamp is correct.
    When you click Send or Send Later a time is set regardless of when you actually sent the Send Later email.
    Please voice your vote at this link:
    https://bugzilla.mozilla.org/show_bug.cgi?id=560901
    You will need to logon/register.

  • I ran a virus/trojan fix and this is what it said it could not repair something in the main library core or something like that.  What do I do?  The problem seems to be with safari?

    I ran a virus/trojan fix and this is what it said it could not repair something in the main library core or something like that.  What do I do?  The problem seems to be with safari?

    I ran the utility disk and this is what it said.
    Warning permission differ Applications/Safari drwxr-xrx they are -rwxr-xr system/livrary Cores has been modified and will not be repaired.
    Permission apllication differ on System/livrary/Pr or could be -rw-r--r-- they are rwxr-xr-x Application/iTune be droxr-xr-x they are rwxr-xr-x
    Then I hit fix permissions and it said this
    Warning SUID file Systm/Library/Core has been modified will not be repaired
    I also downloaded Bitdefender Virus Scanner and it found nothing.

  • How to execute the ldapsearch command by java class in linux os?

    hi,all
    I want to query the users by ldapsearch command. I call the command in my java class. In windows, It work well. But in linux , there haven't any result. My test program is following:
    ===============
    import java.util.*;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.LineNumberReader;
    public class test{
    public static Vector queryAllUser(){
    try{
    Vector v=new Vector();
    String cmdquery="ldapsearch -h localhost -b\"dc=metasphere,dc=com\" \"uid=*\" uid ";
    //String cmdquery="ls -la";
    Process process=Runtime.getRuntime().exec(cmdquery);
    System.out.println("cmdquery:"+cmdquery);
    InputStreamReader ir=new InputStreamReader(process.getInputStream());
    LineNumberReader input = new LineNumberReader (ir);
    System.out.println("input="+input);
    String line;
    while ((line = input.readLine ()) != null){
    System.out.println("Line:"+line);
    if(line.startsWith("uid")){
    String temp=line.substring(line.indexOf(":")+1,line.length());
    v.add(temp);
    return v;
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("runtime error:"+e.getMessage());
    return null;
    public static void main(String argv[]){
    Vector v=queryAllUser();
    for(int i=0;i<v.size();i++){
    System.out.println((String)v.get(i));
    ================
    In fact, when I execute the command: ldapsearch -h localhost -b"dc=metasphere,dc=com" "uid=*" uid
    in linux prompt, the screen show the results:
    version: 1
    dn: uid=toppymgt,dc=metasphere,dc=com
    uid: toppymgt
    dn: uid=qutao,dc=metasphere,dc=com
    uid: qutao
    dn: uid=zz,dc=metasphere,dc=com
    uid: zz
    dn: uid=z,dc=metasphere,dc=com
    uid: z
    dn: uid=admin,dc=metasphere,dc=com
    uid: admin
    dn: uid=alan,dc=metasphere,dc=com
    uid: alan
    dn: uid=misssixty,dc=metasphere,dc=com
    uid: misssixty
    dn: uid=channelv,dc=metasphere,dc=com
    uid: channelv
    What's reason? Please help me. Thx.

    If there have a bugs in Linux OS. Please help me!

  • Deploying the JSPs, Servlets and Java class files

    Hello All,
    I'm very new to the Oracle 9i AS. We are using Version 1.0.2.2.
    How do we deploy the JSPs, Servlets, and Java class files (simple class files, not EJBs)?
    plese give us the procedure and stpes how to deply or the links for the same.
    Thanks,
    Santhosh.

    Hi
    I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
    To make sure that your servlet engine is working, try
    http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
    Hope this will help
    Regards
    Kumaran

  • Where can I download the api's of java classes ?

    I'd like to download all the api's of java classes. I only found a lot of pages, but i don't like to download one after other for a very long time.
    Where I can find a complete document of java classes api in a single document?
    When I say api of java classes I mean the name of all java classes , it's methods, atributes, what the class does, and so on...
    For the JAVA 1.5.0 of course...
    Thanks.

    Go to http://java.sun.com/j2se/1.5.0/download.jsp and click the Download link where it says J2SE 5.0 Documentation.

  • Could anyone tell me whats the code means??

    Hi,
    Could anyone tell me explanation of the code below:
    player1.placeArmy(world.southAmerica().territory1());
    all I know is that it is calling the method of an objects. I am not really sure about whats inside the bracket. How could such argument have the dot notation format?
    Furthermore, could anyone have some advices about references to the multiple classes code example??

    player1.placeArmy(world.southAmerica().territory1());player1 is a variable of some type. This type has presumably a method called placeArmy, which takes a parameter.
    world is another variable of some type. This type has presumably a method called a method southAmerica(),
    which returns a value of a type, which has a method territory1(), whose return value is provided as teh paramtere value to the method call mentioned above.
    Another useful example as a food for thoughts could be:
    Object o = new Integer(3);
    System.out.println(o.toString());

  • Setting breakpoint on any method call of a class

    Using the new (or old) debugger, is it possible to set a breakpoint that will stop on any method invocation of a class?
    I am debugging the processing of a purchase order and want the debugger to stop on any method call to CL_PO_HEADER_HANDLE_MM, which has 113 methods, so setting a breakpoint in each method is way too tedious.
    Do you know of a way to do this in one go?

    Activate Layer-Aware Debugging for class CL_PO_HEADER_HANDLE_MM, and then set breakpoint on statement CALL METHOD.
    I tried for CL_GUI_ALV_GRID, and it worked. I am on 702 release.

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Displaying the output from a java class executed from W/I another class

    I have compiled a java class, but I have run into a problem executing the class. I have read the posts and still have not solved the solution. I have tried to get the output of the Process by using "proc.getOutputStream().toString()", however it displays it in binary (ex. java.io.BufferOutputStream@48eb2067). If anyone can provide any assistance I would greatly appreciate it. Or if you could tell me if I'm on the right track or not. Thanks ALL. Here is a code segment:
    int truncStart = s.indexOf(".java");
                   s = s.substring(0,truncStart);
                   String[] command2 = {"java","c:/"+s};
                   try
                   //JOptionPane.showMessageDialog(null,"Exec. File "+s, "Exec. File : ",JOptionPane.ERROR_MESSAGE);
                   proc = Runtime.getRuntime().exec(command2);
                   JOptionPane.showMessageDialog(null,"Output: "+proc.getOutputStream().toString(),"Output"
    ,JOptionPane.ERROR_MESSAGE);
                   }

    You have to read the stream, like:
    InputStream stream = proc.getOutputStream();
    // now use methods on stream, such as read() to read the characters/lines - or wrap it in another line-friendly stream - see the java.io.* classes - keep reading until you get an end-of-stream indicator, depending on the API you end up using.

  • How can I either move or view the source of a JAVA CLASS user object?

    I am using Oracle 8i and I have the following JAVA CLASS objects in my database. I need to move some of these objects to a different database.
    1) How can I do this?
    2) How can I view the JAVA source code since these are classes?
    My knowledge of Oracle is limited. I have searched and searched and I can't find the answer. Any help would be greatly appreciated
    SELECT object_name, object_type
    FROM user_objects
    WHERE object_type IN ('JAVA SOURCE', 'JAVA CLASS', 'JAVA RESOURCE')
    ORDER BY object_type, object_name;
    OBJECT_NAME OBJECT_TYPE
    /d082321a_DpsJarStaticFilename JAVA CLASS
    DirHelperStatic JAVA CLASS
    DirHelperStatic$1 JAVA CLASS
    DpsJar JAVA CLASS
    DpsJarException JAVA CLASS
    DpsJarStatic JAVA CLASS
    FilenameFilterImpl JAVA CLASS
    FtpClient JAVA CLASS
    FtpClient$InputStreamProxy JAVA CLASS
    FtpClient$OutputStreamProxy JAVA CLASS
    FtpClientStatic JAVA CLASS
    FtpException JAVA CLASS
    FtpReply JAVA CLASS
    FtpTest JAVA CLASS
    LoadXml JAVA CLASS
    LoadXmlStatic JAVA CLASS
    UrlFileUtils JAVA CLASS
    Utils JAVA CLASS
    dir JAVA CLASS
    Thanks,
    Brian

    The source far java class objects that are not derived from java source objects
    (which is the case here, and is typically the case, such as when one loads
    classes into the database using loadjava on a jar that contains only .class
    files) does not exist in the database (just as it does not exist in a jar which
    contains only .class files). So there is essentially no way to view the source, short of extracting the bytecodes and using some decompiling tool. I don't recall what methodologies exist for extracting bytecodes in 8i. As for transferring
    the classes to another database, the standard Oracle import/export tool can do this.

  • Get the relative path for java class

    How to get Relative path for java class which is inside in web-inf directory in webapps

    ajay.manchu wrote:
    Hi gimbal2,
    My Requirement is i need to run a java class from batch file,when i created batch file in that i need to mention the complete path of the java class,so instead of mentioning that i want to provide only java class name,thats why i asked that one..
    can u help me regarding that....
    Thanks in advanceI wonder how that would work then. Let's take a fictive example. You have a class com.mycompany.myapp.Foo. This would mean that the class is stored in some directory like this:
    c:/webrootdir/myapp/WEB-INF/classes/com/mycompany/myapp/Foo.classTo be able to run such a class from the commandline using Java, you would have to invoke this command:
    java -cp c:/webrootdir/myapp/WEB-INF/classes com.mycompany.myapp.FooHow would knowing the exact path to this class help you?

  • Set NDValue when the NDType is user defined class

    Hi
    Environment:
    JDeveloper 10.1.3.1.0
    Data model: Toplink-POJO
    User interface ADF-JSF
    My question:
    I have to insert in a table that has only two fields that are of type Integer.This fields are forenign keys.
    I have created in a EJBLocal a method that takes two parameters of type A and B. A and B are classes that correspond to two other related tables.
    How can I bind this two parameters in the page defenition.In other words how can I set the value for the NDValue attribute. I can do this if the NDType is String or Integer etc. I tried to use a bean to store the values, but this ended in failure.
    Any idea?
    Help me!
    Thanasi

    Hi,
    you do this similar to what Susan Duncan describes for complex types in WebServices
    http://susanduncan.blogspot.com/2006/09/dealing-with-complex-input-params-in.html
    The difference though is that you access the binding layer and set two objects as arguments to your method. The role of the managed bean is to "parse" the obejct to types that can be used with JSF input fields
    Frank

  • Setting the message parameter in java class

    Hi!
    I have a resource bundle with a message that includes a parameter.
    my.message.key=Part1 {0} Part2
    I am able to fill this parameter when using this message in jspx page like:
    <h:outputFormat value="#{res['my.message.key']}"
      rendered="#{userInfo.authenticated}"
      escape="false">
    <f:param value="SomeValue"/>But when I try to get this message in a backing bean I just can't find a way to set this parameter value.
    I'm using JSFUtils.getStringFromBundle for all my messages without parameters but can't find a way for messages with parameters. Can someone please tell me how do I set my parameter value (I know this can't be this difficult)?
    Thanks!
    BB

    java.text.MessageFormat.format("Part1 {0} Part2", new Object[] { "SomeValue" }) will produce "Part1 SomeValue Part2".

  • The 'rewrite 1 core api class every day' Thread

    as we all know, if you want something doing properly, you've gotta do it yourself
    in light of this - I thought rewriting Javas entire core api (so it was done properly) would make quite a fun Thread :P
    now, this being a Game Development forum - I thought a good place to start would be in a graphics oriented class that everyone will have used....
    * @(#)DisplayMode.java     1.3 01/12/03
    * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
    * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    package java.awt;
    public final class DisplayMode
        private Dimension size;
        private int bitDepth;
        private int refreshRate;
        public DisplayMode(int width, int height, int bitDepth, int refreshRate)
            this.size = new Dimension(width, height);
            this.bitDepth = bitDepth;
            this.refreshRate = refreshRate;
        public int getHeight()
            return size.height;
        public int getWidth()
            return size.width;
        public final static int BIT_DEPTH_MULTI = -1;
        public int getBitDepth()
            return bitDepth;
        public final static int REFRESH_RATE_UNKNOWN = 0;
        public int getRefreshRate()
            return refreshRate;
        public boolean equals(DisplayMode dm)
            return (getHeight() == dm.getHeight()
                && getWidth() == dm.getWidth()
                && getBitDepth() == dm.getBitDepth()
                && getRefreshRate() == dm.getRefreshRate());
        public int hashCode()
            return getWidth() + getHeight() + getBitDepth() * 7 + getRefreshRate() * 13;
    //and the smaller, faster version...
    package java.awt;
    public final class DisplayMode
        public final int width;
        public final int height;
        public final int bitDepth;
        public final int refreshRate;
        public DisplayMode(int width, int height, int bitDepth, int refreshRate)
            this.width = width;
            this.height = height;
            this.bitDepth = bitDepth;
            this.refreshRate = refreshRate;
        public int getHeight()
            return height;
        public int getWidth()
            return width;
        public final static int BIT_DEPTH_MULTI = -1;
        public int getBitDepth()
            return bitDepth;
        public final static int REFRESH_RATE_UNKNOWN = 0;
        public int getRefreshRate()
            return refreshRate;
        public boolean equals(DisplayMode dm)
            return (height == dm.height
                && width == dm.width
                && bitDepth == dm.bitDepth
                && refreshRate == dm.refreshRate);
        public int hashCode()
            return width + height + bitDepth*7 + refreshRate*13;
    }25th Jan 2003
    abu,

    m'kay...
    i suppose you could do that...
    anyway, i'm not good with this 'keyword' stuff and
    all.../me wonders why you are posting here at all :D
    but wouldn't final mean that you cannot change taht
    variables value later...yup
    of course you could say that you don't want to, and
    that nobody needs to...well yeah... when classes are immutable (as the DisplayMode class is)
    its values are, by definition, unchangable.
    but why are ther these set methods then?there are no 'set' methods - DisplayMode is an immutable class.
    >
    this public thing i'm also not sure about.
    in this class you may go public, but some classes user
    should NOT have ability to set value of variable
    directly.the only reason they are public, is because they are final (or should be atleast :P).
    I wouldn't make them public otherwise.
    Also, the only reason the getXXX methods exist, is it conform to the original spec. of the DisplayMode class. (and the 'standard' or having get methods for public attributes - Dimension,Rectangle,Point etc all do it)
    maybe it would be better to stick with protected... ?as markuskidd has pointed out - this class is final, it cannot be extended, hence protected means nothing.
    >
    othervise it's a good idea.
    if you get a bunch of classes that have been
    perfected, then maybe sun will one day revise your
    classes and replace these old crapier ones.gotta find 1 to do 2morrow now :P (though I doubt this will make any difference to Sun, they simply don't care about correct code)

Maybe you are looking for