A debug trouble, need you help!~~

Hi,
I want to debug TTY. And I try to using commonds as following:
C:\jdb -classpath F:\com\sun\tools\example\debug\tty TTY
C:\jdb -classpath F:\com\sun\tools\example\debug\ttycom.sun.tools.example.debug.TTY But I got the erro:"Exception in thread "main" java.lang.NoClassDefFoundError: F:\com\sun\tools\example\debug\tty"
I must make some mistakes. And how do I should imput my commond?
Thank you!
Duanyh
SJTU

Hi,
I want to debug TTY.OK... you want to debug the com.sun.tools.example.debug.tty.TTY class.
Please excuse me if this is going over work you have already
done... I decided to start from the beginning for the benefit
of anyone else reading this thread.
NOTE: If you are following these example command lines, remember that
the separator char for directories on CLASSPATH is : on Unix
systems and ; on win32 systems:
1) Unpack the JPDA examples:
cd $JAVA_HOME/demo/jpda
jar -xvf examples.jar2) Compile the example code for debugging:
javac -g -classpath "$JAVA_HOME/lib/tools.jar:." com/sun/tools/example/debug/tty/TTY.java3) Create a HelloWorld.java class to be a victim for this debug session:
cat > HelloWorld.java
public class HelloWorld {
    public static void main(String args[]) {
        System.out.println("Hello, world!");
}Compile the HelloWorld class:
javac -g HelloWorld.java4) Start up com.sun.tools.example.debug.tty.TTY and have it debug
the HelloWorld class, using commands like this:
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8211,server=y,suspend=n -classpath "$JAVA_HOME/lib/tools.jar:." com.sun.tools.example.debug.tty.TTY HelloWorld
Initializing jdb ...
stop in HelloWorld.mainDeferring breakpoint HelloWorld.main.
It will be set after the class is loaded.
runrun HelloWorld
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint HelloWorld.main
Breakpoint hit: "thread=main", HelloWorld.main(), line=3 bci=0
3            System.out.println("Hello, world!");
main[1] 5) At this point, the TTY class is busy debugging the HelloWorld
class. Since the TTY class was started with the appropriate
-Xdebug -Xrunjdwp:... flags, you can now attach to that process
on the pre-arranged port (8211 in this example) and examine it.
I suggest you do this from a separate command window:
jdb -connect com.sun.jdi.SocketAttach:port=8211
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
threadsGroup system:
  (java.lang.ref.Reference$ReferenceHandler)0x295       Reference Handler          cond. waiting
  (java.lang.ref.Finalizer$FinalizerThread)0x296        Finalizer                  cond. waiting
  (java.lang.Thread)0x297                               Signal Dispatcher          running
Group main:
  (java.lang.Thread)0x1                                 main                       running
  (java.lang.UNIXProcess$3)0x299                        process reaper             running
  (com.sun.tools.example.debug.tty.VMConnection$1)0x29a output reader              running
  (com.sun.tools.example.debug.tty.VMConnection$1)0x29b output reader              running
  (java.lang.Thread)0x29c                               event-handler              cond. waiting
Group JDI [27940859]:
  (java.lang.Thread)0x29f                               JDI Target VM Interface    running
  (java.lang.Thread)0x2a0                               JDI Internal Event Handler cond. waiting
suspendAll threads suspended.
thread 0x1main[1] where
  [1] java.io.FileInputStream.readBytes (native method)
  [2] java.io.FileInputStream.read (FileInputStream.java:194)
  [3] java.io.BufferedInputStream.read1 (BufferedInputStream.java:220)
  [4] java.io.BufferedInputStream.read (BufferedInputStream.java:277)
  [5] sun.nio.cs.StreamDecoder$CharsetSD.readBytes (StreamDecoder.java:408)
  [6] sun.nio.cs.StreamDecoder$CharsetSD.implRead (StreamDecoder.java:450)
  [7] sun.nio.cs.StreamDecoder.read (StreamDecoder.java:182)
  [8] java.io.InputStreamReader.read (InputStreamReader.java:167)
  [9] java.io.BufferedReader.fill (BufferedReader.java:136)
  [10] java.io.BufferedReader.readLine (BufferedReader.java:299)
  [11] java.io.BufferedReader.readLine (BufferedReader.java:362)
  [12] com.sun.tools.example.debug.tty.TTY.<init> (TTY.java:525)
  [13] com.sun.tools.example.debug.tty.TTY.main (TTY.java:850)At this point, your are debugging the JVM running com.sun.tools.example.debug.tty.TTY.main. You can
set breakpoints, resume the debug session, and so forth.

Similar Messages

  • I need you help urgently my job is on the line

    I really need you help it is very urgent as my job is in trouble! In may my I phone got lost I had all back up on my me account and Managed to save my contact list on my I pad however the next day after my I phone got stolen , the mobile me was closed and when I started using I cloud I could not find my list.
    I never update my I pad to I tunes but recently when I got my I phone 5 and my mini I pad by mistake when I was synchronizing all the list got deleted ! Please help me I need to get it bk! If you can manage to find it somewhere please help me find the contact list.
    Thank you

    If you were syncing your contacts with your computer via MobileMe then your contacts should be in the contact manager you sync with on your computer.
    If not, and you haven't maintained offline backups of your contacts, or didn't move your account to iCloud before last June, and haven't ever synced your devices to your computer then your data is gone. It can't be retrieved because it doesn't exist anywhere else, as you haven't followed Apple's directions for backing up and syncing.

  • JAXB  I realy need you help

    JAXB I realy need you help
    Dear friend
    We have next structure of XML file
    <order>
    <entities>
    <entity>1</entity>
    <entity>2</entity>
    <entity>3</entity>
    </entities>
    </order>
    according to xml we generate XSD
    after that use xjc.exe for generate JAXB Objects
    Class Order
    Entities entities
    Class Entities
    List<Entity> entity
    but I would like to be like that
    Class Order
    List<Entity> entity
    Class Entities make transient or use JAXB Custome mapping or other decision
    Thanks

    that is the standard way jaxb generates the model classes. i believe there is some sort of experimental "use simple mappings" switch (probably a vendor extension) which makes the xml files cleaner (similar to your desired implementation), but i don't have much experience with it.

  • My ipad says : this ipad cannot be backed up because there is not enough icloud storage available . you can manage your storage in sttings ..... i dont understand .. i need you help me please

    my ipad says : this ipad cannot be backed up because there is not enough icloud storage available . you can manage your storage in sttings ..... i dont understand .. i need you help me please

    Hi jasmin,
    Did you read what Demo wrote? He wasn't saying he had a problem. He was responding to the OP who had a problem, and was providing a solution. Follow what Demo said to do....
    Cheers,
    GB

  • Please help me... I reset the setting of my ipadmini then it turned black for 4hours now and it never came back to the way it was before. i need you help quick. thanks in advance.

    Please help me... I reset the setting of my ipadmini then it turned black for 4hours now and it never came back to the way it was before. i need you help quick. thanks in advance.

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.
    Message was edited by: Diavonex

  • HT1937 my apple iphone 3g.unlock iphone,i need you help me how to back normal ios

    my apple iphone 3g.unlock iphone,i need you help me how to back normal ios...pls answer me urgent.thank you

    Sorry, but your post is unclear. I don't know what you mean by "back to normal iOS". Do you mean that you jailbroke your iPhone? If that's what you mean and you now wish to remove the jailbreak, you can try putting the iPhone into DFU mode and see if that will let you restore and remove the jailbreak:
    http://osxdaily.com/2010/06/24/iphone-dfu-mode-explained-and-how-to-enter-dfu-mo de-on-your-iphone/
    Some jailbreaks cannot be removed and in some cases will permanently disable your iPhone. If that happens to you, then you will have to buy a new iPhone; Apple will provide no support, warranty or out-of-warranty, for a jailbroken iPhone. You're on your own from here. We can provide no further help with a jailbroken iPhone in these forums.
    If that's not what you mean, please post back and clarify. You may wish to try posting in your native language so that your question is more clear.
    Regards.

  • How to get app.processId from Guided Procedures? Please I need You help

    Hi everyone, I need your help, I need to recover the processId once time the Procees was started in Guided Procedures
    I found this link from maintenance process in Guided Porcedures administration
    http://host:port/webdynpro/dispatcher/sap.com/cafeugpui~rt/Runtime?app.processId=IDnumber
    the parameter I need is IDnumber, I dont know if it is possible with web dynpros or with web services please I need you help
    How Can I do this?
    Thank you very much my friends
    Regards from Mexico
    Atte Israel

    Hi,
    I am not sure about the version. But you can follow the steps below.
    1. Create a Web Dynpro Poroject (Ideally create a DC , but if you don't have NWDI setup a project will do).
    2. Add reference to com.sap.security.api.jar and sap.comcafeugpapi.jar
    3. Under WebDynpro References -> Library References add sap.com/cafeugp~api
    4. Put following code in wdDoInit()
    public void wdDoInit()
        //@@begin wdDoInit()
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         IWDMessageManager msgMgr= wdComponentAPI.getMessageManager();
         try{
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
         IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
         Date startDate = new Date(110,1,1); // Start date as 01-Jan-2010
         Date endDate= new Date(111,12,31); // End date as 31-Dec-2011
         IGPProcessInstanceInfo[] array = rtm.getRunningInstances(GPSearchRole.SEARCH_ROLE_OWNER, startDate, endDate, userContext);
         for (int i=0; i<array.length; i++){
         String instanceId = array<i>.getProcessInstanceID();
    //        Write logic to pass the instance ID to the RFC
    msgMgr.reportSuccess("Instance id =" + instanceId);
         catch(Exception ex)
         msgMgr.reportException(ex.getLocalizedMessage(),false);     
        //@@end
    Let me know if you face any issues.
    Thanks
    Prashant

  • Hi i need you help, I have lost my iphone yesterday . Still my mobile is ringing. I want to know the location of my phone.

    Hi i need you help,
    I have lost my iphone yesterday .
    Still my mobile is ringing. I want to know the location of my phone.
    I did't installed the Findmyiphone App.
    I have purcheased last month only.
    Please Please Please help me.

    Hi I have't sync my device with Icloud till now.
    so I am not able to login with Apple id.
    Any other posibilities?

  • Need you help !!! -- Which ECC table stores Function Area?

    Dear experts:
    I am new to Finance and here has one question need your help:
    We need to get Function Area in one of our report. Is function area master data or transaction data? Which table stores this field? To get this field, which fields should be the primary keys while reading in the table (like cost center or some other fields)?
    Any post would be appreciated and thank you all in advance!
    Best Regards.
    Tim
    Moderator: Please, read the rules of SDN and search before posting

    You can refer to table EKKO and field WKURS. This field in purchase order header table stores the exchange rate for the GR made against this Purchase order.
    Amit G

  • Need you help !!! -- Convertion from Char to Date

    Dear experts:
    I am new to abap and here is one thing need your help:
    Currently I have a char type field defined in the source table, after I retrive this field into my work area, I need to convert it to Date type and then calculate the last day of this date.
    for example: WA_TEST-CHAR = '20100801'. This value in orignal ECC table is char type.
    Then How can I convert this value to a date type, and calculate its last day?
    My expected result is "20100731".
    BTW, does anybody know how to convert a date type field to a number type field like To_number() or something?. If I need to get the period between 2 different date, how can I get this?
    Any post will be appreciate and thank you all in advance!
    Best Regards
    Tim
    Moderator message: sorry, date conversion and date calculation are very basic and FAQs, please search for available answers, also read ABAP online documentation.
    locked by: Thomas Zloch on Aug 23, 2010 9:56 AM

    Hi,
    For your question:
    BTW, does anybody know how to convert a date type field to a number type field like To_number() or something?. If I need to get the period between 2 different date, how can I get this?
    use this FM FIMA_DAYS_AND_MONTHS_AND_YEARS.
    regards,

  • Hello, I need you help, my iPhone4 16Gb can't active by the itunes, serial number is 82124S4EA4S. Thank you so much.

    Hello, I'm come from VietNam, I had to bought an iPhone4 16Gb from a guy living in VietNam for ~8 month ago. My problem is: my iphone4 can't active by the iTunes. I have to check the IMEI and serial number and it say to me my iPhone was changed the hardware, My iPhone4's serial number is 82124S4EA4S. The IMEI on the sim-tray is: 012755007227817, but I checked by software is: 012429002982061. If you can, please help me how to active it. I don't have to much money to buy a new phone that I buy my old iPhone from another one. I don't want it die now T_T. Thank you so much for your help.
    I'm checked by the software:
    I'm checked by the website with the IMEI on sim tray:

    I bought it too long time there force I can't give back to him. I'm using my iPhone4, but yesterday, it's need to active, so I need help to resolve this problem with my iPhone, T_T. I don't know how to hack it because I'm used it when I bought it still today and I don't change anything on iPhone. Please tell me how to active it.

  • How to use JDI handle event, need you help!~

    Hi,
    In our recent project, I need listen some event such as ClassPrepareEvent, MethodEntryEvent using JDI and handle it. I am trying to mend the TTY and let it
    do something simple when MethodEntryEvent occur.
    I just add a print line in the method methodEntryEvent in TTY.java. But I noticed that this method is not invocated after I input "run" commond. I don't konw why? And how can I listen this event? And when the methodEntryEvent method in TTY will be invocated?
    Anyone can help me ???
    Thank you!!!
    PS: methodEntryEvent method is post as follow:
    public void methodEntryEvent(MethodEntryEvent me) {
    Thread.yield(); // fetch output
    //notice:
    //i want print this sentens when every method entry.
    System.out.println("Method Entry:");
    StringBuffer buffer = new StringBuffer("\nMethod Entered: ");
    buffer.append(me.method().declaringType().name());
    buffer.append(".");
    buffer.append(me.method().name());
    buffer.append(" ");
    out.print(buffer.toString());
    otherEvent(me);
    Duan
    SJTU

    You must enable a MethodEntryRequest before any MethodEntryEvent will
    be reported.
    In the jdb/TTY reference debugger, use the 'trace methods [thread]'
    and 'untrace methods [thread]' commands to turn tracing on or off
    for method entry and exit.
    Once you request MethodEntry/Exit notification, then the methodEntryEvent
    handler in TTY.java will be called and you will see the println() you
    added to the code.

  • I need you help.

    MS-6351(intel 815)
    i need On-Board Audio Driver,but i don't know where i can download it.
    somebody help me?  thank you very much.

    http://www.msi.com.tw/program/support/driver/dvr/spt_dvr_list.php?part=1&kind=3&CHIP=3&ID=1
    scroll down a bit,found that:
    Sigmatel AC'97 Sound Driver  
    Support model  MSI Intel 815/815E/815EP based motherboards  
    Description  
    Sigmatel Sound driver 9721  
    Hope it works,often different sound chips are used on boards.

  • Need you help !!! -- How to set PACKAGE SIZE in CURSOR?

    Dear experts:
    Does anybody know how to set the package size if you use cursor in your abap program?
    My scenario is to select all the data from MARA table in which the data volumn is very big, and then process for some specific logic. When I try to select them into one internal table or use CURSOR without package, my abap program will abort after running for around 1 hour. So I was thinking if I can use cursor and set the PACKAGE SIZE like 10,000 and process the data by batch.
    Here is my sample code:
    OPEN CURSOR: CUR_MARA_TBL FOR
    SELECT * FROM MARA.
    DO.
    FETCH NEXT CURSOR CUR_MARA_TBL INTO CORRESPONDING FIELDS OF WA_MARA_TBL.
    IF sy-subrc = 0.
    ......Detail logic......
    ENDIF.
    ENDDO.
    I would appreciate if anybody can let me know how to set the package size based on the sample code above, or any webpage/article about that.
    Any reply would be appreciated and thank you all in advance!
    Best Regards.
    Tim
    Moderator message: please study F1 help for FETCH statement.
    locked by: Thomas Zloch on Sep 8, 2010 4:10 PM

    The Spark List's layout property has the requestedRowCount and requestedMinRowCount properties.
    You can either set a new layout property on your List like this:
    <s:List>
            <s:layout>
                <s:VerticalLayout requestedMinRowCount="1" />
            </s:layout>
        </s:List>
    or reskin the List and modify the VerticalLayout in your copy of ListSkin.
    Jason

  • Need you help !!! -- datasource field to ECC table mapping for 0material

    Dear experts:
    Recently we need to get a quick turnaround on the fields we would be bringing into BW through standard extractors for the tables MARC and MBEW. My idea is to look at those master data extractors like 0MATERIAL, 0PLANT and then try to find how fields in datasource mapped to ECC table.
    So now I have 2 questions need your suggestion:
    1. Is my way above feasible or any other way to get the fields mapping information for one specific table (Not datasource) ?
    2. For 0MATERIAL_ATTR, I can neither find the table of origin for those datasource fields in SAP Library, nor in Tcode LBWE (Seems LBWE only for transaction data?). Can anybody give me a link for the fields mapping of 0MATERIAL and 0PLANT? or let me know where I can find those mapping information?
    Any reply would be appreciated and thank you all in advance !
    Best Regards
    Tim

    Well, the idea is simple. If you are using master data, then the easiest way is to find out which table is the master data stored. For eg. Material master data is stored in MARA table. Therefore 0MATERIAL_ATTR fetches data from the MARA table.
    The next option is to check the function module.
    1) Goto RSO2, and enter the data source name->display. The system wil throw a warning giving you the FM.
    2) For eg. 0MATERIAL_ATTR will throw the error "DataSource 0MATERIAL_ATTR is extracted using functional module MDEX_MATERIAL_MD".
    3)Go to SE37, and put the FM->display. Then go to the tables tab. You will see tables like BIW_MARA_S. The middle term is usually the table.
    Another option is go to table RSGENFIELDMAP and put the field in the field selection. This would give the mapping.
    Regards.

Maybe you are looking for

  • Photoshop CC 2014 incompatible with Wacom tablets?

    Hey everyone, so I'm having a lot of issues with my Wacom tablets and PS CC 2014. So, I have two tablets hooked up to my computer (and before you ask, no, the issues don't stem from two tablets being connected to the computer. I already tested that.)

  • Can I Install an msata SSD in Envy 14-2010TX (QB422PA)

    I have an Envy 14-2010TX Beats Edition (Model QB422PA#AB5).  As the current WD 750GB HDD is quite slow, I was planning on installing a msata (say 80GB) and using Intel Smart Response Technology to provide SSD caching on the larger HDD.  I need the ca

  • Exception handling in App. package PeopleCode

    Hi, I am accessing a table that is on remote database using DBLink for an update/insert operation using SQLExec. I am trying to implement exception handling to account for the scenario where the remote database is offline so that transaction can cont

  • Export DNG file with copyright information

    When importing my Canon CR2 RAW files, I convert them to DNG files into a folder with that days date, and automatically add my copyright information on import. If there are any photos I want to process further I'll export them to a working folder, st

  • Fixing text size so it doesn't mess with layout?

    In IE7, if the text size is set on anything but "smallest", some things go to two lines. For example, if you go to www.earthenexposure.com , I'd like to keep everything from "sculptures" to "about" on one line. The same can be said with the navigatio