QR Code in J2ME

Hi everyone,
I am trying to implement a QR code generator and a QR Code Reader in J2ME. Does anyone know of any library for QR Code in J2me? I have already gone through ZXing library and JP (from sourceforge) but both of them have the following issues with J2ME:
1. On compiling with compliance level >1.4, it gives an error NoClassDefFoundException.
2. On compiling with compliance level <1.4, it gives an error with Enumerated datatypes (which zxing library uses extensively)
In short, I need a library/API for QR code in J2Me. Any help suggestion would be appreciated.
Thanks
Edited by: 1002079 on Apr 23, 2013 10:27 PM

search "msaccess generate qr code" and you'll find the answer.
https://www.youtube.com/watch?v=ZwFsM62NxtM
http://www.tec-it.com/en/software/barcode-software/tbarcode/office/Default.aspx#access

Similar Messages

  • How to get phone IMEI code using J2ME?

    Is it possible to get the IMEI code for Nokia N70 / N90 / N91 / 6620 / 6600 / 6670/ 6682 / 7610 /9500 and Motorola SLVR / Motorola RAZR V3i, RAZR V3x?
    If possible, how to get the IMEI code?
    Thanks in advance..

    http://forum.java.sun.com/thread.jspa?forumID=76&threadID=736302
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=imei&qp_name=null&subCat=siteforumid%3Ajava76&site=dev&dftab=siteforumid%3Ajava76&chooseCat=javaall&col=developer-forums

  • Dynamic class loading in J2ME

    Hi all,
    Couple of questions. Is dynamic class loading using classloaders supported in any, if not all versions of J2ME? I guess I should ask first, what exactly does J2ME cover? I see KVM, but do watches and PDA's, set top boxes, refrigerators and so forth all run the same J2ME JVM? Or are their "less feature full" versions? I was hoping the J2ME spec would be the "lowest common denominator" to program for, but I thought I read somewhere that small devices like watches may even have a "smaller" J2ME JVM or something, less capable. So can I write code for J2ME and it will run on all small devices like cell phones, pda's, and so forth? Or is there another J2ME version, perhaps small than J2ME.
    So, from what I have found so far, it appears dynamic class loading is done at startup from a DB (of sorts) as opposed to being able to dynamically find/load classes. If this is so, is there any way to support downloading and reloading new classes like you can with J2SE, such as the hot-swap feature of web servers? Does Class.forName() at least work in that you can "replace" a class with a new version, even if it is not able to have a separate classloader instance? My guess is that J2ME supports only a single classloader space, but I thought I read somewhere that Class.forName() is available. J2ME API shows it I believe, but I could be wrong.
    Any help on this topic would be appreciated.
    Thanks.

    Dynamic class loading is not available in most (if not all) J2ME profiles and configurations. Class.forName() is available (at least in the MID profile), but not to be used for dynamic class loading. It can be used when using device-specific APIs where you can try to load a class containing device specific methods (for example a class that works only on certain Nokia phones, and has methods playSound() and vibrate(), which are not available in MIDP), and if you catch a ClassNotFound exception you can load a class that doesn't use the device specific APIs and contains stubs of the methods, or you can disable certain features in you application that need those features. For an example implementation you can have a look at Nokia's Block Game example (available from their developer site - http://www.forum.nokia.com/main.html).
    As for your other more general questions about different JVM's and such, you should read all about the different configurations and profiles available in J2ME (plenty of information using in the J2ME link on this site).

  • (J2ME)change the Background Color Of Form

    Hello
    I have a question about create a Form on J2ME Midlet.
    How could we change the Background Color Of Form? Is it possible?
    Thanx a lot.

    You can try the J2ME forums http://forum.java.sun.com/category.jspa?categoryID=23
    Then don't seem to be bursting with life though. You may find what you need searching these examples http://www.java2s.com/Code/Java/J2ME/CatalogJ2ME.htm
    I don't use J2ME myself.

  • Need urgent  help on J2ME Bluetooth.

    Hi all,
    I really need help about run example code of j2me bluetooth.
    I'm doing a MSc project about bluetooth for delivery system, I just want to use bluetooth to send an object to PDA.
    I,ve tried example on "Bluetooth for Java" with Atinav library but, it couldn't work.
    Do you have an example code that can run on NetBeans 5.0 with
    - AvetanaBluetooth Library (purchased)
    or
    - normal Bluetooth.java library
    I need some examples for develop on it. and also please advice me on how to run and test the programs. I really need urgent help Please help me. my email is [email protected] or [email protected]

    Hi Hari,
    I think that the logic needs to be build up in the DISP part of the Search help exit.
    What you can do is also get the Plant in the search help as an export parameter.
    Then in the Return Tab you can check if the plant = 'AA', delete the data.
    e.g.
          LOOP AT record_tab.
            IF RECORD_TAB-STRING+22(2) = '90'.
              DELETE record_tab INDEX sy-tabix.
            ENDIF.
          ENDLOOP.
    Hope this helps.
    Regards,
    Himanshu
    Message was edited by:
            Himanshu Aggarwal

  • How to integrate media player in j2me polish

    Hi,
    I have create a media player in j2me. Now I want to integrate media player code into j2me polish project. I tried to integrate the media player with j2me polish project and audio file is playing fine. but while playing video I am not getting the video picture, only voice is cming and it's also giving one exception like this -
    "[j2mepolish] Generic/AnyPhone: Uncaught exception java/lang/ClassCastException"
    If i am going to build.xml and changing the
    usePolishGui="true" to "false".. then I am getting video picture also without any Exception..
    Kindly help me out..
    Thanks,

    Hi,
    I have create a media player in j2me. Now I want to integrate media player code into j2me polish project. I tried to integrate the media player with j2me polish project and audio file is playing fine. but while playing video I am not getting the video picture, only voice is cming and it's also giving one exception like this -
    "[j2mepolish] Generic/AnyPhone: Uncaught exception java/lang/ClassCastException"
    If i am going to build.xml and changing the
    usePolishGui="true" to "false".. then I am getting video picture also without any Exception..
    Kindly help me out..
    Thanks,

  • AES encryption works in J2SS but not in J2ME

    Hi all,
    Im trying to create an AES Shared secret to encrypt and decrypt a message in J2ME. Ive already tried this code in J2SS and it works fine but when i try to use the exact same code in J2ME it doesnt work.
    I get the following error : java.security.InvalidKeyException
    The following is the code that im using to create the shared secret key and encrypt a message:
    ECDHBasicAgreement KeyAgreement = new ECDHBasicAgreement();
    KeyAgreement.init(ecPrivateKey);
    BigInteger IntKeyAgreement = KeyAgreement.calculateAgreement(ecPublicKey);
    Byte[] ShareSecretkey = IntKeyAgreement.toByteArray();
    SecretKeySpec = new SecretKeySpec(ShareSecretkey, 0, 16 ,"AES");
    Cipher cipher = null;
    cipher = Cipher.getInstance("AES");
    cipher.init(Cipher.ENCRYPT_MODE, SecretKeySpec);
    countin = cipher.update(input, 0, input.length, ciphertext, 0);
    countin += cipher.doFinal(input, 0, input.length, ciphertext, 0);
    It works fine untill i get to - cipher.init(Cipher.ENCRYPT_MODE, SecretKeySpec) then it produce the error.
    Any ideas why this might be??
    Is the something special you have to do with Cipher in J2ME that im dont know about?
    Thanks in advance

    Maybe the implementation of java.security of J2ME doesn't include the key you are using. Try with other key or search for that key in the J2ME package.

  • J2ME Mobile Barcode Recognition

    Dear friends,
    Does anyone know how to write Barcode Reader by J2ME for scanning EAN13?? Or does anyone get the source code of J2ME Barcode Reader?
    Thanks a lot.
    Regards,
    Alan

    I'm the same situation too,
    I posted and found something on another topic:
    http://forum.java.sun.com/thread.jspa?threadID=698351
    I hope it's useful for you.

  • Midi in J2ME

    I am trying to write a simple application that will play a midi file, that is specified by a path entered into the phone. I got this working as a normal java class but when i go to change the code to J2ME and run it on the phone it won't play the midi. Just wondering if any1 has any code out there that would be benificial to me.
    Thanks in advance!

    That still won't work, here is my code, please keep in mind im fairly new to J2ME!
    package audio;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.*;
    import javax.microedition.media.control.*;
    import java.io.*;
    public class AudioPlayer extends MIDlet implements CommandListener
       private Display display;
       private Player player;
        public AudioPlayer()
             super();
             display  = Display.getDisplay(this);
        public void startPlayer(Player p)
              if(p != null)
         try
              p.stop();
              p.setMediaTime(0L);
              p.start();
         catch(MediaException me)
        void startSound()
                 startPlayer(createPlayer("/A - Nothing.mid","audio/midi"));
        public Player createPlayer(String filename,String format)
                  Player p = null;
                  try
         InputStream is = getClass().getResourceAsStream(filename);
         p = Manager.createPlayer(is,format);
         p.prefetch();
                 catch(IOException ioe)
                  catch(MediaException me)
                  return p;
         * Called when this MIDlet is started for the first time,
         * or when it returns from paused mode.
         * If a player is visible, and it was playing
         * when the MIDlet was paused, call its playSound method.
        public void startApp()
             startSound();
         * Called when this MIDlet is paused.
         * If the player GUI is visible, call its pauseSound method.
         * For consistency across different VM's
         * it's a good idea to stop the player if it's currently
         * playing.
        public void pauseApp()
         * Destroy must cleanup everything not handled
         * by the garbage collector.
        public void destroyApp(boolean unconditional)
        public void commandAction(Command c, Displayable s)
        /*public void playerUpdate(Player player, String event, Object data);
             if(event == PlayerListener.END_OF_MEDIA)
                  try
                       defplayer();
                  catch(MediaException me)
                  reset();
    }

  • Convert J2SE to J2ME - apache spoon-jdiet, maven installation

    I'm trying to port a game I wrote from J2SE to J2ME. I found this utility JDiet (http://spoon.gforge.inria.fr/JDiet/Main) which uses apache Maven. I've installed Maven, but when I run it tells me "can't find maven-resources-plugin" I downloaded the plugin and created a folder in my MAVEN_HOME, but it didn't get picked up.
    So 2 questions:
    1. How do I get this plugin installed with maven? Anyone out there with experience with Maven?
    2. What's the best way to port J2SE code to J2ME?
    <p>
    --- no one?
    Edited by: tjacobs01 on Mar 31, 2008 7:26 PM
    Edited by: tjacobs01 on Mar 31, 2008 7:27 PM

    Tom
    You just might get a response or two if you post on the [CLDC and MIDP forum|http://forum.java.sun.com/forum.jspa?forumID=76], there are a few Java ME professionals (some that come to mind are deepspace, AdrienD, Cinnam, hooble... oh yes and recently printisor's suddenly become active again) and somebody might have experience in this kind of stuff.
    luck, db

  • Hi am new to j2me

    Ho to display map in mobile? plz send complete source code? its urgent to me ,i have demo today evening?

    thu wrote:
    Ho to display map in mobile? plz send complete source code? its urgent to me ,i have demo today evening?What you mean with map? An image?
    Go to http://www.java2s.com/Code/Java/J2ME/Image.htm

  • How to add two values from a textField ???

    Hi all,
    I'm new to Java and the J2ME, I jumped to J2ME immediately, and I'm wondering how can I compute two values coming from textField. Let say I would add this two values,.
    like
    txtAnswer = txtNum1 + txtNum2 ; (in some other PL)
    Here's my snippet code in J2ME
    TextField txtAnswer = new TextField("Answer ","",10,TextField.NUMBER);
    TextField txtNum1 = new TextField("Number1 ","",10,TextField.NUMBER);
    TextField txtNum2 = new TextField("Number2 ","",10,TextField.NUMBER);
    Command cmdAdd = new Command("ADD",Command.SCREEN,1);
    // add the UI
    What would be the code inside my commandAction method?
    Thanks a lot.
    God Bless.

    Thanks JC,
    I already solved the problem, JC you provided the right answer, it's my fault why my program does not run at the first time.
    Thanks,. I'm just wondering the difference between these two implementaiton and why does the first implementation causes an error, (an error that I posted before this.)
    Implementation 1
    public class myClass extends...... implements .... {
    private TextField txtNum1, txtNum2, txtAns;
    public void myFunctionAdd( )
    TextField txtNum1 = new TextField("Number1 ","",10,TextField.NUMERIC);
    TextField txtNum2 = new TextField("Number2 ","",10,TextField.NUMERIC);
    TextField txtAns = new TextField("Answer","",10,TextField.NUMERIC);
    public void commandAction(Command c, Displayable s )
    if ( ....... )
    int answer = Integer.parseInt(txtNum1.getString()) + Integer.parseInt(txtNum2.getString() );
         txtAns.setString(String.valueOf(answer));
    Implementation 2:
    public class myClass extends...... implements .... {
    private TextField txtNum1, txtNum2, txtAns;
    public void myFunctionAdd( )
    txtNum1 = new TextField("Number1 ","",10,TextField.NUMERIC);
    txtNum2 = new TextField("Number2 ","",10,TextField.NUMERIC);
    txtAns = new TextField("Answer","",10,TextField.NUMERIC);
    public void commandAction(Command c, Displayable s )
    if ( ....... )
    int answer = Integer.parseInt(txtNum1.getString()) + Integer.parseInt(txtNum2.getString() );
         txtAns.setString(String.valueOf(answer));
    What's seems to be the difference?
    Thanks for any kind reply....

  • FULL SCREEN DISPLAY problema

    Hello everybody!
    I've written my first code for J2ME MIDP. I'm learning about paint method of Canvas class.
    I put below code in the paint method:
    g.drawString("Width: "+Integer.toString(getwidth()),0,0,Graphics.TOP|Graphics.LEFT);
    g.drawString("Width: "+Integer.toString(getheight()),0,0,Graphics.TOP|Graphics.LEFT);
    g.drawArc........ etc...
    When I ran that application on my SE K700i, I can see the information of the width and height of the display screen, that is "W=176 H=176".
    But when I ran it on my brother's Nokia 3660, I got "W=176" and "H=144".
    Last, I ran it on my sister's Nokia 6610, I got only "W=128" and "H=96".
    My questions are:
    - Can I set it to a defined size, so when we ran it on any types of devices, we get the same size of display screen?
    - There is a panel on top of the screen that show the battery and signal indicators, and one on bottom of the screen for command action. Can I set the application ran FULL SCREEN (no any panels)?
    Thanks very much for any reply!

    Hi,
    There are no standard methods available for scaling images.
    But, when you are using TiledLayers and moving Sprites, then you just can keep the images the same. On a phone that has a large screen, you just 'see' more of the game. When you're using a phone that has a smaller screen, then you just 'see' less of the game screen.
    There are tutorials and other documents available on the web describing the creation of games using TiledLayer, Sprite and GameCanvas.
    But, don't use (create) images that are as large as your screen. It will cause an attack on your device's heap memory and it will introduce inconvenient problems when running the game on different devices with different screensizes...
    Good luck!
    Cheers,
    Jasper

  • How to make the midlet sleep

    I want to make midlet sleep a moment, then run.
    How to code with j2me.
    Thank you.

    Hi,
    If you make your midlet sleep then it will not respond to any key event also.
    Thread t = Thread.currentThread();
    t.sleep(5000); //time in milliseconds

  • How to read a RMS file

    Is it possible to read a RMS file from my pc written by a Midlet application?
    I need to find a way to read the rms file and convert it to any format supported by SQL or MS Access.
    Thnx!

    Rms file structure depend on device.
    You must change the point of view.
    Don't read rms file by read the file structure but by using the RMS class in j2me.
    For example If I have a device that store(in rms) a contacts list by j2me application.
    Then I would to store this contact list in mysql or access db I must read the contact list by rms api, store the data in j2me structure (array for example) and then transfer it by http, socket, bluetooth etc in a server that store the data in db.
    Another solution is like the first post: Read the rms contents (by RMS api) and store it in a text file(you can do it only in a device with JSR-75 File api). Then import txt file in db.
    Don't try to read rms file generated by device in emulator or viceversa is impossible.
    http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_tipcode103.jsp
    http://www.java2s.com/Code/Java/J2ME/Readandwritetotherecordstore.htm

Maybe you are looking for