Need suggestion regarding simulation of Java Card using a floppy

Hi All,
I am working on a project wherein I have to simulate a Java Card application using a floppy. I am writing my own Card Terminal and CardTerminalFactory. Thats what I have started working on. Will that serve the purpose or do I have to think about some other approach like just overriding the cardInserted method of CTListener class? I want to achieve communication between the host application and the floppy(which is my java card) Please advise.
I would like to thank DurangoVa and Nilesh for helping me out sorting out the error in running the converter.
Thanks in advance

Are you referring to a Floppy diskette drive ?

Similar Messages

  • Why do we need IDE or tools for java card programming?

    Hi,
    I am a newbie to java card, using java card kit tools themself, we can test and burn the code into card right?
    then why do we need IDE for java card, please correct me , if i am wrong,
    Thanks in advance,
    Sri.

    Dear Sri,
    We have compiler, linker etc for every language starting of from C or C++ or Java. JDK has all the tools necessary to develop and run a Java program. Similarly Java Card Development Kit has all the tools for developing and deploying a Java Card applet. But what an IDE does is too integrate all these tools and make it easier for the JavaCard programmer to develop his applets. Just like Eclipse is used for Java applet development.And not everytime the code is burned to the card. Its only during masking code is burned to the card, i.e if u can call it burning. Masking makes an applet permanent on the card.

  • Need suggestion regarding File compression and splititng

    Hi,
    I want to split and compress the big files into small chucks. On later any standard zip utility i.e. winzip, 7z etc can merge(extract) all the chunks to generate the original file. I am looking for any java library which provide the split and compression functionality.
    As Java also supports in built compression utility. Should I use those library or any other open source is available to do this? I welcome your suggestion regarding how can I start.
    Thanks

    If you're just looking for something to be used internally, it'd be pretty simple:
    1. Open your source InputStream.
    2. Create a standard read/write loop to pump the stream.
    3. Add a counter that determines how much you've pushed into your current target. After you reach a certain value, close your current target, create a new target stream, and reset the counter.
    4. Conclude by closing your source and your current target.
    For compression, you can use the built-in GZIPOutputStream or a third-party library of your choice. I usually find GZIP sufficient for my needs.
    Of course, if you want the output to be compatible with other programs like 7-Zip, you've got a lot more work on your hands complying with the file format spec. :)

  • Simulator for java card

    hi
    i am new to java card technology...i am writing the applets in netbeans using java card plugin....the problem is i m not able to simulate the applet..it is showing build successfully, but wen i run the app it is showing nothing.....so can anyone suggest me a suitable simulator for the same....

    Hi,
    I assume you are after details on how to use the simulators? There are examples and documentation with the JC specifications and developer kit. Both of these are available from the Sun website [http://java.sun.com/javacard/].
    If you are after details on how to develop your own, the JC specifications outline the requirements for the JCRE and JCVM that you can use to implement a simulator.
    Cheers,
    Shane

  • Need help for equipments for java card with RFID technology .

    I 'm doin a project using java card with RFID technology.Can ne one give me exact equipments for java card reader & writer for RFID technology?
    I need to buy these things from UK.Can ne one provide me some product list & as well as the exact pricelist?
    plz reply me asap.

    I 'm doin a project using java card with RFID
    technology.Can ne one give me exact equipments for
    r java card reader & writer for RFID technology?I guess with "RFID" you are referring to "contact-less javacards"?
    If yes, one keyword for you is "Mifare", a industry standard for smartcards with dual interface (contact-based and contactless).
    Jan

  • Beginner's Question on simulation of java card application

    Hi,
    I am trying to run a basic Java card application.
    To simulate the java card application, I created jcwde.app and tried C:\>jcwde -p 9025 jcwde.app
    I got and exception like:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: markHeap
    at com.sun.javacard.impl.NativeMethods.markHeap(Native Method)
    at javacard.framework.Dispatcher.cardInit(Dispatcher.java:188)
    at javacard.framework.Dispatcher.main(Dispatcher.java:63)
    at javacard.framework.JCWDEDispatcher.main(JCWDEDispatcher.java:28)
    at com.sun.javacard.jcwde.Main.run(Main.java:85)
    at com.sun.javacard.jcwde.Main.main(Main.java:148)
    Can anyone help me to find out the reason for this exception?
    The content of jcwde.app is
    // applet AID
    com.sun.javacard.installer.InstallerApplet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0x8:0x1
    wallet.Wallet
    Thanx in advance.
    anju

    I see terms like ...
    Core Java: The main libraries.
    JDK: (J)ava (D)evelopement (K)it) - AKA: (S)oftware (D)evelopement (K)it although the terms are not exactly synonomous
    J2EE:(J)ava 2 (E)nterprise (E)dition (builds on the J2SE with additional librarities for true business application building)
    J2SE: (J)ava 2 (S)tandard (E)dition (The core libraries for general Java program developement, w/o the extra stuff that is in the J2EE
    Go to java.sun.com and check out the tutorials, the readme files that come with the downloads, the release notes, etc ... HTH

  • Need suggestion regarding Layout Manager using Swing in Java

    I have developed a swing application where i am having problem with selecting the right layout manager.
    I am attaching the file where it contains the method for addingComponents to the Content Pane. But, the code that i have written
    contains lot of spaces between first panel and second panel and so forth.
    Please suggest.
    <<Code>>
    public void addComponentsToPane(Container contentPane) {
              this.contentPane = contentPane;
    //          File Panel
              JPanel jfile1panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              JPanel jfile2panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              JPanel jfile3panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              JLabel jfile1 = new JLabel("Select File:");
              jtfile1 = new JTextField(50);
              jbfile1 = new JButton("Button1");
              jfile1panel.add(jfile1);
              jfile1panel.add(jtfile1);
              jfile1panel.add(jbfile1);
              jbfile1.addActionListener(this);
              JLabel jfile2 = new JLabel("Select File:");
              jtfile2 = new JTextField(50);
              jbfile2 = new JButton("Button2");
              jfile2panel.add(jfile2);
              jfile2panel.add(jtfile2);
              jfile2panel.add(jbfile2);
              jbfile2.addActionListener(this);
              JLabel jfile3 = new JLabel("Select File:");
              jtfile3 = new JTextField(50);
              jbfile3 = new JButton("Button3");
              jfile3panel.add(jfile3);
              jfile3panel.add(jtfile3);
              jfile3panel.add(jbfile3);
              jbfile3.addActionListener(this);
              //Button Panel
              JPanel jbuttonpanel = new JPanel();
              jbuttonpanel.setLayout(new FlowLayout(FlowLayout.CENTER));
              JButton jbcmd1 = new JButton("Submit");
              JButton jbcmd2 = new JButton("Cancel");
              jbuttonpanel.add(jbcmd1);
              jbuttonpanel.add(jbcmd2);
              jbcmd1.addActionListener(this);
              jbcmd2.addActionListener(this);
              //Content Pane               
              contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
              contentPane.add(jfile1panel);
              contentPane.add(jfile2panel);
              contentPane.add(jfile3panel);
              contentPane.add(jbuttonpanel);
    }

    But, the code that i have written contains lot of spaces between first panel and second panel and so forth.use pack(), see if it makes a difference
    as you're using FlowLayout, make the frame not resizable

  • Forte Migration - Need Suggestion regarding Forte Migration.

    Hi friends,
    I need some suggestion in designing GUI.
    we have an application designed on mainframes and also in forte. And lots of users life the mainframes, since they have been using for long time and it is easy for data entry and it is faster and by hitting F2/F4 keys the data entry people finish the work fast and they is incentive to do fast and more.
    And we have the same application in Forte too, Forte GUI design is also great, it provides lots of data compared to mainframes, but little slower and it cannot be done in the same speed as mainframes.
    In such a situation, if you have to migrate what technology would you opt and how to think about converting the console based forte application, which also provides in data entry and provides lots of information.
    And it is process oriented, where we could like complete one step before going to other step and also go and modify the data entered in step1. Example, while entering the telephone order, after validating customer details, we would like to provide telephone services. But we should be also able to modify the customer information.
    The reason I gave the example before, if you think about using J2EE and provide Web browser interface, which would be best and cut lots of cost and time on deployment (usually in case of Forte console based application), but major draw back would be we cannot control the users activity and you cannot back and forth and update the data. (Think about lot of Tab in Forte application.).
    So, the need is for thin client and lots of Tabs and user should be able to go back and forth and real fast application client like mainframes to enter lots of data fast and provider look up for validations.
    How would you do migration for such a application ?
    1.     J2EE, how would you think about providing user interface. (web browser or java console application using swing) ? Did any body of you done using swing.
    2.     .NET application. (client using ASP.NET with C# for business logic/middle tier)
    Please give me some suggestion and how did you migrate under such circumstances.
    I know, it is difficult to suggest without seeing the application, but please give me the high level idea. May be you much also faced similar situation.
    Thanks in advance.

    NET, Swing, Web - all provide options to allow back and forth moving from one tab to the other.
    However, No matter how fast the screens are in web, they are a fraction of a second slower when the browser renders the screen.
    This is not controlled by programming and it is the browser that takes time. In such scenario, going for Swing may be a better option
    All of them support the shortcut keys- Going to Web - you may need to forgo some of the function keys - like f5 for refresh.
    You can also introduce numbers in front of values in combos - for easy input of data.
    We have experience in migrating thick client to web and thick client to thick client. Please contact me if you need more info.
    Amit Raj
    [email protected]

  • Needs suggestion the best way database insertion using OSB

    Hi all, again and again I need your suggestion. Which is the best way for writing data to database using OSB in few tables as fastest as possible (speed consideration)?, should I make lots DB schema for supporting JCA adapter and transform each message and writing to database? OR should I call java callout then using EJB for writing to database?.

    Hi,
    We had the similar scenario in our project and this is my take on this.
    Its better to use a JCA DBAdapter to execute/invoke a stored procedure and then have the PL/SQL script for insertion into the Stored Procedure.
    As the OSB DBAdapter configuration is very tightly coupled to the DB structure any changes to the column types of the table will mean a regeneration of the adapter WSDL.
    In general even for other DB operations like select, delete, update... its is a good idea to use the stored procedure in conjunction with the DBAdapter to decouple the link to DB to some extent.
    Thanks,
    Patrick

  • Need suggestion regarding drop RAC database of 11g

    Hi All,
    I have 11gR2 RAC environment setup. Database required recovery and I have no backup, based on support engineer guidance I restore the database using some hidden parameters though its a corrupted db so I need to rebuild. For rebuild purpose I took expdp of entire database and then drop it. I had drop through "dbca" , db was open and I run "dbca" and select drop database option, at one time it showing me warning/error ORA-01586:database must be mounted EXCLUSIVE and not open for this operation but after that drop was run perfectly.
    but when I check the ASM disk status , it still show as it is , I mean no change in their free_space column, I also verified through asmcmd command and all the Datafiles are still there.
    I want to cleanup asm disk which are still fillup with dbfs and I thought that would be cleared by dropping database but no my assumption was wrong.
    can any one suggest me what to do if I want to make free space in asm disk which was allocated for dbf files?
    Thanks in advance.

    Hi Forstmann,
    Please find both the commands output below:
    ASMCMD> lsdg
    State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
    MOUNTED NORMAL N 512 4096 1048576 14004 13208 0 6604 0 N ASM_FOR_CRS/
    MOUNTED NORMAL N 512 4096 1048576 75069 19755 18440 657 0 N ORADATA/
    MOUNTED NORMAL N 512 4096 1048576 200060 199773 74 99849 0 N ORADATA_PROD/
    MOUNTED EXTERN N 512 4096 1048576 99998 48689 0 48689 0 N ORAFLASH_AREA/
    MOUNTED NORMAL N 512 4096 1048576 106013 105823 0 52911 0 N TEST/
    ASMCMD> find + *
    +ASM_FOR_CRS/
    +ASM_FOR_CRS/RWCORA-cluster/
    +ASM_FOR_CRS/RWCORA-cluster/ASMPARAMETERFILE/
    +ASM_FOR_CRS/RWCORA-cluster/ASMPARAMETERFILE/REGISTRY.253.725970931
    +ASM_FOR_CRS/RWCORA-cluster/OCRFILE/
    +ASM_FOR_CRS/RWCORA-cluster/OCRFILE/REGISTRY.255.725970933
    +ORADATA/
    +ORADATA/ASM/
    +ORADATA/ASM/CONTROLFILE/
    +ORADATA/ASM/CONTROLFILE/ctlbkp-23FEB.334.743838771
    +ORADATA/ASM/DATAFILE/
    +ORADATA/ASM/DATAFILE/SYSAUX.260.726054695.bkp.336.746443183
    +ORADATA/ASM/DATAFILE/SYSTEM.259.726054677.bkp.335.746443047
    +ORADATA/ASM/DATAFILE/UNDOTBS1.261.726054711.bkp.338.746443879
    +ORADATA/ASM/DATAFILE/UNDOTBS2.263.726054721.bkp.339.746444613
    +ORADATA/ASM/DATAFILE/USERS.264.726054727.bkp.337.746443729
    +ORADATA/ASM/PARAMETERFILE/
    +ORADATA/ASM/PARAMETERFILE/spfile.267.726056723.orig.324.731752409
    +ORADATA/ASM/PARAMETERFILE/spfileracdb_08DEC.ora.333.737181947
    +ORADATA/ASM/TEMPFILE/
    +ORADATA/ASM/TEMPFILE/TEMP.262.726054713.bkp.340.746444645
    +ORADATA/CMDOC
    +ORADATA/CMDOC702
    +ORADATA/CMDOC702RAC
    +ORADATA/DM_CMDOC702RAC_INDEX
    +ORADATA/DM_CMDOC702_INDEX
    +ORADATA/DM_CMDOC_INDEX
    +ORADATA/RACDB/
    +ORADATA/RACDB/CONTROLFILE/
    +ORADATA/RACDB/CONTROLFILE/Current.256.726054673
    +ORADATA/RACDB/DATAFILE/
    +ORADATA/RACDB/DATAFILE/JISPCARS.dbf
    +ORADATA/RACDB/ONLINELOG/
    +ORADATA/RACDB/ONLINELOG/group_1.257.746533235
    +ORADATA/RACDB/ONLINELOG/group_2.258.746533237
    +ORADATA/RACDB/ONLINELOG/group_3.265.746533239
    +ORADATA/RACDB/ONLINELOG/group_4.266.746533241
    +ORADATA/RACDB/PARAMETERFILE/
    +ORADATA/RACDB/PARAMETERFILE/spfile.267.726056723.orig
    +ORADATA/RACDB/PARAMETERFILE/spfile.267.737185455
    +ORADATA/RACDB/PARAMETERFILE/spfile.325.731754029
    +ORADATA/RACDB/PARAMETERFILE/spfileracdb.ora
    +ORADATA/RACDB/TEMPFILE/
    +ORADATA/RACDB/TEMPFILE/TEMP.262.726054713
    +ORADATA/RACDB/TEMPFILE/TEMP.262.726054713.bkp
    +ORADATA/RACDB/TEMPFILE/TEMPS1.341.746954959
    +ORADATA/RACDB/TEMPFILE/temps1
    +ORADATA/RACDB/ctlbkp-23FEB
    +ORADATA/RACDB/spfileracdb.ora
    +ORADATA/RACDB/spfileracdb_08DEC.ora
    +ORADATA_PROD/
    +ORAFLASH_AREA/
    +TEST/
    total 68 dbfs.

  • Need suggestions regarding a system design for incremental load

    Hi,
    Our client has  a set of SQL Server tables which are being fully refreshed daily using views from DB2 source tables. We need to design an approach to load them incrementally.
    We have a third party application 'XXX' which will provide us the changed records in the underlying DB2 tables into SQL Server tables daily. Let us call them CDC_<tbl>. This table will have the same schema of source and have a flag to indicate whether
    it is an insert, update or delete record. From these CDC tables, we have to do the required transformations and do the insert/update/delete from the target table accordingly.
    This approach would work easily for cases where there is only one source table. But when we have multiple tables joined together to load the target table, we are unable to design an approach. If on a particular day, an insert record comes in only one of
    the source CDC tables, we will not be getting that row in the target since the other CDC table doesn't have a record for that particular key. We cannot join the SQL Server CDC table with source DB2 table since that will cause performance issues.
    Please share your thoughts on how we can design an approach which will work in cases of join, union, group by etc. between source tables. We are open to suggestions on changes in CDC tables also since the third party tool is to be configured as per our design
    needs.
    Thanks in advance,
    KP

    If on a particular day, an insert record comes in only one of the source CDC tables, we will not be getting that row in the target since the other CDC table doesn't have a record for that particular key.
    If I understand correctly, you extract data using DB2 views (some with joins) and then use third party CDC software to capture all changes made to the underlying DB2 tables.  These changes are then applied to a transformed version of data extracted
    from the views.  If my understanding is correct, why use DB2 views at all?  It seems to me the transformation process must have intimate knowledge of the underlying DB2 tables anyway in order to apply the CDC data properly.
    Are you saying you are not getting the other CDC table row at all, or is it just that the CDC tables are not transactionally consistent at the time the changes are applied to the target?  I think transactional inconsistencies should be addressed by
    the third party CDC application. The other alternative as I see it is to query DB2 for a each CDC key to make sure you have the latest data during the transformation process.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • I need some help with my java game using applets, CAN SOMEBODY PLEASE HELP

    Hi,
    I am in the process of creating a RPG program using Java. I am not very experienced with java, however the problem i am currently facing is something i can't seem to figure out. I would like to draw a simple grid where a character (indicated by a filled circle) moves around this grid collecting items (indicated by a red rectangle). When the character moves on top of the grid with the item, i would like it to disappear. Right now i am not worrying about the fact that the item will reappear after the character moves away again, because sometimes, when the character moves over the item, nothing happens/another item disappears. i have been at this for 4 days and still cannot figure out what is goign on. can somebody please help me? it would be most appreciated.
    Thanks
    PS if i needed to send you my code, how do i do it?

    Thank you for replying.
    The thing is, I am taking java as a course, and it is necessary for me to start off this way (this is for my summative evaluation). i agree with you on the fact, however, that i should go in small steps. i have been doing that until this point, and my frustration caused me to jump around randomly for an answer. I also think that it may just be a bug, but i have no clue as to how to fix it, as i need to show my teacher at least a part of what i was doing by sometime next week. Here is my code for anybody willing to go through it:
    // The "Keys3" class.
    import java.applet.*;
    import java.awt.*;
    import java.awt.Event;
    import java.awt.Font;
    import java.awt.Color;
    import java.applet.AudioClip;
    public class Keys3 extends java.applet.Applet
        char currkey;
        int currx, curry, yint, xint;
        int itmval [] = new int [5],
            locval [] = new int [5],
            tempx [] = new int [5], tempy [] = new int [5],
            tot = 0, score = 0;
        boolean check = true;
        AudioClip bgSound, bgSound2;
        AudioClip hit;
        private Image offscreenImage;
        private Graphics offscreen;     //initializing variables for double buffering
        public void init ()  //DONE
            bgSound = getAudioClip (getCodeBase (), "sound2_works.au");
            hit = getAudioClip (getCodeBase (), "ah_works.au");
            if (bgSound != null)
                bgSound.loop ();
            currx = 162;
            curry = 68;
            setBackground (Color.white);
            for (int count = 0 ; count < 5 ; count++)
                itmval [count] = (int) (Math.random () * 5) + 1;
                locval [count] = (int) (Math.random () * 25) + 1;
            requestFocus ();
        public void paint (Graphics g)  //DONE
            resize (350, 270);
            drawgrid (g);
            if (check = true)
                pickitems (g);
                drawitems (g);
            g.setColor (Color.darkGray);
            g.fillOval (currx, curry, 25, 25);
            if (currkey != 0)
                g.setColor (Color.darkGray);
                g.fillOval (currx, curry, 25, 25);
            if (collcheck () != true)
                collision (g);
            else
                drawitems (g);
        } // paint method
        public void update (Graphics g)  //uses the double buffering method to overwrite the original
                                         //screen with another copy to reduce flickering
            if (offscreenImage == null)
                offscreenImage = createImage (this.getSize ().width, this.getSize ().height);
                offscreen = offscreenImage.getGraphics ();
            } //what to do if there is no offscreenImage copy of the original screen
            //draws the backgroudn colour of the offscreen
            offscreen.setColor (getBackground ());
            offscreen.fillRect (0, 0, this.getSize ().width, this.getSize ().height);
            //draws the foreground colour of the offscreen
            offscreen.setColor (getForeground ());
            paint (offscreen);
            //draws the offscreen image onto the main screen
            g.drawImage (offscreenImage, 0, 0, this);
        public boolean keyDown (Event evt, int key)  //DONE
            switch (key)
                case Event.DOWN:
                    curry += 46;
                    if (curry >= 252)
                        curry -= 46;
                        if (hit != null)
                            hit.play ();
                    break;
                case Event.UP:
                    curry -= 46;
                    if (curry <= 0)
                        curry += 46;
                        if (hit != null)
                            hit.play ();
                    break;
                case Event.LEFT:
                    currx -= 66;
                    if (currx <= 0)
                        currx += 66;
                        if (hit != null)
                            hit.play ();
                    break;
                case Event.RIGHT:
                    currx += 66;
                    if (currx >= 360)
                        currx -= 66;
                        if (hit != null)
                            hit.play ();
                    break;
                default:
                    currkey = (char) key;
            repaint ();
            return true;
        public boolean collcheck ()  //DONE
            if (((currx == tempx [0]) && (curry == tempy [0])) || ((currx == tempx [1]) && (curry == tempy [1])) || ((currx == tempx [2]) && (curry == tempy [2])) || ((currx == tempx [3]) && (curry == tempy [3])) || ((currx == tempx [4]) && (curry == tempy [4])))
                return false;
            else
                return true;
        public void collision (Graphics g)
            drawgrid (g);
            for (int count = 0 ; count < 5 ; count++)
                if ((currx == tempx [count]) && (curry == tempy [count]))
                    g.setColor (Color.darkGray);
                    g.fillOval (currx, curry, 25, 25);
                else if ((currx != tempx [count]) && (curry != tempy [count]))
                    g.setColor (Color.red);
                    g.fillRect (tempx [count], tempy [count], 25, 25);
        public void drawitems (Graphics g)
            for (int count = 0 ; count < 5 ; count++)
                g.setColor (Color.red);
                g.fillRect (tempx [count], tempy [count], 25, 25);
        public void pickitems (Graphics g)
            check = false;
            for (int count = 0 ; count < 5 ; count++)
                if (locval [count] <= 5)
                    tempy [count] = 22;
                else if (locval [count] <= 10)
                    tempy [count] = 68;
                else if (locval [count] <= 15)
                    tempy [count] = 114;
                else if (locval [count] <= 20)
                    tempy [count] = 160;
                else if (locval [count] <= 25)
                    tempy [count] = 206; //this determines the y-position of the item to be placed
                if (locval [count] % 5 == 0)
                    tempx [count] = 294;
                else if ((locval [count] == 1) || (locval [count] == 6) || (locval [count] == 11) || (locval [count] == 16) || (locval [count] == 21))
                    tempx [count] = 30;
                else if ((locval [count] == 2) || (locval [count] == 7) || (locval [count] == 12) || (locval [count] == 17) || (locval [count] == 22))
                    tempx [count] = 96;
                else if ((locval [count] == 3) || (locval [count] == 8) || (locval [count] == 13) || (locval [count] == 18) || (locval [count] == 23))
                    tempx [count] = 162;
                else if ((locval [count] == 4) || (locval [count] == 9) || (locval [count] == 14) || (locval [count] == 19) || (locval [count] == 24))
                    tempx [count] = 228;
        public void drawgrid (Graphics g)  //DONE
            g.drawRect (10, 10, 330, 230); //draws the outer rectangular border
            int wi = 10; //width of one square on the board
            int hi = 10; //height of one square on the board
            for (int height = 1 ; height <= 5 ; height++)
                for (int row = 1 ; row <= 5 ; row++)
                    if (((height % 2 == 1) && (row % 2 == 1)) || ((height % 2 == 0) && (row % 2 == 0)))
                        g.setColor (Color.gray);
                        g.fillRect (wi, hi, 66, 46);
                    else /*if (((height % 2 == 0) && (row % 2 == 1)) || ((height % 2 == 0) && (row % 2 == 0)))*/
                        g.setColor (Color.lightGray);
                        g.drawRect (wi, hi, 66, 46);
                        g.setColor (Color.lightGray);
                        g.drawRect (wi, hi, 66, 46); //drawn twice to make a shadow effect
                    wi += 66;
                wi = 10;
                hi += 46;
            } //this draws the basic outline of the game screen
    } // Keys3 class

  • Need suggestions regarding creation of a UDT

    Dear All,
    Our client is into Chemicals Trading and deals with Units of Measurements with huge variations.
    For example, they stock the items in G but when they purchase, they may purchase in any of Kg,G, MG, micrograms, nanograms or peckograms or pounds based on the their sales requirement. However, their price calculation is based on the price list from the vendor which is again linked with the uit of measurment. A supplier may be supplying 200 peckograms of a chemical based on $100 per 200g. So, we are planning to create 3 UDFs in marketing docs to enter the base price and base units on which the vendor is quoting the price as well as 3 UDFs to enter the required  packing size, packing quantity and the packing UoM. Based on the 6 inputs, we want to calculate the quantity, unit price and Total price.   
    One area of concern for us is that the Standard "Weight UoM" of SAP B1 will not solve the purpose as the base in SAP B1 is always on mg and the system is not calculating correct value when the vase Unit as well as the required Unit are different from mg.
    So, if the client wants in nanograms and the suppliers' base unit is g, the conversion is not provided by SAP B1. We have to capture all the conversions between the individual units and get the results. We think it is better to solve the issue through a UDT for Units Of Measurement and define all the linkages between the various UoMs.
    I would like to know if there is any workaround for this scenario without creating a UDT and if we need to create a UDT, the structure of the table.
    Regards,
    Bharath S

    Dear Bharath,
    In your case, I think creating an UDT might be the most efficient way. The columns in UDT should be as simple as possible such as:
    1. BP UoM from BP
    2. Standard UoM from Item Master
    3. Conversion factor
    In this way, you can make sure the conversion is correct. Your UDF in the marketing document could have FMS link to this UDT.
    What is your B1 version and PL? 8.8 support multiple UoM better than old version.
    Thanks,
    Gordon

  • Need Help regarding which Material Type to use for the Scenario

    Hi,
    Here we are configuring the service scenario.
    Suppose Electric Switch of customer flat is not working.
    Here in this case I will purchase the switch. And along with service order
    I will do the delivery of the Material. Then will raise the Invoice to the customer
    with service charge as well as material cost.
    Here I will have to run the MRP also for that material  to raise the PR if stock goes below
    the reorder point.
    So I will have to maintain the Purchase view, Sales View & MRP view to that Material.
    So in this case which standard material Type can I use for this material? Or I have to create
    our own material Type for this material.
    Regards,
    Pradip

    ROH is usually a material type that is supposed to be consumed in production.
    HALB is a semifinished good, own produced and meant to consumed in production.
    Both are usually not forseen to be sold.
    A material that you buy yourself and sell to a customer is a trading good, which is HAWA in SAP.

  • Need suggestion regarding configuring listener.ora

    I have a prolem with External proceduere uses C as language
    i placed the dll file in oracle_home/bin directory
    and run the procedure, then i got an error which is given below
    SQL> exec shell('dir')
    BEGIN shell('dir'); END;
    ERROR at line 1:
    ORA-28595: Extproc agent : Invalid DLL Path
    ORA-06512: at "ENCORA.SHELL", line 0
    ORA-06512: at line 1
    Then,
    i configured the listener.ora with (ENVS="EXTPROC_DLLS=ANY")
    then i got the following error
    .SQL> exec shell('dir')
    BEGIN shell('dir'); END;
    ERROR at line 1:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unable to load DLL
    ORA-06512: at "ENCORA.SHELL", line 0
    ORA-06512: at line 1
    if,i tried with out setting (ENVS="EXTPROC_DLLS=ANY") then got Extproc agent : Invalid DLL Path.
    if, i set the environment variable , then got unable to load the external library.
    can any one suggest me how can i solve this?

    I have a prolem with External proceduere uses C as language
    i placed the dll file in oracle_home/bin directory
    and run the procedure, then i got an error which is given below
    SQL> exec shell('dir')
    BEGIN shell('dir'); END;
    ERROR at line 1:
    ORA-28595: Extproc agent : Invalid DLL Path
    ORA-06512: at "ENCORA.SHELL", line 0
    ORA-06512: at line 1
    Then,
    i configured the listener.ora with (ENVS="EXTPROC_DLLS=ANY")
    then i got the following error
    .SQL> exec shell('dir')
    BEGIN shell('dir'); END;
    ERROR at line 1:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unable to load DLL
    ORA-06512: at "ENCORA.SHELL", line 0
    ORA-06512: at line 1
    if,i tried with out setting (ENVS="EXTPROC_DLLS=ANY") then got Extproc agent : Invalid DLL Path.
    if, i set the environment variable , then got unable to load the external library.
    can any one suggest me how can i solve this?

Maybe you are looking for