Help in Java Micro Edition SDK 3.0 EA...

Hi, I am using the Java Micro Edition SDK 3.0 EA version. I have a problem that when i write code to access the RecordStore, it does not seem to work. Plus, for the FileConnection programs, where do i store the accessible file structure on the disk. In WTK, it was under the appdb of the specified emulator, but i dont know the path from where the filesystem is mounted.
Another problem is that, I want to create a simple Java class in a separate file in the SDK. But, when i right click and select "New" on the project, it only shows options to create MIDlets or MIDlet Canvas files..
Any help will be highly appreciated. Thanks..:-)

About the file structure in FileConnection, in NetBeans it is in C:\Documents and Settings\[your user name]\j2mewtk\2.5.2\appdb\root
You can change the root folder if you go to "manage emulators", then in "tools & extensions", click on "open preferences" and then select "storage". I don't know if SDK 3.0 has it too... sorry... I switched to NetBeans because it has more options...
About creating a separate file, I always did it manually, adding a .java file to the src directory (with notepad, for example). Again with the full NetBeans, right-clicking in the project gives you an option to create a new Java class so you don't have to do it manually.
About the record store, I don't know, sorry... But I answered 2 of 3! :)

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

  • Question about Java Micro Edition

    Hello,
    I am interested about writing a program for PDAs. These seem to be running the Java Micro Edition, so I guess this is a good choice. But what about programming the GUI with the j2me? Afaik, it does not support swing, and the specifications are so full of abbreviations that I do not undertand that I really don't know other than to simply ask here about the possibilities of GUI programming with j2me, is there a "standard" gui library for j2me, or is it device-dependant, and is it possible to install the j2me under windows/linux for developing and testing purposes?
    Help please.. ;-)
    Thanks
    Jan

    thx :) J2ME seems to be very interesting. But zeb is right with the post in the discussion thread for this article, "where to start" is an important questions. So please, sun, make it easier for us to us (hobby-)programmers to adopt J2ME..
    I found this one alternatively:
    www.ewesoft.com
    does anyone have experiences with it?
    Jan

  • Java Micro Edition and maps

    Hello all,
    I have recently mashed together a desktop application using swinglabs JxMapViewer. JxMapViewer basically does all the map downloading, rendering, etc for me and lets me concentrate on my application.
    Now I wish to port my application to Java Micro Edition, but JxMapViewer unfortunately doesn't work in Java ME. So I need a replacement.
    Does anyone know of a vendor independent (as in can load maps from many different servers, google, yahoo, nasa) mapping api that is designed to work under Java ME?
    Jaxie

    Might better go here http://wireless.java.sun.com/
    or here http://forums.java.sun.com/wireless/

  • Java Micro Edition

    I am developing an application for the Palm OS, I am using Suns Studio ONE micro edition. I am having a problem setting the size of an image, I add the Image to ImageItem, ImageItem is a subclass of Item which has a setPreferredSize method, but it tells me it does not recognise the method, According to the API this feature has be included since MIDP 1.0. I also tryed setting the size on a Item object but got the same error.
    If there is anyone who can help I would be much appreciated. Or if i am asking this question on the wrong form let us know
    Thanks
    Noel

    Might better go here http://wireless.java.sun.com/
    or here http://forums.java.sun.com/wireless/

  • Java Micro Edition and Smart Phone Programming

    I have successfully installed Java 2 Micro Edition 8.1 on my computer, and the Micro EditionNnetbeans plugin in.
    I am programming with netbeans.  In order to create a new project, I need to have the
    Java ME Embedded Emulator (Oracle) going on a near-enough virtual mobile phone. I can either
    virtualise my phone entirely, or used a real phone plugged in.
    -Is there a command line tool that comes with my version of micro edition java
    which can generate a JAD file from a completed, manifest-written executable
    .Jar file?
    -Can someone tell me what to do with the emulator to get it running in either mode,
    given that I know all the manufacturing details about my particular Smart Phone?

    It depends on how advanced the midlet will be. If standard components are used, the app should work everywhere, otherwise it need to be tested (it need to be tested always). If You need to write a midlet with Location API You first need to find a device that has this api implemented to test your application and the start writing. One importatnt thing, if a device in it's specification has written that it support Location API it doesn't have to mean that it's supported fully, some functions may not be implemented. As You can see here for instance. If You are not familiar with midlets start with a tutorial for beginners and after finishing try using more advanced APIs.

  • Profile problem with platform Micro Edition sdk 3.0 in Netbeans 6.7

    When I check this platform, only can be checked PBP-1.1 profile and I need PP1.1 profile.
    Do you Know something about this?
    Thanks in advance.

    check,
    (1) C:\java\jme3.0\docs\UserGuide.pdf --> Java ME Platform SDK Features : CDC Stack
    (2) C:\java\netbeans6.7.1\mobility8\config\emulator-descriptor-inst\CDC_Java_TM__Platform_Micro_Edition_SDK_3.0.xml
    all it says,
    JME3.0 stake CDC 1.1 supports only PBP 1.1

  • Java micro editions problems

    I just installed the latest sdk (again) and all the appropriate packages to build micro programs.
    All my environment settings are correct (I'm almost postive)
    but when I try builing a .java file from the j2me wirlesss toolkit I keep getting the error:
    In order to compile you need to use the full j2se sdk.
    I HAVE IT!!!
    What could be the problem?
    I have reinstalled the wirless toolkit about 5 times now. Please advise.

    its obviously not seeing your SDK...
    have u installed the J2SDK in a non-default place?

  • Java Standart Edition 6 vs symbian

    I noticed that the nokia n8 has Java Micro Edition, but there is no Java Standart Edition. In all android phones installed Java Standart Edition. For Java Micro Edition is the ability to write only small, minor program. When will be added full support for Java Standart Edition? It is necessary for write a serious, large programs and for compatibility android java apps with symbian

    This is more of a developer question than a consumer question.  You may try the Java discussion boards on Forum Nokia.  If you do post there, you may want to include the specific functionality of J2SE that you are missing in J2ME so that more experienced developers can suggest alternatives.
    Lumia 920, Lumia 800
    Nokia N8-00 (NAM, Product Code: 059C8T6), Symbian Belle, Type RM-596, 111.030.0609
    Nokia 5800 XpressMusic (NAM, Product Code: 0577454) Software v51.2.007, Type RM-428

  • Uninstalling Java (TM) Platform, Micro Edition Software Development Kit 3.0

    Hi,
    I have installed Java (TM) Platform, Micro Edition Software Development Kit 3.0 EA, and now I want to remove it, however, when running the uninstaller I get a message about the "Java ME SDK is running. Please close Java ME SDK window and try again."
    There is no other Java ME SDK running, I have even tried this in Safe Mode, but with the same error message! My guess the problem is that the installer think itself is the Java ME SDK.
    Do anyone know how to solve this and uninstall the ME SDK?
    I'm running Vista business, 64-bit if that helps.
    BR Psy

    It's strange that there is not any related processes. Have you tried to remove sdk related folders from your home?
    Looks like it's platform dependency issue. Actually 64-bit is not declared as supported by SDK.
    http://java.sun.com/javame/downloads/sdk30ea.jsp#install:
    Required Software
    * Microsoft Windows XP or Vista 32-bit with recent service packs
    * Java SE Development Kit - JDK 1.6 or higher
    * Apple QuickTime player (required to play AMR media on Windows)
    I can suggest you to remove it manually from installation dir, <your_user_home>\javame-sdk, <your_user_home>\.javame-sdk and clean up registry.

  • Java 2 Standard Edition SDK (Software Development Kit)

    Hallo
    I bought the Brain Friendly Head First Java Guide. They recommend to install the Java 2 Standard Edition SDK (Software Development Kit) or greater.
    I click on Java ME SDK3.2 in the New Downloads menu. I read & accept the license agreement. I then go back to the overview menu option, click on download the system just take me back to accept license agreement page.
    What did I do wrong? Please assist me.
    Zelda Kuhn

    I think you're trying to download the wrong thing. This link will give you the right download:
    http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
    --Andy                                                                                                                                                                                                                                                                                                                                                                                   

  • How can i change backgroud color in Java ME Platform SDK 3?

    Hello.
    Yesterday i had donwloaded Java ME Platform SDK 3.0. It is IDE based on NetBeans core, but i didn't find any facility to change default colors. (NetBeans have option to change color theme). I am don't like working when background color is white, i prefer black. So, how change a background color? Can anybody help me to figure this problem out?
    p.s. sorry for my bad english (

    Hello,
    Unfortunately it is not possible. We will think about it for next release. Java ME SDK is not supposed to offer full IDE functionality (e.g. changing editor colors), that's why some features are missing. For full IDE support use NetBeans IDE with Mobility support.

  • Problem in connecting external URLs from Java ME Platform SDK 3.0

    Hello all,
    I am building a mobile application using Java ME Platform SDK 3.0. My application needs to connect to external web services. I have finished development of first module and it is running perfectly from actual mobile device. But the problem is:
    While developing the application I am used to test it with given mobile Emulators in Java ME Platform SDK 3.0. During this test I am not able to connect to external web service if I am testing if within local intranet using proxy server. To solve this I have configured Proxy Setting in the IDE at:
    Tools Menu -> Options -> General -> Manual Proxy Settings and given HTTP Proxy Server and it's Port. The same proxy settings are there in all web browsers in my machine.
    But It is giving error like:
    Unknown error 10054 during socket::read
    Strange thing is that the same application is running perfectly If my PC is not in Intranet and connected to internet directly.
    Please help me that how can I set proxy settings in Java ME Platform SDK 3.0 to get in working?
    Any suggestions regarding this will be helpful for me.
    Thanks to spare some time and read my post,
    Tejas.

    Hi Tejas,
    it should work. I tested it right now and my proxy was used without any problems. The way how you set proxy settings is correct.
    Could you try following to verify that it is a proxy problem or not, please?
    1. run demo application "Demos" (from Start Page or File->Open Sample Project)
    2. choose "HttpView" midlet and start it
    3. choose "cnn"
    4. if proxy is set correctly, you will see page source; otherwise you will get an error message
    If the demo runs fine, the problem is probably somewhere else in the communication.
    There is one limitation in proxy settings. Only proxy without username and password is supported. Isn't it your case?
    Regards,
    Radko

  • Help with java mapping

    PI File adapter has a processing option u2018Empty-Message Handlingu2019 to ignore or Write Empty Files. In case there is no data created after mapping on target side then this option determines whether to write an empty file or not. But there is a catch to this option when it comes to using it with File Content Conversion which is described in SAP Note u2018821267u2019. It states following:
    I configure the receiver channel with File content conversion mode and I set the 'Empty Message Handling' option to ignore. Input payload to the receiver channel is generated out of mapping and it does not have any record sets. However, this payload has a root element. Why does file receiver create empty output file with zero byte size in the target directory?  Example of such a payload generated from mapping is as follows:                                                           
    <?xml version="1.0" encoding="UTF-8"?>                          
    <ns1:test xmlns:ns1="http://abcd.com/ab"></ns1:test>
    solution :
    If the message payload is empty (i.e., zero bytes in size), then File adapter's empty message handling feature does NOT write files into the target directory. On the other hand, if the payload is a valid XML document (as shown in example) that is generated from mapping with just a root element in it, the File Adapter does not treat it as an empty message and accordingly it writes to the target directory. To achieve your objective of not writing files (that have just a single root element) into the target directory, following could be done:
    Using a Java or ABAP Mapping in order to restrict the creation of node itself during mapping. (This cannot be achieved via Message Mapping)
    Using standard adapter modules to do content conversion first and then write file. 
    can someone help with java mapping that can be used in this case?

    Hi,
        You have not mentioned the version of PI you are working in. In case you are working with PI 7.1 or above then here is the java mapping code you need to add after message mapping in the same interface mapping
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class RemoveRootNode extends AbstractTransformation{
         public void execute(InputStream in, OutputStream out)
         throws StreamTransformationException {
    // TODO Auto-generated method stub
    try
         DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
         DocumentBuilder builderel=factory.newDocumentBuilder();
         /*input document in form of XML*/
         Document docIn=builderel.parse(in);
         /*document after parsing*/
         Document docOut=builderel.newDocument();
         TransformerFactory tf=TransformerFactory.newInstance();
         Transformer transform=tf.newTransformer();
         if(docIn.getDocumentElement().hasChildNodes())
              docOut.appendChild(docOut.importNode(docIn.getDocumentElement(),true));
              transform.transform(new DOMSource(docOut), new StreamResult(out));
         else
              out.write(null);
    catch(Exception e)
    public void setParameter(Map arg0) {
    // TODO Auto-generated method stub
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    try{
         RemoveRootNode genFormat=new RemoveRootNode();
         FileInputStream in=new FileInputStream("C:\\apps\\sdn\\rootNode.xml");
         FileOutputStream out=new FileOutputStream("C:\\apps\\sdn\\rootNode1.xml");
         genFormat.execute(in,out);
         catch(Exception e)
         e.printStackTrace();
    public void transform(TransformationInput arg0, TransformationOutput arg1)
              throws StreamTransformationException {
         // TODO Auto-generated method stub
         this.execute(arg0.getInputPayload().getInputStream(), arg1.getOutputPayload().getOutputStream());
    In case you are working in PI 7.0 you can use this code
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class RemoveRootNode implements StreamTransformation{
         public void execute(InputStream in, OutputStream out)
         throws StreamTransformationException {
    // TODO Auto-generated method stub
    try
         DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
         DocumentBuilder builderel=factory.newDocumentBuilder();
         /*input document in form of XML*/
         Document docIn=builderel.parse(in);
         /*document after parsing*/
         Document docOut=builderel.newDocument();
         TransformerFactory tf=TransformerFactory.newInstance();
         Transformer transform=tf.newTransformer();
         if(docIn.getDocumentElement().hasChildNodes())
              docOut.appendChild(docOut.importNode(docIn.getDocumentElement(),true));
              transform.transform(new DOMSource(docOut), new StreamResult(out));
         else
              out.write(null);
    catch(Exception e)
    public void setParameter(Map arg0) {
    // TODO Auto-generated method stub
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    try{
         RemoveRootNode genFormat=new RemoveRootNode();
         FileInputStream in=new FileInputStream("C:\\apps\\sdn\\rootNode.xml");
         FileOutputStream out=new FileOutputStream("C:\\apps\\sdn\\rootNode1.xml");
         genFormat.execute(in,out);
         catch(Exception e)
         e.printStackTrace();
    The code for PI 7.0 should also work for PI 7.1 provided you use the right jar files for compilation, but vice-versa is not true.
    Could you please let us know if this code was useful to you or not?
    Regards
    Anupam
    Edited by: anupamsap on Dec 15, 2011 9:43 AM

Maybe you are looking for