Why Java Platarform Micro Edition 3.0 doesn't reflect the reality ?

Hi guys,
It's my first ME project and I would like to know why into version 3.0 of ME, don't have the necessity of create your access (read and write into files) methods using Threads, and in 2.5.2 I must have to use Threads ? Because my project runs smooth into 3.0 but not into my mobile (E63) and 2.5.2 emulator, after reading plenty docs, and change the emulator to 2.5.2 I did discover that have the need of using Threads. What is the right one and why the 3.0 doesn't reflect the reality ?
There are any way that my project made with 3.0 runs smooth, how ?
Thank you in advance.

Hi once again,
One example of what I'm doing, using the javax.microedition.io.file.FileConnection to save and read my files, though it only works into my 3.0 emulator.
I'm using this method to open and read the file.
private String loadCipher(String typedKey, String pathLoad, String fileName) throws DigestException {
        StringBuffer notFormattedText = new StringBuffer();
        pathLoad = pathLoad + fileName;
        FileConnection fc = null;
        InputStream is = null;
        try {
            fc = (FileConnection) Connector.open(pathLoad);
            is = fc.openInputStream();
            int ch = 0;
            for (int i = 0; i < fc.fileSize(); i++) {
                if ((ch = is.read()) != -1) {
                    notFormattedText.append((char) ch);
            is.close();
            fc.close();
        } catch (IOException ioe) {
            System.out.print("Error reading!");  // Here I'll have to deal with exceptions
            System.out.print("IOException : " + ioe.getMessage());
        } catch (SecurityException se) {
            System.out.print("Error security!");  // Here I'll have to deal with exceptions
            System.out.print("Securuty exception : " + se.getMessage());
        pathLoad = FILE_ROOT;
        String myFileText = notFormattedText.toString();
        byte[] keyFromFile = readKey(typedKey, myFileText.getBytes()); // Here is where the program goes and decript my file
        return new String(keyFromFile);  // Here I return the decripted text to be compared with password or for that the user might read it.
    }I don't intend to use Thread to run it, although I'm afraid of that it's the only way and with this all program structure will have to be re-designed.
Anyone knows if Thread is needed just to use the javax.crypto.... and javax.security..... ? Because I'm lost.
Thank you in advanced

Similar Messages

  • Using CLDC Sun Java(TM) Micro Edition SDK 3.0 EA with netbeans

    Hi ,
    has anyone stumbled upon this - I just installed netbeans and Java(TM) Micro Edition SDK 3.0 and am trying to work with the examples of the sdk inside the netbeans , but when I open them I get the message : "Problem - the project uses platform CLDC Sun Java(TM) Micro Edition SDK 3.0 EA", but it was not found. Create platform named like this - I tried to do it , but it doesn't help.
    Is there any way of overcoming this?

    Ok , I found the solution.
    I installed the Sun Java Wireless Toolkit for CLDC ver 2.5.2.2_01 directly (not as part of the SDK 3.0) , then added new platform and a new project configuration
    according to the new platform.
    In case someone else stumbles on that....

  • Bad installation of Java Platform Micro Edition SDK 3.0 - Can't uninstall

    Hi,
    I tried installing the Java Platform Micro Edition SDK 3.0 tonight and it didn't work (I guess the thing doesn't like it when you're running Win7 x64 with the latest JDK for some reason...). Anyways, it installed fine but on first run it got stuck at the nag screen with IOExceptions, etc. and never finished starting. So I decided to uninstall and guess what? I can't uninstall it because it tells me it can't run the uninstaller program since it can't load a win32 dll on a 64-bit machine...
    So I resorted to deleting the folder and running a registry cleaner :/ However, so I can properly clean things up, I'd like to know where else the SDK put files or dlls and which ones.
    Thanks for your help!
    -LordPhoenix

    I'm having exact the same problem, but I'm using Vista x64.
    I tried to uninstall x64 version of the Java SE SDK and installed the x86 version instead, but it didn't help :/
    So could please anyone post a solution to this.
    EDIT: actually I at least managed to uninstall it using the SE SDK x86.
    But still, is there any way to use Java ME SDK on Vista x64?
    Edited by: sl2wm on Sep 13, 2009 5:18 PM

  • In System Preferences- Sharing- Remote Management the address doesn't reflect the computer name.

    Hi,
    I have a dual boot system with two seperate hard drives, Lion and Snow Leopard.  One drive has a name of mac-pro2 for Lion and mac-pro2sl for Snow Leopard.  Something happened when I rebooted from Snow Leopard to Lion that in System Preferences->Sharing->Remote Management that the computer name had changed to the Snow Leopard  computer name it has a address and name of mac-pro2sl.  I have change the Computer Name: and it worked and was changed to mac-pro2 but Remote Management still has the address of mac-pro2sl and doesn't reflect the computer name.  I can ssh into Lion with mac-pro2sl but I have a conflict with from other computers when I log in with a warning of "Remote Host Identification has Changed".  How do you change the computer name for remote management and ssh?
    I have changed the hostname and it reflects the change when you login, mac-pro2 for Lion.  But when you ssh into Lion it requires mac-pro2sl not mac-pro2.
    When I change the computer name it shows below that the name in "Remote Management: On" "computer using the address mac-pro2sl" is selected but then doesn't change but remains the same when the dialog closes.  How do you change the address to reflect the computer name? Is there a command line utility?
    Thanks for any help.

    If this problem is due to DNS, look in your configuration. What is the number one DNS server address? Is it local, or is it on the Internet at large? Or post the Address here and folks can help you look it up.
    192.168.yyy.zzz
    10.xxx.yyy.zzz
    172.xxx.yyy.zzz
    are all strictly local.

  • He Genres on the iPod doesn't reflect the same as that of my iTunes.

    he Genres on the iPod doesn't reflect the same as that of my iTunes. It shows unknown as a genre. Issue started when upgraded to the recent os. Tried clearing the tag info and putting them back in but no cigars... fix?

    It sounds as though the hold switch on the top of the iPod has been moved to the "hold" position (which will display the small lock icon). Sliding it to the left should unlock your iPod.
    The hold switch is meant to disable all functions so accidentally pressing one of the controls will not do anything (prevents accidentally turning on the iPod, for instance).

  • Change to RSViewerPage.aspx doesn't reflect the change to the Sharepoint

    I am trying to update RSViewer.aspx file under …15/TEMPLATE/LAYOUTS/ReportServer. It seems like the changes I made isn’t reflected on the sharepoint. Please let me know if you can give any suggestion to make this work.
    Note: I have made same changes on Test sharepoint and everything is fine, just Live version doesn’t accept the changes.
    Many Thanks.

    Hi,
    The RSViewerPage.aspx is a Out the boxed application page in the _Layouts folder, Modifying the files that are installed by SharePoint is not supported. Because when microsoft decides to change this page in a future release all your changes are gone.
    What you can do is create your own application page.
    Create a copy of the Layouts folder.
    Custom the RSViewerPage.aspx and add your own branding.
    For the Site Collections, Point the IIS Virtual Directory to the newly copied layouts folder.
    For detailed information, refer to the following KB:
    https://support.microsoft.com/en-us/kb/944105?wa=wsignin1.0
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Java 2 Micro Edition

    Hi
    To develop Java applications in the J2ME platform, can I develop it on the Windows platform of the desktop PC? In essence, from the download page of the J2ME, it looks like the downloads are for palmOS, etc. Can I develop the applications on the Windows platform on my desktop PC and then port them to the mobile device?
    In essence, do anyone know how to develop Java applications for the J2ME platform step by step? The tutorial provided at the Sun's Tutorial only shows me how to develop a Java application and applet using the J2SE SDK.
    many grateful thanks in advance.
    best regards
    Kher Lee

    To develop Java applications in the J2ME platform, can
    I develop it on the Windows platform of the desktop
    PC? Yes, of course you can. Download the Sun One's Studio ME for developing your midlets.
    In essence, from the download page of the J2ME,
    it looks like the downloads are for palmOS, etc. Can I
    develop the applications on the Windows platform on my
    desktop PC and then port them to the mobile device?In order to deploy your midlets, your PC needs to have an IR port. Then you send your packed JAR and JAD file over to your device.
    In essence, do anyone know how to develop Java
    applications for the J2ME platform step by step? The
    tutorial provided at the Sun's Tutorial only shows me
    how to develop a Java application and applet using the
    J2SE SDK.Yes, I do know how to do it.

  • SAP and Java 2 Micro Edition

    Hi Experts,
    I am currently writing a series of blogs on Mobilizing SAP using J2ME mobile client.
    Please have at my following blog and let me know your comments there about the same..
    <a href="/people/tanveer.shaikh2/blog/2006/09/28/mobilizing-sap SAP</a>
    <a href="/people/tanveer.shaikh2/blog/2006/10/19/mobilizing-sap--episode-1 SAP Episode 1</a>
    <a href="/people/tanveer.shaikh2/blog/2006/10/26/mobilizing-sap--the-j2me-way--episode-2 SAP - The J2ME Way - Episode 2</a>
    Any comments, suggestions and advice are most welcome..
    Regards,
    Tanveer S .

    Hello impseth,
    It's really your call. J2ME is really a subset of J2SE. If you take the J2SE route, much of the APIs will not be applicable to J2ME. On the other hand, most of the literature deals with J2SE. Which makes learning "Java" much easier. My recommendation would be to learn both, because a some point you might want to write server side applications or at least understand how Java works on the server side. Start with J2SE.
    Merwyn,
    Developer Technical Support,
    http://www.sun.com/developers/support.

  • What do you think of Java 2 Micro Edition?

    Hi,
    I would like to know, if anyone used the J2ME, and if so, what do you think of it. I am thinking of designing a middleware for mobile devices such as PDA, and I would like to know your thoughts on it.
    Thanks
    Neil

    I haven't used it yet, I am reading about it. I am not sure if you have seen this link:
    http://java.sun.com/products/cldc/
    Good Luck.

  • Why can't I edit photos that I saved from the internet?

    I'm completely new to this, so dumb it down as much as is possible. I am working on setting up a webpage and have had to manually go into the client's old web page and save any images on there. Now when I open them up in photoshop, it won't let me edit them, for some reason or another.
    I can't cut them out of a background, change the colors, add text or do anything to change the layer. All the layers are locked!!!
    Am I missing something? Do I need to save it as a certain file type? It keeps telling me to rasterize it, but 1. I don't know what that is and 2. when I go to Layer>Rasterize, it doesn't work anyway.
    Skip the part where you make fun of me because I'm sure this is a real dummy mistake, and just get to the part where you tell me how to fix it!
    I'm working with CS4 versions.
    Thanks!
    Sara

    What file-format and color-mode are those images?

  • Why can't I edit photos (other than crop) since the update? LG G2

    I had no problems with my photo gallery prior to the update but once I downloaded it, I am stuck without being able to modify (enhance, etc.) my pics. I can still crop... yay. Why would the update get rid of a feature that makes my camera nearly useless now?! My update  is called VS98039A

  • I just got Windows 7 - and it's on a new computer, so there are no old settings that need to be 'fixed'. Why does Firefox open "squished"? It doesn't fill the whole page. It's margins are about 4 inches in, on both the right and the left.

    I have no other details to add, that I know of. Firefox just does not fill the entire page.

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • Can't figure out why all of my editable text fields are filling with the same text.

    I running Adobe Reader 7.  I was given a PDF file that has three seperate text fields.  I typed test into the first field, and the other two fields have filled with the exact same text.  What is up with that?  I've enclosed the file for your enjoyment.

    The fields has the same name.

  • Purchased GCU, but account doesn't reflect the purchase

    On December 22, 2013, my wife purchased Battlefield 4 (xbox one) and a 2-year subscription to GCU.  She used the coupon that we had previously received to get GCU for $30.  Her receipt reflected that she had purchased GCU, but said that it was $0.00 because of some bundle offer.
    After she left the store, she called Best Buy customer service to confirm that she had, in fact, successfully purchased a 2-year subscription.  After approximately 5 transfers, this was confirmed.
    All was fine until I noticed that our account indicated that our GCU would expire on February 10, 2014 (NOT 2 years from December 22nd).  She again called Best Buy customer service to  address the issue and after 6 transfers and being hung up on, "Rudy" confirmed that we had a 2-year subscription from February 10, 2014 through 2016.  "Rudy" said that we would be receiving an email shortly.  We are still waiting on this email (it has been 5 days).
    Is there anyone here that can give me an explanation of what happened?  All I want is what our receipt and Best Buy customer service has stated that we should already have, the 2-year subscription.  If we messed something up or didn't understand something on our end, that's fine, but I would at least like to be given the opportunity to actually use the $30 coupon.
    Any and all help is appreciated.
    -Matt

    Hello FliPSide186,
    While I’m happy to see you were able to get things taken care of with your Gamers Club Unlocked renewal, I apologize for the amount of effort it took.
    Thanks for letting us know that your issue was resolved. If you have any other questions or concerns, please feel free to share them with us! 
    Brian|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • List distribution doesn't reflect the treatment split, Siebel Marketing 8.1

    hi,
    I have a segment tree with 2 branches. The first branch is assigned to treatment A, the other one to treatment B. If I load the campaign then 2 lists are generated and the number of clients reflect the treatment splits. However if I launch the campaign then the produced 2 vendor lists contain all clients of the segment tree. I expected that the vendor lists will also contain only as many clients as many I assigned to each treatment. Am I wrong or I'm missing something in the configuration?
    thanks
    Gyorgy

    I didn't remember if I already tried it, anyway, I tried now:
    asa-oi(config)# sh run nat
    nat (inside,outside) source static any any destination static PoolAnyConnect PoolAnyConnect route-lookup
    nat (outside,inside) source static PoolAnyConnect PoolAnyConnect route-lookup
    but no difference, had the same problem...
    Btw, when I try to connect via SSH, these logs messages appears: (don't know if it can help)
    Syslog ID: 302013
    Source IP Add: 10.6.4.1
    Source Port: 2181
    Dest IP Add: 10.4.11.2
    Dest Port: 22
    Description: Built inbound TCP connection 202412 for outside:10.6.4.1/2181 (10.6.4.1/2181)(LOCAL\VpnAnyConnect) to identity:10.4.11.2/22 (10.4.11.2/22) (VpnAnyConnect)
    Syslog ID: 302014
    Source IP Add: 10.6.4.1
    Source Port: 2181
    Dest IP Add: 10.4.11.2
    Dest Port: 22
    Description: Teardown TCP connection 202412 for outside:10.6.4.1/2181(LOCAL\VpnAnyConnect) to identity:10.4.11.2/22 duration 0:00:30 bytes 0 SYN Timeout (VpnAnyConnect)

Maybe you are looking for

  • Freezing, mouse moves, fine in safe mode... help!

    macbook stopped working this morning. everything froze- i get spinning circle of death, but cursor moves. running maveriks. ran all disk permissions, repaired disk etc and nothing seems to work- did this after booting to recovery- multiple times. boo

  • GRC AC 10 SP13 - workflow not routing to multiple role owners

    hello We are experiencing issues in our production MSMP workflow where an access request with multiple business roles are not being routed to role owners after manager approval. The request contains four business roles. Three business roles have thre

  • Different bars in column chart

    Hi All I want to show a column/bar chart with huge amount of data. Here each bar should be in different colors. May be five to six colors dynamically changing regularly. Is there any way to add custom bars to the chart like renderer for datagrid. Any

  • Os update failure system reverts

    get a failure when updating and system has to revert. I restored the system to original and still have the same problem. The system tells me it has updates. I tell it to go ahead which takes hours and then it fails. Anyone have any suggestions. I hav

  • AI CC installation

    I used AI CC 2 month ago on monthly base. Deinstalled it and try to start new. But cannot download it again. The app manager says its already installed with a current version. Does anybody now how to deal with this ? Best Carol