Image problem with my palm (J2ME Wireless Toolkit)

Hi,
I did a basic application. I just show an image and it works perfectly with the J2ME Wireless ToolKit.
However, when I create the package, convert it and send it on my palm, everything is ok, except the image. It won't appair.
I get an exception that the image couldn't be found, but when I use the emulator, everything is ok !!!
The image is in the "res" directory, like it was asked in the manual.
I tought that everything is encoded (text file or image file) when you create the package. If it's working with the emulator, why is it not working on my palm?

I had a same problem with my nokia 3650 in J2me the image appears but not on the phone, I think that that is a bug and fixed it this way:
when you make a jar package, unpack package with winRAR or some archive program in some temp directory and in that directory make a res directory an put the image in it, then repack theese files again including the res directory in a new jar file. It works for me. It looks that J2ME in compiling doesn't change the path, to root but leaves the res directory.

Similar Messages

  • No Image in my cell but there's an image in J2ME wireless toolkit

    Hi all,
    I'm really lost here. I coded my java code and run it in J2ME wireless toolkit and the image is there, I put the image on the res folder and the image file format is .PNG, its working in the default color phone. However whe send it to my cellphone, sending the .jar file, and after installation, as I run the program, I cant see the image, all UI is ok but not the image. Thanks a lot
    Here's the code:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener, ItemStateListener
    private Form frm;
    private Display display;
    private TextField txtName;
    private TextField txtAge;
    String[] genderArray = {"Male", "Female"};
    private ChoiceGroup gender;
    String[] statusArray = {"Single", "Married", "Widow"};
    private ChoiceGroup status;
    private Command cmdExit;
    public HelloWorld( )
         display = Display.getDisplay(this);
         frm = new Form("Hello World");
         txtName = new TextField("Name: ","",40,TextField.ANY);
         txtAge = new TextField("Age: ","",2,TextField.NUMERIC);
         Image[] imageArray2 = null;
         Image[] imageArray3 = null;
         try {
              Image icon = Image.createImage("/icon.png");
              Image img = Image.createImage("/myPic.png");
              imageArray2 = new Image[] {icon, icon};          
              imageArray3 = new Image[] {icon, icon, icon};
         frm.append(new ImageItem(null, img, ImageItem.LAYOUT_CENTER,null));     
         } catch(java.io.IOException err)
              // Found an error
         gender = new ChoiceGroup("Gender: ",ChoiceGroup.EXCLUSIVE,genderArray,imageArray2);
         status = new ChoiceGroup("Status: ",ChoiceGroup.POPUP,statusArray,imageArray3);
         cmdExit = new Command("Exit",Command.EXIT,1);
         frm.addCommand(cmdExit);
         frm.append(txtName);
         frm.append(txtAge);
         frm.append(gender);
         frm.append(status);
    public void startApp( )
         display.setCurrent(frm);
    public void pauseApp( )
    public void destroyApp(boolean unconditional)
    public void commandAction(Command c, Displayable s)
    if ( c == cmdExit )
         destroyApp(false);
         notifyDestroyed( );
    public void itemStateChanged(Item item)
    Thanks.

    HI Phoenix_Mj
    I'm a beginner in J2ME world and it might happen that I'm be missing some impt step from coding to transferring.
    Do I have to configure anything?
    Im I right by saying, only the .jar file is then transmitted to the device?
    Lastly, where should I put my images? what folder to be specific?
    I can't run the application correctly even trying to run it over the OTA....
    No images is being displayed...
    Please help guys.
    By the way thanks, Phoenix_Mj
    God Bless to all

  • J2ME Wireless Toolkit 2.5

    Hi all,
    I would like to ask if this new veresion (J2ME Wireless toolkit 2.5) supports ArrayList.
    I have developed a program with ArrayList , is it possible to run it in this new version without problems.
    Thanks

    New version of WTK 2.5 supports CLDC stack. Unfortunately the ArrayList class is not present in the spec for this stack, so WTK 2.5 will not be able to run your application. (Like all other CLDC implementations) But you can try the CDC emulator "Sun Java Toolkit 1.0 for CDC" at http://java.sun.com/javame/downloads/index.jsp
    (CDC stack has the class ArrayList)

  • J2ME Wireless Toolkit jad error

    hi every1 i'm new to this j2me. i'm having the following install error:
    'the application file(.jad) for HopBoy does not appear to be the correct type'.
    i'm using j2me wireless toolkit. create the package then run via ota. i'm using apache web server. well i'm trying to simulate OTA function demonstrates how a mobile phone locates and downloads MIDlets from a remote server. thank u for your help.

    I experience the similar problem.
    But got success with some mobile models and most of them fail.
    I put the following file in the web page.
    (test.html, test.jad, test.jar)
    Sony Erisson P800, install successful when accessing http://x.x.x.x/test.html, or http://x.x.x.x/test.jar
    Nokia 7650, install successful when accessing http://x.x.x.x/test.jar
    Nokia 3530 Fail,
    Does anyone know how to install java game to Nokia 3530 through Web.

  • J2me wireless toolkit and MIDP,CLDC

    Hi,
    does the j2me wireless toolkit ship the cldc and midp with it ?

    why email, thats a forum because there are more people interested in problems and their solution than you.
    The 2.2beta also ships with the CLDC 1.1 and MIDP 2.0. Its a must because without it, you wouldnt be able to execute anything. And you cant put the JVM, MIDP and CLDC on your phone. The only thing you need is your application. The rest is implemented in hardware (or firmware of the phone). If not, theres no way to ''manually'' put in there (this includes upgrading).
    hth
    Kay

  • How to compile using J2ME Wireless Toolkit?

    Hello! i'm doing a bluetooth application and i just want to ask how to compile using J2ME Wireless Toolkit?
    Is it the "Build" button? thanks!

    thanks! hmmm... as what i 've said earlier, im doing a bluetooth application. i already compiled and run it using J2ME wireless toolkit and it works. but when i transfer the application to Nokia 6600, the images that must be publish didn't appear. "NO DATA". do i have to send the images also to Nokia 6600?

  • J2ME - WIRELESS TOOLKIT - SUN

    Hi All
    I installed J2ME - WIRELESS TOOLKIT - SUN, to work with JDEVELOPER but I don't know what else I need to start to develop my application.
    someone could help me, what else I have to install in my machine
    Thanks
    José

    Jose -
    There are detailed instructions provided at this location:
    http://otn.oracle.com/products/jdev/htdocs/partners/addins/exchange/j2me/content.html
    Hope this helps,
    Lynn
    Java Tools Team

  • J2ME Wireless Toolkit Not Loading..

    Dear Everyone,
    I had just installed J2ME Wireless Toolkit 1.0.4 but when I click on the shortcut to launch the software, nothing happen..Please advice...
    Thank you..

    Hi dumb00,
    I had reinstall my JDK and J2ME for around 5 times since yesterday.
    Later, I found out that is the corrupted fonts in my computer that cause this problem.
    You can find more detail at http://forum.java.sun.com/thread.jsp?forum=31&thread=145251
    Thanks you for responding, dumb00.

  • Java Forte CE and J2ME Wireless Toolkit configuration

    I installed Sun Java Forte V3.0 Community Edition and the J2ME Wireless Toolkit 1.0.3.
    I not able to run a MIDlet for the PALM OS Emulator. Wen I execute the MIDLet suite, the output windows returns: "Error could not find a JVM"
    - Does any body knows how to properly configure Java Forte to run application on the Palm OS Emulator (POSE).
    - Does any body knows how to attach Sun Forte debugger for MIDLet applications ?
    Thanks

    hi,
    First Install the forte and then install the j2mewtk.While installating j2mewtk chose integrated option.
    For Palm OS emulator you have to set the POSE location.
    Try out this.
    Open ktolbar.
    OpenProject.
    select an application.(examples)
    set device PalmOS_device.
    Now run the application.
    A window pop for u.
    This may help you
    good luck.
    koka

  • Creating a .jpg image from with in the J2ME app

    Hi,
    I want to send a document to the printer over bluetooth to print.
    For that I searched on net, but couldn't find any APIs supported by J2ME to print it. I also found a link http://www.hcilab.org/documents/tutorials/Brother/ where I found that I can send the data by creating an image and then writing data (text or image ) in to it, and then sending that image to print.
    Image img = Image.createImage(816, 40);
    Graphics g = img.getGraphics();
    g.setColor(0, 0, 0);
    g.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD,Font.SIZE_LARGE));
    g.drawString("Printing test from "
                             + System.getProperty("microedition.platform") + " on "
                             + new Date(), 10, 10, 0);
    driver.print(img, btAddr);This code is working fine on this printer.
    I am using HP 460cb printer, and I tried the same thing, but am not getting any results. Can any one of you tell me what mistake am I making.
                    Image blankImage = Image.createImage(SpotBilling.MAX_IMG_WIDTH, SpotBilling.MAX_IMG_HEIGHT);
                    Graphics g = blankImage.getGraphics();
                    g.setColor(0,0,0);
                    g.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_SMALL));
                    g.drawString("Printing test on Wednesday - 18th Jan, 2006", 10, 50, Graphics.TOP|Graphics.LEFT);
                    g.drawImage(imgTest, 60, 150, Graphics.HCENTER | Graphics.VCENTER);
                    int width = blankImage.getWidth();
                    int height = blankImage.getHeight();
                    int y = 0;
                    os.write(CMD_UNIVERSAL_EXIT);
                    for(int i = 1; i<=height; i++){
                             blankImage.getRGB(temp, 0, width, 0, y, width, 1);
                             byte[] pixels = new byte[width];
                             for (int x = 0; x < temp.length; x++) {
                                  pixels[x] = (byte) ((((temp[x] & 0x00FF0000) >> 16)
                                       + ((temp[x] & 0x0000FF00) >> 8) + (temp[x] & 0x000000FF)) / 3);
                             // Transfer Raster Graphics
                             os.write(TRANSFER_RASTER_DATA);
                             byte[] len = numToDecimal(pixels.length);
                             os.write(len);
                             os.write(DATA);
                             os.write(pixels);
                             y++;
                        }I have another query, if I can not do this. Is there any way I can create a .jpg image from with in the J2ME application.
    I have some text and an image that I get by invoking camera from the code and then capturing a picture. I need to combine them both, and then send it to the printer.
    If there is any way, I can convert this blankImage mentioned above (containing both text and Image), please provide me the solution.
    Any document or any source code is appreciated.
    regards,
    Ashish

    I have succeeded in creating a mutable image that contains text and image (.png), through
                         Image img;
                         img = Image.createImage(50, 60);
         protected void paint(Graphics g){
              g.drawImage(img, getWidth()/2, getHeight()/2, Graphics.HCENTER | Graphics.VCENTER);
              Graphics graph = img.getGraphics();
              graph.setColor(0, 0, 0);
              graph.setFont(Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD,
                             Font.SIZE_LARGE));
              graph.drawString("Printing test from "
                                       + System.getProperty("microedition.platform") + " on ", 10, 10, 0);
              graph.drawImage(image, img.getWidth()/2, img.getHeight()/2,Graphics.HCENTER|Graphics.VCENTER);
              graph.fillArc(0,0,10,10,0, 360);
         }Now I want to create a .jpg image of this img image(Mutable image).
    What I am doing is that,
    1. I am converting this image in to int array, using getRGB() method.
    2. Then I am converting int array in to byte array.
    3. And then I am opening a file(extension is .jpg)
    4. Then I am sending this byte array in to the file which is .jpg
    The .jpg file is getting created, but the data in it is very absurd, like yyyyyyyyyyyyyyyyyyyyyyyy.
    Please help me in this matter.
    Regards,
    Ashish

  • Does J2ME Wireless Toolkit Check Memory Usage?

    I just want to confirm that does the J2ME wireless Toolkit check the memory usage by a MIDlet and only allow it 128KB of memory usage as specified by the MIDP 2.0 specification???
    Or do we have to calculate and check manually about the memory usage of a MIDlet???

    Hi,
    The WTK doesnt set heap memory unless u specify in the preferences. Most of the devices allow upto 200 KB heap size or more. The least being Nokia 7250 which allows only upto 200 KB heap size. SO if u are developing for a particular device in mind specify the heap size in the preferences. You will also get the memory utilized at runtime thru.
    Runtime.getRuntime().* functions. eg.
    Runtime.getRuntime().freeMemory();
    wil give u free memory.
    in new emulators such as Nokia 7210 emulator , u can see the memory real time , on the details secction.
    Hope this helps.

  • Error-1074396120 Not an image, problem with IMAQ Learn multiple geometric patterns

    Error-1074396120 Not an image, problem with IMAQ Learn multiple geometric patterns
    Hi!
    I've tried to modify the example of  "multiple geometric patterns matching" , and just use two patterns, but when I run the VI this error appear and I doon't know how to solve it! , the error appears in the "IMAQ Learn multiple geometric patterns" block.
    Running on:
    - labview 32 bits
    - windows 7 64 bits
    - usb camera 2.0
    Any sugestion would be helpful..... !  Regards
    Attachments:
    template_12.png ‏150 KB
    template_11.png ‏123 KB
    vision_multiple_pattern_matching.vi ‏127 KB

    thanks all for your replies, the problem was on my template images, I had to give them information about the pattern matching, and I did it with NI Vision Template Editor, within Vision utilities, and I chose template with Feature Based. 
    Thank you again and Regards!

  • Problem with syncing palm

    When I open isync, there is a yellow triangle over the palm icon and an error message stating that syncing may not work. However, syncing does work. I want to change a setting in the isync pane but that error message wont let me do anything.
    thanks
    Ken

    Missy11 wrote:
    I am hoping someone will please work with me to get this resolved.  I have had my IT person at work go over the settings on my computer and everything is set to where it is supposed to be.  The log does say:  Outlook Calendar
    The attempt to open the database failed.
    Date Book application database is not found. Please invoke the Date Book application on the handheld once and re-synchronize
    OLERR:05-0001
    OLERR:0D-0004
    OLERR:0D-0001
    - Not Synchronized
    Outlook Calendar synchronization failed
    Is there a setting on my handheld that is wrong?  There is no date book application on my phone for me to invoke.
    Post relates to: Treo 755p (Verizon)
    The date book database not found error message tells me that the Calendar application has not yet be started on your Treo.  The first time you start the Calendar application, the database file is created.  That error says that the database files, CalendarDB-PAdd has not there to receive data from Outlook's calendar.
    As far as I know, unless you are using some kind of middleware, like Intellisync or Verizon's wireless sync software, there isn't anything on the Treo that needs to be configured for this to work out of the box.
    Missy11 wrote:
    As I wrote before, I did not have this problem on my original phone when my email and web didnt work.  Now that my email is working and the Verizon Wireless Sync works, all of a sudden none I can't hot sync anymore.  Will this have something to do with it? 
    Post relates to: Treo 755p (Verizon)
    hmmm...maybe I should have read farther down.  The Verizon Wireless Sync will cause problems with wired/wireless sync's with Outlook's data.  I'm on Sprint, so I can't test the connection settings, but the other moderators here and over at Brighthand have dealt with this issue.  What I do know, is that there is a sync setting in the Verizon software that needs to be disabled before this will work.
    Alan G
    Post relates to: Treo 755p (Sprint)

  • Problem with HP 6500-E709n Wireless software on Windows 7 64-bit

    How do I, or should I, uninstall Microsoft xps printer before installing HP 6500-E709n software on Windows 7 64-bit?
    I have tried installing, uninstalling & reinstalling the software twice now and am preparing for a third installation. I inadvertently left the wireless printer on during the first installation & eversince then, I've had to physically unplug the printer to get it to shut off. Now, the printer will only shut off with the power button if I hit it before the wireless light comes on.  I cannot get the printer key pad keys to function at all, other than turning the power on & off as described above.
    Up to now, I had been using a wireless network flawlessly with a NETGEAR router, untill I tried to install the HP software on my Windows 7 64-bit unit. Now my other computers no longer find the printer....I get the message the printer is off line.
    I have currently unistalled all the HP software and rebooted for the third time. The Microsoft XPS printer now shows as the default printer...& I can't find it in the add-remove program list. Do I need to uninstall it before installing the HP software, or is my problem with the eprom firmware?

    How do I, or should I, uninstall Microsoft xps printer before installing HP 6500-E709n software on Windows 7 64-bit?
    I have tried installing, uninstalling & reinstalling the software twice now and am preparing for a third installation. I inadvertently left the wireless printer on during the first installation & eversince then, I've had to physically unplug the printer to get it to shut off. Now, the printer will only shut off with the power button if I hit it before the wireless light comes on.  I cannot get the printer key pad keys to function at all, other than turning the power on & off as described above.
    Up to now, I had been using a wireless network flawlessly with a NETGEAR router, untill I tried to install the HP software on my Windows 7 64-bit unit. Now my other computers no longer find the printer....I get the message the printer is off line.
    I have currently unistalled all the HP software and rebooted for the third time. The Microsoft XPS printer now shows as the default printer...& I can't find it in the add-remove program list. Do I need to uninstall it before installing the HP software, or is my problem with the eprom firmware?

  • 10.4.10 image problem with Firefox and Photoshop on Intel and OD AFP server

    We are working on a new client image (perfect client image to deploy with Netboot) and our Intel machines, new and old, are throwing errors in CS2 Photoshop and refusing to launch Firefox when we log in to home folders from the OSXserver, local accounts run OK. The Intel Mac Pros we got last year ran Photoshop fine using last years image. Power Macs are running OK logged in on the server and local. The biggest variable is we are now running 10.4.10, the last image was 10.4.9. Anyone seen this, any thoughts, I have tried everything I can think of.
    Thanks!

    I haven't had any problems with 10.4 and solaris 10. At some point Apple upgraded to some version of OpenSSH that required the addition of the -Y switch to make things work well.

Maybe you are looking for

  • HLS IP with multiple outputs

    Hello all, I'm currently working with Vivado HLS (2014.4) and am trying to generate an IP with has an generic amount of OUTputs. For better explanation I've made an "block-image" (sort of) how it should look like when imported in Vivado (in a Block D

  • 2.1 Version  Problems(fact)

    I know now for a fact that 2.1 version has problems, I know you might says, yes we all know that, but let me tell you what happen to me. I was having problems with my first phone that I got on 07/11/08, after upgrading to 2.1 the phone in my house us

  • How do I sync outlook 2010 using the latest idunes

    I upgraded to the latest version of Itunes and now Itunes will not see my outlook?

  • Keyboard not working with Mail

    I have a new iMac aluminum, and everything was working ok for a week or so. Then the keyboard Update popped up, so I downloaded it. Seemed ok for a day (maybe just until I shut off the machine, though.) Now, most programs are fine, but within Mail, t

  • AcceptClientCertWithoutSSL

    Hi, Does anyone have experience of using the AcceptClientCertWithoutSSL parameter in the portal? We currently have an HTTPS portal, authenticating with Client Certificates. We would like to put Web Dispatcher in front of the portal and use it to term