Javax.crypto.* is not present in JDK 1.4 plz help

Hi,
Currently i am using jdk 1.4 and I am trying to compile the security applications which are using javax.crypto.* package.
Hence it is giving error so can any one please help me how can I include this package into jdk 1.4 or is there any other alternative for it.
Need help immediately.
It would be apprciable if i get an immediate reply.
Thanks in advance.

What is a "marker" interface?
Marker Interface pattern
c2.com - Marker Interface
experts.about.com - Marker Interfaces
The Purpose of the Marker Interface
Maximize your Design ROI with Marker Interfaces and JavaDoc

Similar Messages

  • Class javax.crypto.SecretKey not found in import.

    While compilation i am getting this error.
    Class javax.crypto.SecretKey not found in import.
    I am not able to figure it out . Please help me for that.
    Is it related to some classpath setting.

    This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.

  • We are not able to execute below procedure, plz help me ASAP.

    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS,
    V_VITALCHARTING VARCHAR2,
    V_DOCIDPATIENTS VARCHAR2,
    v_fromdate varchar2,
    v_todate varchar2) AS
    D1 VARCHAR2(500);
    D2 VARCHAR2(500);
    G1 VARCHAR2(500);
    R1 VARCHAR2(500);
    R2 VARCHAR2(500);
    R3 VARCHAR2(500);
    R4 VARCHAR2(500);
    R5 VARCHAR2(500);
    H1 VARCHAR2(500);
    H2 VARCHAR2(500);
    V_COUNT NUMBER;
    RC VARCHAR2(100);
    RMI VARCHAR2(100);
    RMAX VARCHAR2(100);
    R12 VARCHAR2(500);
    REQ NUMBER;
    V_MAX number;
    v_idcount number;
    RSEQ NUMBER;
    RCH VARCHAR2(500);
    BEGIN
    INSERT INTO TEMPDATA
    SELECT ROWNUM G, TIME1
    FROM (SELECT distinct TO_CHAR(H.RECORDEDDNT, 'mm/dd/yy hh24:mi:ss') TIME1
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    and TO_DATE(to_char(h.recordeddnt, 'DD/MM/YYYY'),
    'DD/MM/YYYY') BETWEEN
    TO_DATE(v_fromdate, 'DD/MM/YYYY') AND
    TO_DATE(V_TODATE, 'DD/MM/YYYY'));
    SELECT MAX(ID) INTO V_MAX FROM TEMPDATA;
    V_IDCOUNT := 0;
    WHILE V_IDCOUNT < V_MAX loop
    FOR J IN (SELECT id, ROWNUM G, vdate time1
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    D1 := D1 || 'COL' || J.G || ',';
    D2 := D2 || '''' || J.TIME1 || '''' || ',';
    END LOOP;
    D1 := SUBSTR(D1, 1, LENGTH(D1) - 1);
    D2 := SUBSTR(D2, 1, LENGTH(D2) - 1);
    DBMS_OUTPUT.PUT_LINE(d1);
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    G1 := 'INSERT INTO GETDATA2 (IDSLNO,idcount,' || D1 || ') VALUES(' || RSEQ || ',' ||
    V_IDCOUNT || ',' || D2 || ')';
    --EXECUTE IMMEDIATE G1;
    DBMS_OUTPUT.PUT_LINE(d1);
    DBMS_OUTPUT.PUT_LINE(SUBSTR(D2, 1, LENGTH(D2) - 1));
    DBMS_OUTPUT.PUT_LINE(G1);
    EXECUTE IMMEDIATE G1;
    FOR K IN (SELECT id, ROWNUM G, vdate time2
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    FOR I IN (select s.*, rownum hslno
    from (SELECT v.CHARTNAME,
    v.PARAMETERNAME_CS,
    ' ' || v.PARAMETERNAME PARAMETERNAME,
    TO_CHAR(H.recordeddnt, 'mm/dd/yy hh24:mi:ss') TIME1,
    CASE
    WHEN IDSLNO_GN5029 IN (1040, 1041) THEN
    CASE
    WHEN TO_NUMBER(d.recordedvalue) <
    TO_NUMBER(D.MINVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'L')
    ELSE
    CASE
    WHEN TO_NUMBER(d.recordedvalue) >
    TO_NUMBER(D.MaxVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'H')
    ELSE
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'N')
    END END ELSE d.recordedvalue END IMAGECHAR,
    d.minvalue,
    d.maxvalue,
    D.UOMCODE
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    ORDER BY V.DISPLAYORDER_CS, V.DISPLAYORDER
    -- v.PARAMETERNAME_CS,v.PARAMETERNAME
    ) s
    where s.time1 = k.time2) LOOP
    select count(1)
    into v_count
    from GETDATA2 d
    where d.PARAMETERNAME_CS = i.PARAMETERNAME_CS
    and PARAMETERNAME = i.PARAMETERNAME
    and idcount = v_idcount;
    IF V_COUNT = 0 THEN
    RCH := I.CHARTNAME;
    R1 := 'COL' || K.G;
    R2 := '''' || I.PARAMETERNAME_CS || '''' || ',';
    R3 := '''' || I.PARAMETERNAME || '''' || ',';
    R4 := '''' || I.IMAGECHAR || '''';
    RC := '''' || I.CHARTNAME || '''' || ',';
    RMI := '''' || I.minvalue || '''' || ',';
    RMAX := '''' || I.maxvalue || '''' || ',';
    R12 := '''' || I.UOMCODE || '''' || ',';
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    H1 := 'INSERT INTO GETDATA2 (IDSLNO,UMCODE,idcount,CHARTNAME,minvalue,maxvalue,PARAMETERNAME_CS,PARAMETERNAME,' || R1 || ')' ||
    ' values(' || RSEQ || ',' || R12 || v_idcount || ',' || RC || RMI || RMAX || R2 || R3 || R4 || ')';
    EXECUTE IMMEDIATE H1;
    ELSE
    R5 := 'COL' || K.G;
    R4 := '''' || I.IMAGECHAR || '''';
    H2 := 'UPDATE GETDATA2 SET ' || R5 || '=' || R4 ||
    'WHERE PARAMETERNAME_CS=' || '''' || I.PARAMETERNAME_CS || '''' ||
    ' AND ' || 'PARAMETERNAME=' || '''' || I.PARAMETERNAME || '''';
    EXECUTE IMMEDIATE H2;
    END IF;
    END LOOP;
    end loop;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || ' (' || minvalue ||
    ' -- ' || maxvalue || ') ' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue != 0
    and maxvalue != 0;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue = 0
    and maxvalue = 0;
    UPDATE GETDATA2 S
    SET S.PARAMETERNAME_CS = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY PARAMETERNAME_CS)
    and idcount = v_idcount;
    UPDATE GETDATA2 S
    SET CHARTNAME = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY CHARTNAME)
    and idcount = v_idcount;
    UPDATE getdata2 s
    set s.parametername = ' PARAMETER'
    where s.parametername is null
    AND S.PARAMETERNAME_CS IS NULL;
    v_idcount := v_idcount + 8;
    D1 := null;
    d2 := null;
    end loop;
    for i in (SELECT G.PARAMETERNAME_CS, G.IDSLNO
    FROM GETDATA2 G
    WHERE G.PARAMETERNAME_CS IS NOT NULL) LOOP
    INSERT INTO GETDATA2
    (IDSLNO, PARAMETERNAME)
    VALUES
    (I.IDSLNO - 1 + 0.5, I.PARAMETERNAME_CS);
    END LOOP;
    update GETDATA2 h set h.PARAMETERNAME_CS = null;
    update GETDATA2 h set h.chartname = rcH;
    INSERT INTO GETDATA1
    SELECT CHARTNAME,
    PARAMETERNAME_CS,
    PARAMETERNAME,
    COL1,
    COL2,
    COL3,
    COL4,
    COL5,
    COL6,
    COL7,
    COL8,
    COL9,
    COL10,
    MINVALUE,
    MAXVALUE,
    UMCODE
    FROM GETDATA2
    ORDER BY IDSLNO;
    OPEN RPT_CURSOR FOR
    SELECT * FROM GETDATA1;
    END;
    CREATE OR REPLACE PACKAGE "RPT_PACKAGE"
    as
    type RPT_RESULTS is REF CURSOR;
    type RPT_VARRAY is VARRAY(2000) of VARCHAR2(2000);
    END RPT_PACKAGE;
    Execute
    declare
    type my_newcursor IS REF CURSOR;
    begin
    GETCHART(my_newcursor,'General Vital Sign','1145561',sysdate-1,sysdate);
    end;

    Parwez wrote:
    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    see a picture of my car.
    my car won't go.
    tell me how to make my car go.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • I was reset my phone n its not working??? so plz help me???

    i was reset my phone n its not working??? so plz help me???

    What is it not doing? You say you did a reset, what is displayed on the screen?

  • I can not find radio in music app ,, plz help me in this

    i can not find radio in music app ,, plz help me in this

    but itune radio was there till yesterday ,,, but suddenly when i update it to ios7.1 it disappear

  • Javax.crypto classes not found using JDK1.4

    We're trying to upgrade to using JDK 1.4, in which the Java Cryptography Extensions are incorporated into the JDK. However, iPlanet does not seem to be able to find the classes that make up the extension.
    If I write a simple Java app that creates a java.crypto.SecretKey, and run it from the command line on our web server machine using our Java 1.4 JDK, it runs fine.
    If I adapt the same program into a simple servlet and run it from within iPlanet, it fails with a ClassNotFound error trying to find javax/crypto/NoSuchPaddingException.
    I've done a lot of variations trying to hone in on the problem, but I'm running out of options. Does anyone have any information or experience with this particular problem?
    We're running iPlanet 6.0 SP5 and the JDK is build 1.4.1-b21.

    David,
    I'm also facing the same problem, none of the javax.crypto classes are found.When I'm running the Encryption code it's working standlone and in Tomcat 4.0 but in IPlanet it's giving me ClassNotFound.
    I have added jce.jar in the classpath as mentioned and it's getting picked.
    But you have mentioned some start-jvm files, I'm not able to find these files.
    Can u please summarize what all settings you did?.
    As it's urgent if possible mail me at,
    [email protected] (OR)
    [email protected]
    Sachin

  • Mesagge and safari not presenting in my iphone 4s,any help?

    From last 2 days my Iphone 4s not did not message and safari,plz help me

    Did you already try the suggestions mentioned in this article?
    Wi-Fi settings grayed out or dimIn rare instances, the setting to turn on Wi-Fi on your iPhone, iPad, or iPod touch may appear "grayed out" or dim.  If this occurs, you will not be able to turn  Wi-Fi on. You may see the ...
    If this does not help, try to set it up as new device, explained here:
    How to back up your data and set up as a new device
    If still no luck, you'll have to get it serviced:
    Apple - Support - Service Answer Center

  • HT2534 My Apple ID is not working.....plz help

    My Apple ID is not working I made it yesterday using my PC .......plz help.......

    Try sign in to iTunes and App Store
    Settings>iTunes and App Store>Apple ID

  • HT201210 im trying to restore my iphone 4 but getting error message as could not be contacted or temporarily unavailable plz help

    im trying to restore my iphone 4 but getting error message as could not be contacted or temporarily unavailable plz help

    Hey santhosh.pv,
    We have a few articles that can help troubleshoot the alert message in iTunes you see when you are trying to restore your iPhone 4. You can resolve many restore issues using the troubleshooting steps documented here:
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    The next article is the companion of the more general article above. Follow the above article first. If, after following that article, the issue persists, continue with this article:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/ts3694
    Cheers,
    David

  • My macbook cam is not working after i reinstalled it plz help?

    i just reinstalled my macbook os x 10.8.2  but i found out that my camera is disable not working with FaceTime and messenger  plz kindly assist me on how to make my cam start working again please someone should help me ...........

    Are you sure you are running 10.8.2 or is it 10.8.5. There was an issue with 10.8.5 and the recent supplemental update should fix that camera problem.
    If it is 10.8.2, I'm not sure what is wrong. Might try an SMC or NVRAM reset.

  • Reports are not called from form in browser plz help

    Hi,
    I have installed 9iAS+8.1.7 database on the same machine with NT4 server.My system's forms(.fmx) are running well but my reports are not running from my main form.i call reports from the
    from as,
    Run_Product(reports,'..\iReports\xglrxx12.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);
    Actually want to know the report's setting when calling from the from in a browser(environment variables,virtual paths etc.).
    My database is installed in drive E:\8idb_home\ and 9iAS is on
    G:\9iAS_home\.My systems .fmx & .rep files are in "iforms" and "ireports" folder respectively.
    Plz help!
    Many thanks!

    Hi,
    First of all thanks to Vincent Botteman for solving the prob.
    Yes when i changed my call of run_product by excluding the path i have specified when calling from form it then makes a result.
    Also specified the entry of your reports .rep files by giving path in reports60_path registery variable as,
    Run regedit-->Hkey_Local_Machine-->Software-->Oracle here give the full path of your .rep files as an first entry in reports60_path variable.And finally not mention the path when calling reports from form as,
    Run_Product(reports,'xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Correct way.
    Run_Product(reports,'..\iReports\xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Wrong way.
    Regards!

  • CS5 Styles not Showing up in LIVE VIEW PLZ HELP

    i looked at every other forum and cant find the anwser to my questions!!!! the styles show up until i click live view then they disappear!!!???? plz help
    <link href="css/print.css" rel="stylesheet" type="text/css" media="print">
        <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
    those are the style links
    let me know what you need to help me!!!! plz

    let me know what you need to help me!!!! plz
    98% of layout/display problems are caused by malformed code.
    1) Ensure that your code is valid (error free).
         Code Validation Tools
         CSS - http://jigsaw.w3.org/css-validator/
         HTML - http://validator.w3.org/
    2) Check that all paths to images, external style sheets and scripts are correctly pointing to your site folder and not to a file:/// on your local hard drive.
    3) If that doesn't help, upload your problem page to a remote server space and provide us with a link so we can see it in our browsers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Problm with tiledlayer object not showing on screen!! plz help

    im making a small chess game my chess board is made of Tiledlayer and my chess elements are also Tiledlayer wheneever a move is made i have to make changes to my chess elements cells. but i make changes and they appear on my tiledlayer object but dont show on screen...
    when during game when i press FIRE_KEY first time my code goes to a thread and starts a rectangle which blinks and when i press fire again the tiled_layer is updated such that my chess element is moved from selected position to desired position.... but i dont c the change on screen....
    here is the complete code of chess board class...
    * @(#)ChessCanvas.java
    * @author Aaqib
    * @version 1.00 1007/9/19
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class ChessCanvas extends GameCanvas implements Runnable{
         private  final int SCREEN_X = getWidth();
         private  final int SCREEN_Y = getHeight();
         private int boardSize = 128;
         // starting point of our chess game
         private int startX = (SCREEN_X - boardSize)/2;
         private int startY = (SCREEN_Y - boardSize)/2;
         // create bounding rectangle to know the end of chess board;
         private int endX = startX + boardSize;
         private int endY = startY + boardSize;
         private static final byte BOARD_COLUMN = 8;
         private static final byte BOARD_ROWS = 8;
         private static final byte TILE_DIMENSION = 16;
         // current X, Y position of cursor
         private byte currentCursorRow;
         private byte currentCursorColumn;
         // the row column which r selected
         private byte selectedRow;
         private byte selectedColumn;
         // the current pixel lcoations
         private int currentPixelX;
         private int currentPixelY;     
         // check if selected. convert curser to red
         private boolean selected = false;
         // background color
         private int white = 0xFCFCFC;
         // the chess board tiled Layer
         private TiledLayer tiledLayer;
         // the chess elements
         private TiledLayer chessElements;
         // layer Manager to add tiles and sprites;
         private LayerManager layerManager;
         // the cursor which selects and moves the objects
         private Sprite cursor;
         // matrix representing the chess board;
         private final byte chkBoard[][] ={
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
         private final byte elements[][] = {
                                              {6,2,5,4,3,5,2,6},
                                              {1,1,1,1,1,1,1,1},
                                              {0,0,0,0,0,0,0,0},
                                              {0,0,0,0,0,0,0,0},     
                                              {0,0,0,0,0,0,0,0},
                                              {0,0,0,0,0,0,0,0},
                                              {7,7,7,7,7,7,7,7},
                                              {12,8,11,10,9,11,8,12}          
         private Graphics g;
         // main constructor
        public ChessCanvas() {
             super(true);
                  setFullScreenMode(true);
                  init();
         * Initialize all GUI components
        public void init(){
          try{
                 Image spriteImg = Image.createImage("/cursor.png");
                 cursor = new Sprite(spriteImg,15,15);
                 cursor.setRefPixelPosition(startX - TILE_DIMENSION, startY - TILE_DIMENSION);
                Image img = Image.createImage("/board.png");
                Image elmt = Image.createImage("/chess.png");
                tiledLayer = new TiledLayer(BOARD_COLUMN, BOARD_ROWS, img, TILE_DIMENSION, TILE_DIMENSION);
                chessElements = new TiledLayer(BOARD_COLUMN, BOARD_ROWS, elmt,16,16);
                layerManager = new LayerManager();           
                currentCursorRow = 5;
                currentCursorColumn = 6;
                for (int y = 0; y < BOARD_COLUMN; y++){
                     for (int x = 0; x < BOARD_ROWS; x++){
                          int grid = chkBoard[y][x];
                          int data = elements[y][x];
                          tiledLayer.setCell(x,y, grid);
                          chessElements.setCell(x,y,data);
                g = getGraphics();
                // sets the position of chess board in center
                tiledLayer.move(startX, startY);
                chessElements.move(startX,startY);
                layerManager.append(cursor);
                layerManager.append(chessElements);
                layerManager.append(tiledLayer);
                moveCursor(currentCursorColumn * TILE_DIMENSION, currentCursorRow * TILE_DIMENSION );
          catch(Exception exception ){
                 System.out.println("exception in init method  --  "+exception.toString() );
        public void start(){
             Thread thread = new Thread(this);
             thread.start();         
        public void run(){
             while (true){
                  // check game state;
                  //checkState();
                  // check the userinput
                  checkUserInput();              
                  updateScreen(g);
                  flushGraphics();
                  try{
                       Thread.currentThread().sleep(300);
                  }catch(Exception exception){}
        private void checkUserInput(){
             int keyState = getKeyStates();
             switch(keyState){
                  case FIRE_PRESSED:
                       if (selected){
                            selected = false;
                            // make the move
                            logging ("selected >>  row  "+selectedRow+"  column   >>  "+selectedColumn +"\n");
                            logging ("current >>  row   "+currentCursorRow+"  column   >>  "+currentCursorColumn +"\n");
                             int selectedItem = chessElements.getCell(selectedRow,selectedColumn);
                             logging("selected item  >>  "+selectedItem+"\n");
                             chessElements.setCell(currentCursorRow,currentCursorColumn,selectedItem);
                             chessElements.setCell(selectedRow,selectedColumn,0);
                             chessElements.setCell(6,6,7);
                             logging ("selected >>  row  "+selectedRow+"  column   >>  "+selectedColumn +"\n");
                            moveCursor(0,0);
                       }else{
                            selected = true;
                            selectedRow = currentCursorRow;
                            selectedColumn = currentCursorColumn;
                            chessElements.setCell(6,6,7);
                       animateSelectedItem();
                  break;
                  case UP_PRESSED:
                       if (!cursor.isVisible())
                            cursor.setVisible(true);          
                       if (currentCursorRow == 1){
                            if (currentCursorColumn == 8){
                                 currentCursorColumn =1;
                                 currentCursorRow = 8;
                                 currentPixelX = -112;
                                 currentPixelY = 112;
                                 //moveCursor(-112,112);
                            }else{
                                 currentCursorColumn++;
                                 currentCursorRow = 8;
                                 currentPixelX = TILE_DIMENSION;
                                 currentPixelY = 112;
                                 //moveCursor(TILE_DIMENSION,112);
                       else{
                            currentCursorRow--;
                            currentPixelX = 0;
                            currentPixelY = -TILE_DIMENSION;
                            //moveCursor(0,-TILE_DIMENSION);
                       moveCursor(currentPixelX,currentPixelY);
                  break;
                  case DOWN_PRESSED:
                       if (!cursor.isVisible())
                            cursor.setVisible(true);
                       if (currentCursorRow == 8){
                            if (currentCursorColumn == 8){
                                 currentCursorColumn =1;
                                 currentCursorRow = 1;
                                 currentPixelX = -112;
                                 currentPixelY = -112;
                                 //moveCursor(-112,-112);
                            }else{
                                 currentCursorColumn++;
                                 currentCursorRow = 1;
                                 currentPixelX = TILE_DIMENSION;
                                 currentPixelY = -112;
                                 //moveCursor(TILE_DIMENSION,-112);
                       else{
                            currentCursorRow++;
                            currentPixelX = 0;
                            currentPixelY = TILE_DIMENSION;
                            //moveCursor(0,TILE_DIMENSION);
                       moveCursor(currentPixelX, currentPixelY);
                  break;
                  case LEFT_PRESSED:
                       if (!cursor.isVisible())
                           cursor.setVisible(true);
                       if (currentCursorColumn == 1){
                            if (currentCursorRow == 1){
                                 currentCursorColumn =8;
                                 currentCursorRow = 8;
                                 currentPixelX = 112;
                                 currentPixelY = 112;
                                 //moveCursor(112,112);
                            }else{
                                 currentCursorColumn = 8;
                                 currentCursorRow--;
                                 currentPixelX = 112;
                                 currentPixelY = -TILE_DIMENSION;                       
                                 //moveCursor(112,-TILE_DIMENSION);
                       else{
                            currentCursorColumn--;
                            currentPixelX = -TILE_DIMENSION;
                            currentPixelY = 0;
                            //moveCursor(-TILE_DIMENSION,0);
                            moveCursor(currentPixelX, currentPixelY);
                  break;
                  case RIGHT_PRESSED:
                       if (!cursor.isVisible())
                           cursor.setVisible(true);
                       if (currentCursorColumn == 8){
                            if (currentCursorRow == 8){
                                 currentCursorColumn =1;
                                 currentCursorRow = 1;
                                 currentPixelX = -112;
                                 currentPixelY = -112;
                                 //moveCursor(-112,-112);
                            }else{
                                 currentCursorColumn = 1;
                                 currentCursorRow++;
                                 currentPixelX = -112;
                                 currentPixelY = TILE_DIMENSION;
                                 //moveCursor(-112,TILE_DIMENSION);
                       else{
                            currentCursorColumn++;
                            currentPixelX = TILE_DIMENSION;
                            currentPixelY = 0;
                            //moveCursor(TILE_DIMENSION,0);
                       moveCursor(currentPixelX,currentPixelY);
                  break;
        public void updateScreen(Graphics g){
             g = getGraphics();
             // set the background color
             g.setColor(white);
             g.fillRect(0, 0, getWidth(), getHeight());
              // draw the board         
             tiledLayer.paint(g);
             // paint the cursor
             cursor.paint(g);
             // chess elements
             chessElements.paint(g);
        private void moveCursor(int x , int y){
             //logging(" cursor  >>   "+cursor.getFrame());
             // red cursor selected
             if (selected){
                  //logging("red");
                  cursor.setFrame(1);
             }else{
                  // normal green cursor moving
                  //logging("green");
                  cursor.setFrame(0);
             cursor.move(x,y);
         * Animate the selected Item. runs a saperate thread;
        private void animateSelectedItem(){
             cursor.setVisible(false);
             new Thread(new Runnable() {
                  Graphics g = getGraphics();
                  public void run(){
                           while(selected){
                            try{
                                 Thread.currentThread().sleep(600);
                            }catch(Exception exception){
                                 System.out.println("exception in animating sprite");
                             g.setColor(0xF71302);
                             g.drawRect((startX+ (selectedColumn * TILE_DIMENSION))-16,
                                            (startY+ (selectedRow * TILE_DIMENSION))-16, 14, 14 );
                            flushGraphics();
             }).start();
        private void logging (String str){
             System.out.print(str);
    }plz help me....
    thanks :(

    {color:#000080}I don't know whether that's the only thing wrong here, but I see 3 calls to getGraphics(). The documentation for javax.microedition.lcdui.game.GameCanvas.getGraphics() says:{color}
    A new Graphics object is created and returned each time this method is called; therefore, the needed Graphics object(s) should be obtained before the game starts then re-used while the game is running.
    {color:#000080}-- Your call to getGraphics() in updateScreen(Graphics g) will return the reference to the local variable represented by the parameter g, which will be out of scope as soon as the method returns.
    -- Your call to getGraphics() in animateSelectedItem() assigns the reference to a newly declared local variable, which too will be out of scope when the method returns. (But this method includes flushGraphics() so just possibly this g is flushed to the display.)
    db{color}

  • Not getting the chat  application?Plz Help

    Hai,
    Plz help me to solve this...This is my code:
    Correct me
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.messaging.channels.NetConnectionChannel;
                private const sAddress:String = "rtmfp://stratus.adobe.com";
                private const dKey:String = "Developer Key" ;
                private var nc:NetConnection;
                private var myPeerID:string;
                private var farPeerID:String;
                private var sendStream:NetStream;
                private var recvStream:NetStream;
                private function initConnection():void
                    if(t1.text)
                        farpeerID = t1.text;
                    nc = new NetConnection;
                    nc.addEventListener(NetstatusEvent.NET_STATUS,ncStatus);
                    nc.connect(sAddress+dKey);
                private function ncStatus(event:NetStatusEvent):void
                    trace(event.info.code);
                    myPeerID = nc.nearID;
                    t1.text = myPeerID;
                private function initSendstream():void
                    trace("initSendstream");
                    sendStream = new Netstream(nc,NetStream.DIRECT_CONNECTIONS);
                    sendStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    sendstream.publish("media");
                    var sendStreamClient:Object = new Object();
                    sendstreamClient.onPeerConnect = function(callerns:Netstream):Boolean
                        farPeerID = callerns.farID;
                        trace("onPeerConnect "+farPeerID);
                        return true;
                    sendStream.client = sendstreamClient;
                private function initReceiveStream():void
                    recvStream = new NetStream(nc,farPeerID);
                    recvstream.addEventListener(NetStatus.NET_STATUS,netStatusHandler);
                    recvstream.play("media");
                    recvStream.client = this;
                public function receiveSomeData(str:string):void
                    t3.text = str;
                private function sendSomeData():void
                    sendStream.send("receiveSomeData",t2.text);
                private function netStatusHandler(event:NetStatus):void
                    trace(event.info.code);
            ]]>
        </mx:Script>
        <mx:TextInput x="22" y="10" width="235" id="t1"/>
        <mx:Button x="265" y="10" label="Connect" click="initConnection"/>
        <mx:TextInput x="22" y="40" id="t2"/>
        <mx:Button x="190" y="40" label="send Data" click="sendSomeData()"/>
        <mx:TextInput x="22" y="70" id="t3" width="252"/>
        <mx:Button x="22" y="100" label="initSendStream" click="initSendstream()"/>
        <mx:Button x="174" y="100" label="initReceiveStream" click="initReceivestream();"/>
    </mx:Application>
    ERRORS:
    1046: Type was not found or was not a compile-time constant: NetStatus.    p2p/src    p2p.mxml    line 63    1266493948995    203
    1046: Type was not found or was not a compile-time constant: Netstream.    p2p/src    p2p.mxml    line 40    1266493948980    201
    1046: Type was not found or was not a compile-time constant: string.    p2p/src    p2p.mxml    line 55    1266493948980    202

    ActionScript is case-sensitive and spelling-sensitive.  line 40, it's "NetStream" not "Netstream".  line 55, it's "String" not "string".  line 63, it's "NetStatusEvent" not "NetStatus".  and as i believe i pointed out in a different thread, there must be a slash between "rtmfp://stratus.adobe.com" and your developer key.

  • I only recieve n not able to send text messages,,plz help

    i only recieve n not able to send text messages,,plz help

    Try this: Go to Settings > General > Reset > Reset Network Settings. After that, check if you can already sends SMS

Maybe you are looking for

  • Itunes wont update from version 10.6.3 to 11.1. help!

    i am unable to update my itunes. it is saying that my version (10.6.3) is the current version. when i go to plug in my iphone 5, it will not connect to itunes unless my itunes has been updated to 11.1 i went and tried to download the updated itunes f

  • File name in control record of Idoc

    Hello All, I have come across a requirement for File to IDOC scenario where File name picked from dynamic configuration is to be stored in control record of IDOC. As file name is more than 45 chars long, I need to use a long field. Can you I use ARCK

  • Problem with tcode FMCACOV "No valid configuration found"

    Hi experts i'm trying to prove this transaction: Tcode FMCACOV (program FMCA_COV) "Business Partner Overview" the system spits out this message: "No valid configuration found" Message no. FMCA_COV004 can you help me? thanks!

  • Increased Font size in JTable 's printout

    Hi everybody, Can anybody help me out. When I use Java Print classes to print a Jtable the Font size appears to be 125% bigger.

  • Displaying BLOB image by using ADF Faces

    Hi all, I digged the forum but couldn't find any satisfied answer about displaying BLOB images by using ADF Faces. I have insterted POJO object to Oracle database but couldn't find any way to display blob (in java byte [] ) data in POJO. I have read