CLDC 1.1, MIDP 2.0 and JSR-75,135 in Java(TM) ME platform SDK 3.0, EA?

Hello.
I am trying to develope a "simple" MP3 playback application using "Java(TM) ME platform SDK 3.0, EA", but I have a problem.
I need to write the program for a device that has CLDC 1.1 and MIDP 2.0 configuration, with optional JSR-75 and JSR-135 packages.
When I start a new MIDP application project, I can choose the platform. Then I have 3 options:
DefaultCldcMsaPhone 1&2 --- CLDC-1.1 & MIDP-2.1 with MMAPI and File Connection (among others)
DefaultCldcPhone 1&2 --- CLDC-1.1 & MIDP-2.1 with MMAPI and File Connection (among others)
DefaultCldcJtwiPhone 1&2 --- CLDC-1.1 & MIDP-2.0 with only MMAPI and Wireless Messaging.
The other options are greyed, so I can not select a combination that has CLDC-1.1, MIDP-2.0, MMAPI and File Connect at the same time... I have tryied switching to the full NetBeans and then I have more flexibility choosing the device configuration and profile, using "Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC" emulator platform. But when I run my application in the emulator, it takes some seconds to start playing the MP3. When I change to SDK 3.0, it plays inmediately.
So my question is, can I create a custom device that has everyting I need with "Java(TM) ME platform SDK 3.0, EA"?
Thank you in advance.
Marc Vallribera i Ros

Hi,
This problem is known and will be resolved in Final Release of SDK.
Now you can try to change configuration in <your_project_path>/project.properties file.
platform.bootclasspath and platform.profile parameters should be changed.
Igor

Similar Messages

  • Converting from MIDP 2.0 and CLDC 1.1 to MIDP 1.0 and CLDC 1.0

    Hello
    I have a Midlet that I set initially to use MIDP 2.0 and CLDC 1.1. I changed the platforms to MIDP 1.0, after i changed to MIDP 1.0 i get an Obfuscation failed with error code 1. error. I am using the NetBeans Progaurd obfuscator.
    When I change to CLDC 1.0 i get a Preverification failed with error code 1 Floating point result not allowed error.
    Can someone please help.

    When I change to CLDC 1.0 i get a Preverification failed with error code 1 Floating point result not allowed error.
    I am using bouncy castle cryptographic classes, i assume these use floating points. This is probably the reason why i cannot convert to CLDC 1.0.
    How about converting to MIDP 2.0?
    null
    null

  • Is MIDP 2.0 and CLDC  inluded in Sun Java Wireless Toolkit 2.5 for CLDC?

    I downloaded the "Sun Java Wireless Toolkit 2.5 for CLDC" and "Sun Java Toolkit 1.0 for CDC" and I have JDK 6.
    do I need to download anything else or is this all I need to make applications for cdc and cldc devices??
    please help.
    thank you.

    Most devices used today support MIDP 2.0, but not all of them support CLDC 1.1. If you can do without floats, it's better to restrict yourself to CLDC 1.0 & MIDP 2.0. Devices which only support MIDP 1.0 aren't suitable for today's game development anyway (performance, resolution...) so personally I'd suggest not bothering with them if you don't have to.
    Here are some lists you can use to help you decide what to use, based on how many devices you want to target:
    http://www.j2mepolish.org/devices/platform.html
    These lists aren't complete, so please let me know if you find better ones.

  • How to write data to file Java ME cldc 1.1 midp 2.0?

    I newly in java me, please help me.
    I make project in NetBeans 7.0.1. and use cldc 1.1 midp 2.0.
    I want to write data to the file.
    How can I do it?
    I try to use FileOutputStream. But it don't exists in java.io
    NetBeans shows me only this list of classes and interfaces in java.io:
    ByteArrayInputStream, ByteArrayOutputStream, DataInput, DataInputStream, DataOutput, DataOutputStream, InputStream, InputStreamReader, OutputStream, OutputStreamWriter, PrintStream, Reader, Writer.
    Why it so short?
    And how I can write data to file?
    Data can be array of bytes (byte[]) or Object it better.

    You must use JSR 75: FileConnection. Please check the following article "Getting Started with the FileConnection APIs":
    http://developers.sun.com/mobility/apis/articles/fileconnection/
    Be sure to use FileSystemRegistry.listRoots().
    And welcome to Java ME development. :)

  • SAP Enterpirse Portal Development standards (JSR 168 and JSR 286)

    Hi
    I am working on SAP Entperprise Portal Assessment. I  heard SAP-EP not supporting JSR 168 and JSR 286 standards.
    Can anyone please let me know what JSR 186  and  JSR 286 standards are and impact in SAP development work.
    Thanks everyone.

    Hi Ravi,
    SAP EP is definitely not supporting JSR 168.
    The next release (Portal on NetWeaver 7.1) will support JSR 286.
    You have to consider that the huge amount of SAPs standard portlets / iViews (addressing Knowledge Management, Employee Self Service, Business Intelligence, etc.) will not be implementations of JSR 286 but so called portal applications or Web Dynpro applications.
    HTH,
    Carsten

  • Spring and JSR 168 Portlet

    I have an application which uses Spring beans and JSR 168 based portlet. I want to know how can i get access to the my spring beans in the portlet controller. I am trying to do the following
    public WebApplicationContext getSpringContext(PortletRequest request) {
    HttpServletRequest servletRequest = (HttpServletRequest)request.getAttribute("javax.servlet.request");
    WebApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(servletRequest
                        .getSession().getServletContext());
    return appContext;
    Actually a NPE happens @ "servletRequest.getSession()"
    The spring beans are initialized during deployment using the spring contextListener
    This code works in other J2EE container which have JSR 168 support, like BEA, JBOSS
    Any help is greatly appreciated.

    OMG!
    Today, I wanted to build a really simple portlet with spring, and deploy it on oc4j / iAS10gR2 - since it hoped it will ease development in the future.
    Your post, doesn't motivate so much - but let's hope I've a bit more luck getting it running :)
    -> Have you looked at the spring-framework 2.0.3 release demos? In the 2.0.3 release a new demo: petportal is included - maybe this helps :)

  • WSRP and JSR 168 Docs

    Can anyone tell me where to find some good documentation (especially tutorials) for WSRP and JSR 168?
    Thanks

    This is a good document for WSRP understanding.
    http://xml.coverpages.org/WSRP-Primerv0920040830a.pdf

  • JSR 82 and jsr 185

    Dear all, I'm interested in mobile phones that support both JSR 75 and JSR 82. Now I've seen that new phone models such as Nokia 3155 or Nokia 6155, and so on, support JSR 75 but not JSR 82.
    Does anybody know if there is a JSR that extend JSR 82?
    because in that case I can use these models as well.
    Thanks a lot,
    Maurizio

    jcp.org is up now... latest version of JSR-82 appears to be 1.1.1. Still need an answer to question 3 though!

  • 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....

  • What is the diffrence between  map and map.entry in core java

    what is the diffrence between map and map.entry in core java . where it will be use ful. any one give one example plz.

    A Map contains Map.Entry's
    e.g.
            Map map = new LinkedHashMap(8);
            map.put(new Integer(1), "one");
            map.put(new Integer(2), "two");
            final Iterator iterator = map.entrySet().iterator();
            while (iterator.hasNext()) {
                Map.Entry entry = (Map.Entry) iterator.next();
                System.out.println("key=" + entry.getKey() + ", value=" + entry.getValue());
            }

  • I'm running 10.5.8 on a MacBook Pro and need to update to Java 7 in order to take a software assessment test for a potential job. The Java app will only upgrade from 10.6 or higher. What can I do?

    I'm running 10.5.8 on a MacBook Pro and need to update to Java 7 to take software assessment tests online for a potential job. What can I do?

    Apple Java for Mac OS X 10.5 Update 10
    Apple Java for Mac OS X 10.6 Update 17
    Apple Java 2013-005
    I would suggest you upgrade your computer's OS minimally to Snow Leopard 10.6.8.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading from Snow Leopard to Lion or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99.
    If you sign into the App Store and try to purchase Mountain Lion but the App Store says your computer is not compatible then you may still be able to upgrade to Lion per the following information.
    A. Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.
    B. Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • Code to set and destroy session variables in Java Server Pages(JSP)

    code to set and destroy session variables in Java Server Pages(JSP)
    we have use following statement to set session variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session variable
    session.setAttribute("userClient","");
    and
    the session.invalidate() is not working
    Plz. solve this probem

    code to set and destroy session variables in Java
    Server Pages(JSP)
    we have use following statement to set session
    variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session
    variable
    session.setAttribute("userClient","");Perhaps if you tried using
    session.setAttribute("userClient", null);
    or
    session.removeAttribute("userClient");
    and
    the session.invalidate() is not workingNot working how?
    >
    Plz. solve this probem

  • How do I mix text and Html format in a java mail?

    How do I mix text and Html format in a java mail? some part I want to keep the text format, the other part I want to use Html functions(like fond, color, etc)

    You don't mix them. Pick one or the other.
    However if you want to have a text version and an HTML version, so that mail readers that don't handle HTML can see regular text instead, then you could produce a "multipart/alternative" message. There's an explanation of how to do that in this article:
    http://www-128.ibm.com/developerworks/java/library/x-xmlist2/

  • How to upload a text file to a webpage and process it using a Java app?

    Apologies if the question is off topic.
    I would like a user to upload a text file to a webpage and have a pre-existing Java application I created process the text file and return the results to the user. The Java application is fairly memory intensive. It is expected that multiple clients will be uploading at the same time. What is the simplest or most efficient method to achieve this?
    Thank you

    This might help you to get started: http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml
    As done in this example, processing the uploaded file in the JSP itself may not be a good idea though. You're better off handling it in your controller servlet or action class.

  • Struts and JSF Integration in OPDk-java based portlet

    Hi,
    thanks in advance for your help.
    I'm developing a PDK java based portlet. For some reasons I cannot use the JSF bridge but I would like to integrate Struts and Jsf in my portlet, using Struts to manage actions and navigation and JSF (with ADF Faces components) for the view. I'm using the Strus-Faces library.
    When I try to submit my portlet form, I receive the error "request URL not found on this server". I'm posting some exstracts of my code.
    It's made of three pages: the main one "Integration1ShowPage", "error" and "result". The MainAction.java displays my mainPage, where there's a form. To keep it easy, when the user submits this form, the ActionName returns "success" and the "result" page should be displayed.
    The MainAction works properly: the portlet is displayed but when I tried to submit the form I receive
    The requested URL /provaDeploy/htdocs/integration1/integration1ShowPage.do was not found on this server.Could you please suggest me something?
    Many many thanks,
    B.
    <struts-config>
    <action-mappings>
      <action path = "/mainAction" type = "strutsjsfintegration1.MainAction">
        <forward name = "success" path = "/faces/htdocs/integration1/integration1ShowPage.faces"/>
      </action>
      <action path = "/nameAction" name = "nameForm"
      input = "/faces/htdocs/integration1/integration1ShowPage.faces" scope = "request"
      type = "strutsjsfintegration1.NameAction">
        <forward name = "success" path = "/faces/htdocs/integration1/result.faces"/>
        <forward name = "failure" path = "/faces/htdocs/integration1/error.faces"/>
        <forward name = "again" path = "faces/htdocs/integration1/integration1ShowPage.faces"/>
      </action>
    </action-mappings>
    <controller>
      <set-property property = "processorClass"
       value="org.apache.struts.faces.application.FacesRequestProcessor"/>
       </controller>
    <message-resources parameter="definitiveStrutsPortlet.ApplicationResources"/>
    </struts-config>

    Hi,
    have a look at this whitepaper for how to use JavaScript in ADF.
    http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
    This link here (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html --> see sample 71) shows an integration sample between a Java Applet and ADF. Its a similar use case to yours
    Frank

Maybe you are looking for