New Help with solving runtime errors

HI.
I am from a Microsoft world and I am so used to hitting F1 and using MSDN. I am also a bit of an Oracle developer too. hence my entery into java.
Now, I have started Java I was wondering where I should start to look with this error message:
ExampleApplet.java:41: �N���X actual.OpenlookButton �����������������B
OpenlookButton button3 = new OpenlookButton("Java is Cool!");
Line 41 in ExampleApplet.java is:
OpenlookButton button3 = new OpenlookButton("Java is Cool!");
The OpenlookButton.class is in the same folder as this class. How do I debug into this and find whats going wrong?
I tried the jdb utility yet it said it couldn't find the class file?
Help. You guys know what its like when you're starting out right?
Thanks
ps I'm using Windows 2000,
java version "1.2.2"
Classic VM (build JDK-1.2.2_005, native threads, symcjit)
DOS and notepad. YEEEHAAA!!!!

Hi,
Firstly, why are you using such an old version of Java? Now there is a 1.4 version and you are still using a 1.2 version... I would suggest upgrading unless there is a concrete reason for staying with the old jdk (e.g. you are writing Java within some other system such as Lotus Notes).
I have never seen such a strange error message, it looks like there is something wrong with your character encoding with those strange outputs. Is your system using English or another language? Maybe it is just appearing snafu'd on this forum somehow...?
As far as the line of code you have supplied there is nothing wrong with it that I can see, assuming you have defined the class "OpenlookButton" which you say you have done.
(Upgrading to Java 2 would allow you to use Swing components, which allow a pluggable look-and-feel. Then you can use the JButton class - and any other JComponents - and the user or your application code can set the LookAndFeel to any that is available, including CDE/Open/Motif, thereby eliminating the need to define separate classes for components with different appearances...)
Is the current directory "." (thats a dot on its own) in the classpath? It needs to be otherwise the JVM won't look there to find the classes. Seems strange but when you think about it, it does make sense.
Also the error output lists the OpenlookButton class as being in the "actual" package but you say it is in the same path as the ExampleApplet. Try moving it into a subdirectory named "actual" and try again.
Good luck...
Ben
P.S. There is nothing wrong with a command prompt and notepad! Imho it is much better than using a crappy IDE which formats your code all wrong and leaves you clueless as to what is really going on....
P.P.S. For next time, the more details you post, including source code, the easier it is to help.

Similar Messages

  • Help with a runtime error

    hey guys im getting a runtime error that i can't figure out.
    this is my code
    import java.io.*;
    public class InputOutput
         public static void main(String[] args) throws IOException
              int charCount=0,
                   wordCount=0,
                   nonCharCount=0,
                   lineCount=0;
              BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
              String fileName,outputFile, line;
              do
                   System.out.println("Enter input file name.");
                   fileName = input.readLine();
                   System.out.println("Enter output file name.");
                   outputFile = input.readLine();
                   char [] charArray = new char [26];
                   charArray[0] = 'a';
                   for (int i=1; i<charArray.length; i++)
                        charArray[i] += 'a' + i;
                   int [] countArray = new int [26];
                   try
                        BufferedReader inputFile = new BufferedReader(new FileReader(fileName),1);
                        PrintWriter output = new PrintWriter(new FileWriter(outputFile));
                        line = inputFile.readLine();
                        while(line!=null)
                             String word = new String();
                             char ch;
                             for(int i=1; i<=line.length(); i++)
                                  line = line.toLowerCase();
                                  ch = line.charAt(i);
                                  charCount++;
                                  if(ch>='a' && ch<='z')
                                       word +=ch;
                                       int index = (int)ch - (int)'a';
                                       countArray[index]++;
                                  else
                                       nonCharCount++;
                                       if(word!= "")
                                            output.println(word);
                                            word = "";
                                            wordCount++;
                             line = inputFile.readLine();
                             lineCount++;
                        output.println("Total number of words: "+wordCount);
                        output.println("Total number of lines: "+lineCount);
                        output.println("Total number of characters: "+charCount);
                        output.println("Total number of non-letter characters: "+nonCharCount);
                        for(int i=0; i<charArray.length; i++)
                             output.println(charArray[i] + " " + countArray);
                        output.close();
                        System.exit(0);
                        catch(IOException e)
                             System.out.println(e + ", try again");
                   while(true);
    this is the error that i am getting
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 35
         at java.lang.String.charAt(String.java:460)
         at InputOutput.main(InputOutput.java:52)

    Hi,
    The error is at line 52. You are trying to index an array with an index that is greater than the size of the array.
    /Kaj

  • System recovery fails with C++ runtime error

    My Compaq CQ610-410US running Windows 7  is unusable. When using system recovery, either from CD's or Recovery drive, it fails with C++ runtime library program not found Contact HP Support. EIther way, Windows is loaded and system recovery screens appear. Once I respond to removing all accessories it then fails with the runtime error. Two questions, (1) is there a way around it? (2) will getting new recovery discs from HP even work?
    This question was solved.
    View Solution.

    All I can suggest is to order a set from HP and hope they work. This error is not a common one and the HP supplied recovery discs should work.

  • How do I deal with a Runtime Error on Adobe Acrobat 9.5?

    How do I deal with a Runtime Error on Adobe Acrobat 9.5? The instructions say to contact the support team but I have to pay in order to do so.

    What operating system and what is the statement of the error. Typically you would first run a repair on Acrobat from the help menu (or in Windows you can do that from the Control Panel>Add/Remove Programs).

  • Job DIM_OBSERVER is getting canceled with with a runtime error UNCAUGHT_EXCEPTION

    Dear Experts,
    Job DIM_OBSERVER is getting canceled with with a runtime error UNCAUGHT_EXCEPTION. Below are the details of runtime error.
    Category          
    ABAP Programming Error
    Runtime Errors    
    UNCAUGHT_EXCEPTION
    Except.           
    CX_UJA_ADMIN_ERROR
    ABAP Program      
    CL_UJA_MD_QUERY_OPT===========CP
    Application Component  EPM-BPC-NW-ADM
    Date and Time     
    02.08.2014 23:35:46
    I am unable to find related note and solution for the same. any help would be much appreciated.
    Thanks,
    Akbar.

    Hi Akbar,
    I believe this issue is coming up in BPC.
    But could you please provide some more detailed information like when exactly(after performing which step) is this error occurring?
    BR
    Prabhith

  • I need help with this code error "unreachable statement"

    the error_
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errors
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    public class Tools//tool class
    private int numberOfToolItems;
    private ToolItems[] toolArray = new ToolItems[10];
    public Tools()//array of tool
    numberOfToolItems = 0;
    for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
    toolArray[i] = new ToolItems();
    }//end for loop
    }//end of array of tools
    public int search(int id)//search mehtod
    int index = 0;
    while (index < numberOfToolItems)//while and if loop search
    if(toolArray[index].getID() == id)
    return index;
    else
    index ++;
    }//en while and if loop
    return -1;
    }//end search method
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0;
    int index;
    index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    }//end delete method
    public void display()//display method
    for(int i = 0; i < numberOfToolItems; i++)
    //toolArray.display(g,y,x);
    }//end display method
    public String getRecord(int i)//get record method
    // return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
    }//end getrecod
    }//end class
    Edited by: ladsoftware on Oct 9, 2009 6:08 AM
    Edited by: ladsoftware on Oct 9, 2009 6:09 AM
    Edited by: ladsoftware on Oct 9, 2009 6:10 AM
    Edited by: ladsoftware on Oct 9, 2009 6:11 AM

    ladsoftware wrote:
    Subject: Re: I need help with this code error "unreachable statement"
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errorsThe compiler is telling you exactly what the problems are:
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
    int index;
    index = search(id);  //< -----------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    // <<== HERE where is the return statement?
    }//end delete method
    public String getRecord(int i)//get record method
    // return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
    }//end getrecod
    }//end class

  • DTP run Time Error : Dump: Internal session terminated with a runtime error

    Hi Experts,
    I'm facing a problem during loading data from PSA to DSO from DTP. It gives Dump: "Internal session terminated with a runtime error".
    When i went to PSA and see the no. of data packages, it is 1532.
    Could anybody please help me how to load the data.
    Thanks
    Ajay

    Thanks Srini!!
    the load is running for 15 min and then it is throwing dump without a single package extract.
    Ok...the same I'm also thinking to selective upload but can you please explain me how do i do that as it has only request in PSA.
    and it is a pricing data.
    Thanks
    Ajay

  • Internal session terminated with a runtime error(ITAB_DUPLICATE_KEY)

    Hi All,
    Process Chain is failing While loading data from ODS to Cube iam getting error in DTP level internal session terminated with a runtime error(ITAB_DUPLICATE_KEY).Here my source is CRM.
    Can you please suggest me for this issue.
    Thanks,
    Mahes.

    hi Maheesh,
    Runtime Error ITAB_DUPLICATE _KEY is resulted because of Duplicate Transfer Structures from different Logical Systems.
    You can find the corresponding entries in the table RSISOSMAP ..On executing,we have the option to give the InfoSource name(ISOURCE) for wich the data load got failed with Runtime Error ITAB_DUPLICATE_KEY..
    You can coreect this error by running the Program RSAR_RSISOSMAP_REPAIR in repair mode , the program first checks the RSISOSMAP table and corrects any incorrect entries found. A log is then written for the mappings that were corrected.
    This will solve your problem.
    Please refer to link mention in above thread for more detail i have just summarize the things :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a04c82eb-ec7c-2c10-7fae-ca6e764c483a?QuickLink=index&overridelayout=true
    Thanks,
    Deepak

  • I need your help with solving a non-standard solutions.

    Hello!
    I need your help with solving a non-standard solutions.
    My name is Andrii and I represent the civil charity. Not so long ago, one man gave us the iPhone 4S (as a donation).
    But later - it became known that this iPhone can not work with SIM cards Ukrainian mobile network operators, as it is blocked by Verizon.
    Is there a way to unlock it with your help, and how it can be done?
    I hope for your understanding and assistance in this matter!
    Thank you.

    Contact a third party unlocking service.
    Purchase an unlocking code.

  • Please, could you help with The System Error?

    Hi guys,
    Please could someone help me with The system error: The Parameter is incorrect? which appears on the screen when I open Adobe Photoshop?
    It is Starter edition3.0 and so far it worked ok and suddenly this message haunts my screen. If I clic OK, whole application disappears. I tried hundred times and checked it is 5.1.2600 and my notebook has got Windows XP Profesional.
    Any advice hunging around?
    ThaaankxJ

    Thank you mark, I'll try.
    J
    Date: Fri, 18 Mar 2011 17:17:20 -0600
    From: [email protected]
    To: [email protected]
    Subject: Please, could you help with The System Error?
    Hi orion,
    Sorry that was the impression made by the support agent. If the version of the software that you have is 3.0 or 3.2, then the catalog can be upgraded when you run the trial version of Photoshop Elements. Version 8 had no time limitations, not sure if version 9 will timeout after 30 days or not.
    Just install, and when you launch, Elements will automatically convert the catalog to a format that it can read.
    -Mark
    >

  • New help with my mac air and airport extreme time capsule dont know how to save to time capsule and use as a external hd

    new help with my mac air and airport extreme time capsule dont know how to save to time capsule and use as a external hd would like 2 store my home videos and pictures on the time machine (ONLY) as the MAC AIR has storage space limited space please help. THANK YOU.

    See the info here about sharing or using the TC for data.
    Q3 http://pondini.org/TM/Time_Capsule.html
    It is extremely important you realise.. the Time Capsule was never designed for this.
    It is a backup target for Time Machine.. that is the software on the computer that does backups.. it has no direct connection to the Time Capsule.
    It has no ability to back itself up.. unlike all other NAS in the market. It is therefore likely one day you will lose all your files unless you seriously work out how to backup.
    The TC is slow to spin up the hard disk and fast to spin down. iTunes and iPhoto will continually lose connection to their respective libraries.
    iPhoto in particular is easy to corrupt when you move photos over wireless into the library.. once corrupted all is corrupt. A single photo will ruin it all.. so backup is utterly essential.
    Time Machine cannot do backups of network drives. ie the TC. You will need a different backup software like CCC. You will then need another target to backup to..

  • Could someone help me with a Runtime Error while saving a PDF file?

    While saving a 28 page PDF file in Illustrator today, I got a window saying, "This application has requested the "Runtime" to terminate it in a unusual way." It said to contact the applications support team for more information. I keep getting the same thing each time I try it. Does anyone know how to fix this issue or how I contact the applications support team ?
    Thank you for any insight.
    Pam

    It is a 13.5x11 inch calendar. There are 14 pages with images on them and
    some text. The other pages have text, a grid and a colored background with a
    gaussian blur. I saved each page as an "outline".
    The printer I am using requested I save all pages in a pdf file. I was
    successful in saving all but about six pages, now I can't even open the
    file.
    What happens is... I open Illustrator
                                   I open the pdf file
                                   A window appears that says... Runtime Error,
    This application has requested the Runtime to terminate it in an unusual
    way. Please contact the application's support team for more information.
                                   I select ok
                                   then a window appears that says... Adobe
    Illustrator CS5 has stopped working. A problem caused the program to stop
    working correctly. Windows will close the program and notify you if a
    solution is available.
                                   Then the program closes.
    So far I have not been notified of anything.
    Please let me know if you need more details.
    Thank you so much for helping me with this.
    Pam

  • Needing some help with Time Capsule Error.  New to Apple Support and not super tech smart.

    Can not get the MacBook Pro to back up to Time Capsule.  Can any one help me with the following Error Please?
    The backup disk image “/Volumes/Data/XXXXXXXXXX MacBook Pro.sparsebundle” is already in use.

    We don't see that error much but it is about the easiest to fix.
    Pull the power on the TC.. count to 10. Plug the power back into the TC.
    Viola.. working TC again.

  • Solve Runtime errors 'CX_SY_CONVERSION_NO_NUMBER'

    When I test a subroutine that included in SAPScript,a runtime error occured.Below is the error message.
    Unable to interpret " XXXX.XX " as a number.
    Error Analysis:
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
      caught in
    procedure "SUB_DETAILS" "(FORM)", nor was it propagated by a RAISING clause. Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.The reason for the exception is:
    The program attempted to interpret the value " XXXX.XX " as a number, but
    since the value contravenes the rules for correct number formats,
    this was not possible.
    DATA: GV_AMOUNT TYPE KWBTR.
      READ TABLE IN_PAR WITH KEY NAME =  'FEBSCA-KWBTR'.
    PACK IN_PAR-VALUE TO GV_AMOUNT.
    >>>>> GV_AMOUNT = IN_PAR-VALUE.
    How can i solve this ? Big help needed. Appreciated. Thanks,
    Shehryar

    Hi shehryar,
    if you do a test output in SAPscript forms development in SE71, output fields are filled with X characters regardless if they are numeric.
    If you call a subroutine in SAPScript, the values are passed and the CX_SY_CONVERSION_NO_NUMBER is raised.
    In your subroutine you should be aware that all Sapscript symbols are character-like data and must be converted to numeric representation.
    Try to integrate this subroutine (derived from Padmam's contribution yesterday):
    *&      Form  conv
    *       Try conversion to numeric value
    FORM conv  USING    pv_clike TYPE c
               CHANGING pv_number
                        pv_error TYPE sy-subrc.
      TRY.
          CLEAR pv_error.
          pv_number = pv_clike. "Convert string to number.
        CATCH cx_sy_conversion_no_number.
          pv_error = 1.
        CATCH cx_sy_conversion_overflow.
          pv_error = 2.
      ENDTRY.
    ENDFORM.                    " conv
    Now you can test your form as well as use it.
    Regards,
    Clemens

  • I Need help with the following error:

    Hi, I am getting the following error:
    <b>BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</b>
    I have looked at some of the other threads that deal with this but since I am new to XI I am not sure where to look. I have tried to activate in SXI_CACHE and I get a code of 99 with the following error. I did not get this error in the QAS environment, only when it was moved to Prod. We have cleared and reset all of the caches and am still getting this error when I try to activate in SXI_CACHE:
    <b>E     'STATUSCODE' is not a component of data object 'PAYLOAD'</b>
    Can someone point me in the right direction to fix this? We just moved it to prod and need to get it fixed asap.
    Thanks in advance for all of the help.
    Mike Curtis

    Hi Michael,
    Before SP16:
    the problem should be solved with the help of note 890760. You might find note
    816430 interesting as well, but the first one should help you solve the problem.
    After:
    If those are already in your system, have a look at note 996631. This could be
    the solution.
    Regards and good luck with XI.
    Jaime

Maybe you are looking for

  • Home sharing not working after update to iTunes 12.1

    recenty updated iTunes to 12.1.0.71 64 bit for windows 8.1, and home sharing no longer works with my apple tvs. i have an apple tv 2 with software 7.0.3(6917) and an apple tv 3 aalso on 7.0.3(6917). I have tried the usual troubleshooting. Restoring,

  • HP Deskjet 3050 All-in-One J610 series printer problem

    I can't get anything to print.  I removed the color cartridge and failed to replace it for several days.  The printer was not used during this time.  After replacing the cartridge,  I tried to print a document and  got a message stating no printer wa

  • PI 7.0 Hardware Requirements & Confirguration

    Hello, We are planning to install PI 7.0 on the AIX 5.3.x(64 bit) with database DB2 UDB 8.2.x.(64 bit) for a Sandbox environment. I am new to the XI area. I need some small/detailed information regarding following requirements( from PI BASIS point of

  • Is there a way you can select a display option for Safari pages on the OS5?

    The tabbed version of Safari for the ipad2 is nice but the old one is better. Is there a way we can select a display option that lets a user toggle between the two?

  • N97 : written text disappearing in Calender / Mess...

    I have a N97 black UK vodafone V12  Has anybody solved or know why while typing either in calender or texting, the whole page suddenly disappears and you lose what you have written? frustrating especially when updating / amending existing notes you l