JAR packages with J2ME and MIDP devices

Some devices that use J2ME have limitted the size of java applications.
Here's an example, device has 120 Kb of memory, but max. size of downloadable app is 30 Kb. Is it possible to make JAR packages like in J2SE so that the the application (the classes of the app) are devided to two or more JARs and get it work. Since this is an easy workaround this limit.
In J2SE grouping app into many JARs is possible if I am right.. JAR-docs propably quides my way... I am just wondering if this is possible J2ME
P_TR

you may use the special .jar tool to do it.
www.pivotonic.com
JavaJar1.1
you can add files to .jar file like winzip.
and you can edit and check correct the manifest file in JavaJar editor.
why not try it?

Similar Messages

  • Great problem with bluetooth and MIDP devices

    Hello all,
    I'm making a client/server application with bluetooth JSR82 Serial Port Profile (SPP). The clients are mobile phones (J2ME application) that want to get informations from a server (J2SE application) that publishes a service.
    My system works well with Sun Wireless Toolkit: it works fine also if I try to start a lot of servers and a lot of clients and a lot of other bluetooth device.
    When I install it on actual environment like a personal computer with BlueCove stack and mobile phone like Nokia 6600 it works ONLY if there are 1 client and 1 server.
    The problem is that the mobile phone doesn't find the server if there are other Bluetooth devices enabled!!!
    I've made a lot of changes in my code but it don't work!
    At first my client application works in this way:
    1) start finding Bluetooth devices
    2) a device found -> start finding services on this device
    3) a server service is found -> stop device inquiry and connect to the server
    4) else client continues to search devices and iterates like above
    This solution works WELL on Sun toolkit but not on Nokia 6600 and Bluecove. So i changed it in this way:
    1) start finding all bluetooth devices
    2) after device inquiry stops:
    3a) start finding all services on first device found... waiting for end
    3b) start finding all services on seconddevice found... waiting for end
    3x) ....
    4) connect to the first service found
    Also this solution doesn't work with Nokia 6600 and BlueCove!!!!!!!
    I'm getting crazy!!!
    Thanks,
    Renato
    ps Sorry for my English...

    Hi guys, Im new here and its the first time i get to develop something using J2ME and J2SE toogether via bluetooth! You seem to be more expert than me so i was wandering if you could help me with some literature or even with some code.
    I even tryed BlueCove but Im having some trouble! Please help me!!!
    email me at: [email protected]

  • J2ME and MIDP beginner questions

    Can anyone recommend editor/IDE, toolkit etc. for coding, building and testing MIDP2.0 apps/games?
    Until now I've coded a game using J2SE. I used Forte 3.0 for coding and compiling, and IE5.5 for testing.
    Now I want to code mobile games/apps using J2ME and MIDP 2.0. What software do I need? I downloaded Sun ONE studio 4 ME and wireless toolkit 2.0, but are kind of struggeling with it :)
    Regards
    Hallvard

    Ok, I found out that the toolkit compiled the .java files and could bulid the .jar and .jad files, and then test the MIDLet on the emulator.
    But what about a good editor/IDE for MIDLets? In Sun ONE studio ME i finally managed to create a HelloWorld Midlet (with new project wizard), and build and run it in the toolkit.
    I also heard that Borland JBuilder Mobile Edition was a nice IDE for J2ME/MIDLets.
    Hallvard

  • Does RM29.90 per month photography package with photoshop and lightrooms come with Adobe bridge app as well?

    Does RM29.90 per month photography package with photoshop and lightrooms come with Adobe bridge app as well?

    Does RM29.90 per month photography package with photoshop and lightrooms come with Adobe bridge app as well?

  • Jar file with JRE and lib's

    I'd like to create a jar file that also contains the JRE that I want to use as well as some libraries I'm using. Is that possible?
    I have created in the past a batch file that points to an specific JRE that I package with my classes in a directory. But this time I'd like to package it in the jar file as well.
    Thanks!

    I'd like to create a jar file that also contains the
    JRE that I want to use as well as some libraries I'm
    using. Is that possible?Not and run that JRE. You have to extract it from the jar and put it in a directory. On Windows, this will allow you to run only Java applications from the commandline (not applets or anything associated with a browser).
    I have created in the past a batch file that points
    to an specific JRE that I package with my classes in
    a directory. But this time I'd like to package it in
    the jar file as well.
    Thanks!

  • Using HH2 as WAP with Infinity and Android devices

    We have just had Infinity installed.
    Before Infinity I had two HH2s set up as waireless access points using the guide prodiced by Keith of this neighbourhood.  They conected back to the HH3 via two TP-Link powerlink units.  It all worked well.  I never got round to resetting the SSID to the same on all 3 hubs which meant as you moved from one side of the house to the other you have to choose a different router.
    BT set up Infinity today and it was working fine with my original setup however on the spur of the moment I decided I would change the SSID for all three hubs (two original HH2s and the new HH5).
    I started with HH5 and it worked fine.  I then worked my way around the other two HH2s and it seemed to work for a while and then suddenly when I was in the same room as the HH5 my Android tablet could not get the internet.  Logging into the IP address for the HH5 it showed that it was connected.  The blue linelight was on.  The internet radio in the cooking room was connected and working, presumably connected to the nearest HH2.
    I reset the wireless settings on the HH5 but still my tablet and my Android phone got the error page saying that there was no internet connection.  After diconnecting a couple of times I eventually got the Android tablet connecting to both the HH5 and to the common SSID now shared by the HH2s.  My phone wont connect at all.
    As a test I then connected my work laptop via a cable connection to a TP-Link and it worked fine.  I then connected it via the commn SSID (HH2 only) and the HH3 SSID and agin it works fine.  This thread is created on WiFi to the common SSID.
    Sorry for the long description.
    Two questions:
    1.  When setting the common SSID I used the same passkey for all three routers, was this the best way to do it?
    2.  Why has my Android phone lost connectivity and how do I recover it?
    PS 3rd question, why wont this forum accept the word "kit c hen"?
    PPS I've just checked on the settings within HH5 and the phone is showing as connected but to the 2.4GHz signal.

    There are a couple of different guides on my website, one of them is by Jarviser, so I don`t know which one you are using.
    If you make all the SSIDs the same, then Android devices tend to get confused, as they see the same SSID, but with a different BSSID (Wireless MAC address).
    This can cause them to fail to get a valid IP address, so you get no connectivity, this is a common issue with BT Wifi hotspots as well, when Android devices are used.
    It would be better to use slightly different SSIDS, and then allow the devices to automatically select the one that is in range.
    Make sure that the HH2s are on different channels, and make sure that smart wireless, and smart setup is disabled on the HH5.
    To answer your last question, its part of the spam protection that was implemented on this forum a while back.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • How do you create a jar file with txt and classes?

    Hey, I'm trying to create code to create a jar file with a text file, but I can't figure out how to add the text file. Here is what I have so far:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
            }It creates the .jar file with the correct manifest but I can't get it to write the test.txt or anything else into the jar file.
    -Gandolf
    Edited by: GanMatt on Jun 18, 2009 8:18 AM
    Edited by: GanMatt on Jun 18, 2009 8:19 AM

    Alright, my question has changed. Here's the code:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.write("Hi".getBytes());
                out.flush();
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this,ex.toString(),"BUG!",JOptionPane.INFORMATION_MESSAGE);
            }It creates the jar file with the txt file inside it, but I can't write "Hi" inside of the text file. Any ideas?
    -Gandolf

  • Problems with J2ME and JAX-RPC

    Hi,
    I am trying to write a J2ME web service client. I have generated the stub classes with wscompile from the wsdl document at http://www.webservicex.net/stockquote.asmx?WSDL. However, when I try to run the MIDlet I always get the following error message:
    [wtkpreverify] Error preverifying class javax.xml.rpc.encoding.Serializer
    [wtkpreverify] java/lang/NoClassDefFoundError: java/io/Serializable
    I am using Eclipse 3.1, Antenna 0.9.13, the Web Service Development Kit 2.0 and the WTK 2.3 beta.
    The necessary jars (the WTK libs, rt.jar from the JRE, activation, mail, saaj and jax-rpc libraries from the WSDK) have been included in my classpath.
    Does anybody know how to fix this problem? Any help is much appreciated.
    Regards,
    Motivated

    Thanks, that was my mistake.
    Instead of using wscompile, you must generate the stub classes with the WTK. Then, you set a reference to the j2me-ws.jar (JSR-172). No additional libraries from the Web Service Development Kit are required.

  • Safari-Bookmarks won't sync with iCloud and other devices, MobileMe still "active"?

    Hello, I've got a problem with my iMac runnning 10.7.5
    "He" does not want to sync bookmarks (safari) from the local  iMac to anywhere else.
    (I also use a Macbook white, iPad 1 and iPhone 4).
    Not to other devices, not to iCloud.
    I can switch off and on the "sync bookmarks"-checkbox as often as i want - nothing happens after "merge".
    One ore maybe interesting Information:
    In my system-Settings i can still click on "MobileMe" and the button "move to iCloud" ist still shown.
    If I press the button, I see the Erorr-message "mobileme has ended" or something linke this.
    If I start the MobileMe-"Application", I get an error after some seconds "service not available".
    Some months ago i changed from a older iMac to the newer one (using TimeMachine-Restore).
    I can not remember if the problem came with this switch or not.
    Any hints?
    Thanks!
    Greetings from the cold Germany.

    Yes, I could disconnect from Mobileme but this does not change anything regarding the problem.
    bookmarks are still not transfered to other devices.
    In the system-Settings, the mobileMe-Entry is still available and I coud try to "sign on to mobileme"
    Disable and enable bookmark-sync after disconnecting from mobileme does not change anything.
    The Merge of the Bookmars (question comes after disable and enable again) takes ohly 0,0005 seconds to merge. Very fast.
    One more thing: if I log on to iCloud, I can nowhere find anything regarding bookmarks.
    Where to find the bookmarks online normally??? I remember some years ago, using the running mobileme-service, i could access my bookmarks from any pc all around the world...
    Any further hints?

  • Problems with EA2700 and Android devices

    I enjoyed EA2700 for more than 3 months so far until I decided to change my cell phone to Galaxy S3.
    I have my router operating 2.4Ghz and 5Ghz simultaneously, providing perfect internet access to my two windows 7 laptops, mac mini and iPad. This is not the case when I try to hook my Galaxy S3 phone and Galaxy Tab 2 7.0. This two korean devices have a real problem using the router for internet. Both the tablet and the phone connect to the router and have strong signal, but there is no ping going through nor any other internet app works. The router is set to WPA2/WPA Mixed personal sec mode and auto channel. I even try to make it open, but even then the Android devices connect but don't have an internet access. In the same time the rest of the home pcs and mac work perfectly.
    I tried, for the two last days different approaches like upgrading the router firmware, installing the cloud and the smart wi-fi interface, removing the security and opening the network…. it didn't work! What I figure out so far that if I set a guess account the devices connect without problem and have internet, although I have to manually enter  the password for the guess account, which dialogue is provided through a web page you have to navigate to before attempting to use internet. I though the problem could be with the Samsung s3 and the tablet 2 7.0,  and had them several time reset to their factory settings.
    I tried connecting and old WRT 120N router and it worked fine!!!! just this EA2700 is still not usable with android devices running Android 4.0 OS.
    Has somebody experienced the similar problem please share the found solution, otherwise I have to change the EA2700 i guess.
    Solved!
    Go to Solution.

    @NO_SCREENNAME@ wrote:
    I enjoyed EA2700 for more than 3 months so far until I decided to change my cell phone to Galaxy S3.
    I have my router operating 2.4Ghz and 5Ghz simultaneously, providing perfect internet access to my two windows 7 laptops, mac mini and iPad. This is not the case when I try to hook my Galaxy S3 phone and Galaxy Tab 2 7.0. This two korean devices have a real problem using the router for internet. Both the tablet and the phone connect to the router and have strong signal, but there is no ping going through nor any other internet app works. The router is set to WPA2/WPA Mixed personal sec mode and auto channel. I even try to make it open, but even then the Android devices connect but don't have an internet access. In the same time the rest of the home pcs and mac work perfectly.
    I tried, for the two last days different approaches like upgrading the router firmware, installing the cloud and the smart wi-fi interface, removing the security and opening the network…. it didn't work! What I figure out so far that if I set a guess account the devices connect without problem and have internet, although I have to manually enter  the password for the guess account, which dialogue is provided through a web page you have to navigate to before attempting to use internet. I though the problem could be with the Samsung s3 and the tablet 2 7.0,  and had them several time reset to their factory settings.
    I tried connecting and old WRT 120N router and it worked fine!!!! just this EA2700 is still not usable with android devices running Android 4.0 OS.
    Has somebody experienced the similar problem please share the found solution, otherwise I have to change the EA2700 i guess.
    you may wanna try using Wireless B/G Only for network mode on 2.4GHz. check if your devices can connect to the network successfully. there was an issue with Android devices connecting to N networks before so this might be a fix. however, it will rate limit your connection speeds to 54Mbs at best.
    there's also a workaround you can try on the android devices. ensure wifi is set to enable at start up. turn off wifi and reboot the device. verify your connection status. since your devices have already connected to the network, they should reconnect to the network automatically. check if you can go online from there.

  • Speeds in gigabit / 100 mbit network with TC and other devices

    My network has a Netgear WGT-624, that serves as DHCP server, NAT and Internet connection.
    We have two mac minis (gigabit network), a G4 (standard Ethernet), some PC laptops (running 802.11b/g) and some laser printers and AIOs that runs 100 mbit Ethernet.
    There's also an ancient Netgear hub, that I will replace with a D-link gigabit switch. The switch will serve the TC, a printer and the G4.
    From what I understand, devices with gigabit will be able to communicate with other gigabit devices on the same network. But, will it work even if the TC is NOT used as the primary AP, but set in brigded mode? There's quite a difference in backup speed if the TC and the minis could talk to each other with gigabit.

    My network has a Netgear WGT-624, that serves as DHCP server, NAT and Internet connection.
    We have two mac minis (gigabit network), a G4 (standard Ethernet), some PC laptops (running 802.11b/g) and some laser printers and AIOs that runs 100 mbit Ethernet.
    There's also an ancient Netgear hub, that I will replace with a D-link gigabit switch. The switch will serve the TC, a printer and the G4.
    From what I understand, devices with gigabit will be able to communicate with other gigabit devices on the same network. But, will it work even if the TC is NOT used as the primary AP, but set in brigded mode? There's quite a difference in backup speed if the TC and the minis could talk to each other with gigabit.

  • Totally confused with iCloud and multiple devices

    Ok, So we have two each of the iPods, iPads and now iPhones.  Do we all share the same iCloud? Can we share apps through the cloud? How do I switch my iPad to the new one I got to give this one to my son. I am so new to all this apple stuff. Only been a few months and I'm still really confused.  What all goes to the iCloud? How do we see what's in the iCloud?  I really the the idiots instructions I think to figure this all out?  Can anyone help me?  How can I print from the iPad?  Everything I see says iOS 10 something?  I believe I only have 6 something? 

    Do we all share the same iCloud?
    icloud is designed so that only one user uses it to keep his/her devices in sync.  When multiple users use the same icloud account, they will then be sharing the same email address, contacts, calendars, notes, etc.  Usually that is not what two people want to do.
    Can we share apps through the cloud?
    You buy apps from the itunes store, that's different than icloud, and multiple users can use the same itunes account so that they can share apps, music, etc.  For a family, everyone usually uses the same Apple ID for an itunes account and individual Apple IDs for their icloud accounts.
    How do I switch my iPad to the new one I got to give this one to my son.
    What do you mean by "switch.. ipad to the new one"?
    What all goes to the iCloud?
    Backups of iOS devices, Apple services that you turn on to share data (settings>icloud; on an iOS device), third party apps that use icloud to sync their data between devices, email, photo stream, and more.
    How do we see what's in the iCloud? 
    Icloud is designed primarily for syncing data between the devices of the user - like getting all computers and devices to have the same contacts or calendars.  When you set up syncing (settings>icloud, turn on the services you want synced between your devices), some of that data will also be available to a computer's browser when you log into icloud.com.  Otherwise you view the data using the associated app, like the Calendar app to see events.  Other things that may be on icloud, like backups cannot be seen.  Also iCloud does not provide a photo gallary that others can view in a browser.
    How can I print from the iPad? 
    For that you need an "airprint" compatible printer. See,
    http://support.apple.com/kb/ht4356
    You can also print to a printer that's connected to a computer, but that computer needs special software, like Printopia for macs.
    Everything I see says iOS 10 something?  I believe I only have 6 something?
    There is no "10", version 6 is the current one.  You are probably thinking of OSX, whose versions are 10.x.y.  That's for macs, not iOS devices.

  • A J2ME and MIDP 2 question

    2 Questions
    1. If I have a sprite on a layer but the layer manager is only showing a part of the layer and the sprite is not on that part of the screen are any resources being taken up by the sprite? If so what would be a good way to manage sprites (in this case enemies) that have a predetermined position on the much larger layer that need to be added to the layer when the screen is visible?
    2. What is the largest size I can use for a image that I am going to be using as my game area?

    1: yes, the sprite is using resources. it uses space from the offscreen buffer.
    i suppose that you are a game buff. there are two types of having bbiigg maps. one is zelda type (gbc). and the other is pokemon type(gbc). in zelda type, each screen is one layer, and you move from screen to screen by moving from layer to layer, with a 2d matrix of layers coming together to make a map.
    in pokemon type, there is one bbbbbbbbbbiiiiiiiiiigggggggggg layer through which you scroll smoothly. this is tougher. best is to have a condition for each sprite like isVisible. if it is false, suspend all animations for that sprite. if it is on the screen, start it's animation.
    You can divide this into smaller layers by using tricks like 'doors' through which you pass through to go to other layers. never have a layer too big because it will kill performance.
    for an image the largest size can be indeterminate, as long as you have the space for it on the heap. also only a part of it as large as the screen size can be displayed at once.
    hope this helps
    Arjun

  • Installing a package with "-S" and few versions available

    What if I install from some repo "pacman -S app" and there are few versions of "app" and I don't concretize it for pacman? What version will it install? I know that with "-U" I can tell it what version to install. But how does "-S" behave without concretizing?

    You can specify the repository you want pacman to use.
    pacman -S repo/program
    Or you can specify the version:
    pacman -S program=version

  • Installing package with -U and Ignoring Signatures

    If I want to install a package using -U but the package isn't signed, can I tell pacman to SigLevel = Never for this one transaction, rather than having to edit pacman.conf, install, then change pacman.conf back?
    # pacman -U http://www.example.com/foobar-20130417-1-any.pkg.tar.xz
    foobar-20130417-1-any 1180.0 B 1152K/s 00:00 [#############################################] 100%
    loading packages...
    error: /var/cache/pacman/pkg/foobar-20130417-1-any.pkg.tar.xz: signature format errorerror: GPGME error: No data
    error: '/var/cache/pacman/pkg/foobar-20130417-1-any.pkg.tar.xz': invalid or corrupted package (PGP signature)

    teateawhy wrote:
    Jristz wrote:
    LocalFileSigLevel = Never
    located on manpages
    why this is Trusted by default??
    Do you trust yourself?
    in this case is unnecesary have a LocalFileSigLevel because a common person Trust in their/yourself and if one going to install any from a local file, what is the point of have this if one troust in theirself

Maybe you are looking for