J2ME Extentions

Hi I got some trouble with the j2me extentions :
1.- I have see the online page to add the j2me extentions but
when I set the tools script location and try to run it it's
didn't work.
2. When I create a new project (fellow the demo) I get the following error message error :
jdexec cmd.exe /c C:\jdev903_pre\jdev\bin_j2me\bin\Sun\makeMIDlet C:\jdev903_pre\jdev\bin_j2me\bin\Sun C:\WTK104 C:\jdev903_pre\jdk\bin TestSuite C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\CLASSES.j2meAddin C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\IMAGES.j2meAddin C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\MANIFEST.j2meAddin C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\JAR2ADD.j2meAddin Debug
MIDlet generation from Oracle9i JDeveloper
Working for TestSuite in "C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src" with "C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\CLASSES.j2meAddin" icon "C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\IMAGES.j2meAddin" and "C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\MANIFEST.j2meAddin", plus "C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\JAR2ADD.j2meAddin"
java.io.FileNotFoundException: C:\Documents (Le fichier spicifii est introuvable.
     void java.io.FileInputStream.open(java.lang.String)
          native code
     void java.io.FileInputStream.<init>(java.lang.String)
          FileInputStream.java:64
     void java.io.FileReader.<init>(java.lang.String)
          FileReader.java:38
     void makeUtil.makeExtraCP(java.lang.String, java.lang.String, java.lang.String)
          makeUtil.java:55
     void makeUtil.main(java.lang.String[])
          makeUtil.java:129
'out.bat' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.
Impossible de trouver C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\out.bat
Compiling with Debug Option
java.io.FileNotFoundException: C:\Documents (Le fichier spicifii est introuvable.
     void java.io.FileInputStream.open(java.lang.String)
          native code
     void java.io.FileInputStream.<init>(java.lang.String)
          FileInputStream.java:64
     void java.io.FileReader.<init>(java.lang.String)
          FileReader.java:38
     void makeUtil.makeCompile(java.lang.String, java.lang.String, java.lang.String)
          makeUtil.java:32
     void makeUtil.main(java.lang.String[])
          makeUtil.java:123
'out.bat' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.
Impossible de trouver C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\out.bat
java.io.FileNotFoundException: C:\Documents (Le fichier spicifii est introuvable.
     void java.io.FileInputStream.open(java.lang.String)
          native code
     void java.io.FileInputStream.<init>(java.lang.String)
          FileInputStream.java:64
     void java.io.FileReader.<init>(java.lang.String)
          FileReader.java:38
     void makeUtil.makeLibs(java.lang.String, java.lang.String, java.lang.String)
          makeUtil.java:100
     void makeUtil.main(java.lang.String[])
          makeUtil.java:127
'out.bat' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.
Impossible de trouver C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\tmp\out.bat
Preverifying
Making jar file
.\* : fichier ou ripertoire introuvable
java.io.FileNotFoundException: C:\Documents (Le fichier spicifii est introuvable.
     void java.io.FileInputStream.open(java.lang.String)
          native code
     void java.io.FileInputStream.<init>(java.lang.String)
          FileInputStream.java:64
     void java.io.FileReader.<init>(java.lang.String)
          FileReader.java:38
     void makeUtil.makeImages(java.lang.String, java.lang.String, java.lang.String)
          makeUtil.java:78
     void makeUtil.main(java.lang.String[])
          makeUtil.java:125
'out.bat' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.
Making jad file
Impossible de trouver C:\Documents and Settings\alexj.UNIVERS\Bureau\Test\Project1\src\out.bat
**Warning: Using RELATIVE flavor for MIDlet-Jar-URL
Finished
thanks in advance
alexj

Bonjour Alex!
Carefully avoid the blanks in files and directory names! That should be the problem!!!
Merci windows!
Vous pouvez me contacter directement en cas de probleme ou de recidive a [email protected]
C'est moi qui ai ecrit l'extension, donc je serai a meme de prendre vos questions et remarques en consideration...
Best regards,
Olivier

Similar Messages

  • Socket Programing in J2ME - Confused with Sun Sample Code

    Hai Everybody,
    I have confused with sample code provided by Sun Inc , for the demo of socket programming in J2ME. I found the code in the API specification of J2ME. The code look like :-
    // Create the server listening socket for port 1234
    ServerSocketConnection scn =(ServerSocketConnection) Connector.open("socket://:1234");
    where Connector.open() method return an interface Connection which is the base interface of ServerSocketConnection. I have confused with this line , is it is possible to cast base class object to the derived class object?
    Plese help me in this regards
    Thanks in advance
    Sulfikkar

    There is nothing to be confused about. The Connector factory creates an implementation of one of the extentions of the Connection interface and returns it.
    For a serversocket "socket://<port>" it will return an implementation of the ServerSocketConnection interface. You don't need to know what the implementation looks like. You'll only need to cast the Connection to a ServerSocketConnection .

  • Is there a  a difference between bluetooth working in J2me or j2se

    Is there a difference between working with javax.bluetooth or blue cove on j2se and on j2me. I have worked with javax. bluetooth on my Pc with USB bluetooth dongle it worked fine to some extent I am trying to improve it to get RSSI as well as the discovery of devices. But actually the question is If I am working on mobile device will i have to change the underlying libraries.

    Nandy_09, please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem. HKhalid hasn't visited these forums since the question was posted.
    I'm locking this thread now.
    db

  • Can i execute a j2me application in a BREW phone

    Hai friends,
    Can i execute a j2me application in a BREW phone , if it is how? or should i need to go for any special certifications or convertions to make executable in BREW.B'caz i was not able to find the BREW emulator for j2ME?
    Thanks in Advance,

    Hi
    Yes you can run J2ME applications from a BREW device. But before doing that, you need to install the BREW extention to support J2ME. Which is nothing but the JVM.
    This can either be done over the air or manually.
    Check out this page: http://brew.qualcomm.com/brew/en/about/java/white_paper_03.html for more details.
    esmertec is one of the companies that has developed this BREW extention for J2ME. You can check esmertec.com for more details.
    Regards
    vilyams
    http://www.m-indya.com

  • How to play non-standard audio file in J2ME CLDC

    Hello,
    I am developing an application for mobile. In this application I need to save the text and audio data in one file (extention of the file may be .mmo etc.), and then I need to play the audio from that file with the help of a mobile. (the file will be created with the help of a PC).
    I am seeking for help, whether it is possible or is there any other solution? I want to save both text and audio in the same file to facilitate my user.
    Your help or comments on my question will be greatly appreciated.
    with best regard,

    Hi japaneagle!
    This is the way i would solve the problem and i have not tested it, So there can be some problems while implementing it. The approach is based on BASE64 encoding and XML, there can be some some limitation on file size.
    This is the way.
    1) first you have to encode the audio file using BASE64 encoding. Its about reading the bytes from file and encoding to BASE64 char sequence. You can find serveral BASE64 encoder examples in Java (do Google).
    2) Now you have to create a XML file like this, assume that, file type is WAV and you have the encoded char sequnce..
    <AudioFile>
    <AudioFormat>WAV</AudioFormat>
    <TextData>some text</TextData>
    <AudioData>encoded BASE64 char sequence here</AudioData>
    </AudioFile>
    3) Assume that, now file is available in the memory card.Now you have to read it using File Connection API and parse it using kXML inside your MIDlet
    4) After parsing it you will have file type and encoded BASE64 char sequnce..now you have to decode the charsequnce to byte[]. Then create a ByteArrayInputStream using the byte[].. Here you need a BASE64 Decoder..(do Google).
    then create the player using Manager.createPlayer(InputStream stream, String type) MM API;
    Now you can play the file...
    You can add many attributes in the XML file if you want...
    If you are going to use J2ME polish API for your UI then BASE64 won't be a problem, it has a Base64Encoder and Decoder..
    -Jestan

  • Can I Select from table skipping extents linked with lost datafiles?

    Hi~,
    I need your help to recover my database.
    I'm using oracle 9.2.0.8 at Fedora 3 with no-archive mode.
    and I don't have any backup.
    Last night, I experenced hard disk failure.
    I tried OS-level recovery, but I lost some datafiles of tablespace.
    anyway, I wanted to recover my database without data of lost datafiles.
    so, I issued "alter database datafile offline drop" and
    start oracle instance.
    But, datafiles were not removed from dba_data_files view and
    extents linked with lost datafiles were not removed from dba_extents view!
    Selecting query of some table containing extents linked with lost data files,
    I got "ORA-00376: file xxx cannot be read at this time" message.
    So, my question is that..
    HOW CAN I SELECT FROM THAT TABLE WITHOUT SCANNING EXTENTS LINKED WITH LOST DATA FILES?
    Thanks.

    Hi,
    Without being in archivelog and without backup, one can't do any sort of recovery. That's why backups and archivelog are so so important.
    The offline data file command never does actually drop the datafile. It merely indicates to the control file that now the said tablespace will also be dropped. This won't update any view that the files are not supposed to be used or shown to you anymore.
    This is what documentation says about the recovery of the database in the NoARch mode,
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007937
    You do need a backup in order to get those tables being read. Oracle doesn't have any feature which can offline/skip the missing extents for you and let you read the data without them.
    HTH
    Aman....

  • ORA-01658: unable to create INITIAL extent for segment in tablespace

    NEW REPOSITORY INSTALLATION ERROR!!
    I want to install a new Repository using Oracle9iR9.2.0.1 and iDS10g on windowsXP Professional the same machine.
    After running all the SQL scripts ( ckqa,ckvalqa,ckcreate,ckreport) with success to installing a new Repository on my Database using "the Scripts Method",I start the Repository Administration Utility( RAU) to scheck the priveleges and so on.
    After pressing the Install button in the RAU:
    -I take public synonyms
    -I scheck the box for "Support Designer Objects", then
    -The Repository size is Medium
    -I have not change the defauft Tablespace of the Repository_Manager names TEMPORARY_TABLES to store the index and table of System Data....Diagram Data.
    After Starting, the Installation began an stop by installing some Tables like schown :
    Operation: Started : 07/03/04 20:26:32
    Reading File: cktabs.sql
    Object : TABLE CDDL_TMP_TBL
    Executing statement(s)...
    Verifying...
    .and so on till....uns so weiter bis
    Reading File: cktabs.sql
    Object : TABLE RM$INFO
    Executing statement(s)...
    Error Submitting Definition: User intervention required...
    RME-02124: Failed to execute SQL statement: CREATE TABLE RM$INFO
    (NAME VARCHAR2(128) NOT NULL
    ,VALUE VARCHAR2(128)
    Storage (initial 4K next 4K pctincrease 0) Tablespace TEMPORARY_TABLES
    ORA-01658: unable to create INITIAL extent for segment in tablespace TEMPORARY_TABLES
    Dumping Buffer...
    CREATE TABLE RM$INFO
    (NAME VARCHAR2(128) NOT NULL
    ,VALUE VARCHAR2(128)
    ...End of Buffer
    User Requested: Stop Process
    When I read the Help of the Error the
    CAUSE was: Failed to find sufficient contiguous Space to allocate INITIAL extend for Segment being created.
    ACTION: Use ALTER TABLESPACE ADD DATAFILE to add additional space to the tablespace or retry with a smaller Value for initial.
    I then try to resolve it by schecking and changing the Values of INITIAL_VALUE and NEXT_VALUE in the ckparams.txt to 500k.I change the Values of TEMPORARY_TABLES(10214 to 51200k) and TEMPORARY_INDEXES from (20000 to 100000k).Then I run the scripts @ckparams.txt, @ckvalqa, @ckcreate but
    -pressing the Scheck Privileges Button on the RAU still give me 106k for the INITIAL_ and NEXT_VALUE.
    -And the installato still stop with the same Error.
    Question: How schould I resolve this Configuration?
    You could respond in ENGLICH, GERMAN or FRENCH
    Thank you for your Help!

    You are running into database errors. You should refer to the database documentation on how to adjust the size your tablespaces. The online Designer installation guide will advise you as to the sizes of tablespaces you require. (http://otn.oracle.com/pls/wocprod/docs/page/ocom/technology/products/designer/supporting_doc/Des10g_9044/cmnhlp72/rep_insgde/igttl_9i.htm)
    Regards
    Sue

  • Send email from j2me through servlet

    Hi people,
    i hope you can help me because i am new in network programming.
    I am trying to send email from j2me to googlemail account I have 2 classes EmailMidlet (which has been tested with wireless Toolkit 2.5.2 and it works) and the second class is the servlet-class named EmailServlet:
    when i call the EmailServlet, i get on the console:
    Server: 220 mx.google.com ESMTP g28sm19313024fkg.21
    Server: 250 mx.google.com at your service
    this is the code of my EmailServlet
    import java.io.*;
    import java.net.Socket;
    import java.net.UnknownHostException;
    import java.text.*;
    import java.util.Date;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class EmailServlet extends HttpServlet {
       public void doPost(HttpServletRequest request, HttpServletResponse response)
             throws IOException, ServletException {
          System.out.println("____emailservlet.doPost");
          response.setContentType("text/plain");
          PrintWriter out = response.getWriter();
          System.out.println("______________________________");
          out.println();
          String to = request.getParameter("to");
          System.out.println("____________________________to" + to);
          String subject = request.getParameter("subject");
          String msg = request.getParameter("msg");
          // construct an instance of EmailSender
          System.out.println("servlet_to" + to);
          send("[email protected]", to, subject, msg);
          out.println("mail sent....");
       public void send(String from, String to, String subject, String msg) {
          Socket smtpSocket = null;
          DataOutputStream os = null;
          DataInputStream is = null;
          try {
             smtpSocket = new Socket("smtp.googlemail.com", 25);
             os = new DataOutputStream(smtpSocket.getOutputStream());
             is = new DataInputStream(smtpSocket.getInputStream());
          } catch (UnknownHostException e) {
             System.err.println("Don't know about host: hostname");
          } catch (IOException e) {
             System.err
                   .println("Couldn't get I/O for the connection to: hostname");
          if (smtpSocket != null && os != null && is != null) {
             try {
                os.writeBytes("HELO there" + "\r\n");
                os.writeBytes("MAIL FROM: " + from + "\r\n");
                os.writeBytes("RCPT TO: " + to + "\r\n");
                os.writeBytes("DATA\r\n");
                os.writeBytes("Date: " + new Date() + "\r\n"); // stamp the msg
                                                    // with date
                os.writeBytes("From: " + from + "\r\n");
                os.writeBytes("To: " + to + "\r\n");
                os.writeBytes("Subject: " + subject + "\r\n");
                os.writeBytes(msg + "\r\n"); // message body
                os.writeBytes(".\r\n");
                os.writeBytes("QUIT\r\n");
                // debugging
                String responseLine;
                while ((responseLine = is.readLine()) != null) {
                   System.out.println("Server: " + responseLine);
                   if (responseLine.indexOf("delivery") != -1) {
                      break;
                os.close();
                is.close();
                smtpSocket.close();
             } catch (UnknownHostException e) {
                System.err.println("Trying to connect to unknown host: " + e);
             } catch (IOException e) {
                System.err.println("IOException: " + e);
       } 1.when i print "to" in EmailServlet also:
      String to = request.getParameter("to");
          System.out.println("____________________________to" + to);  it show null on the console :confused:
    2. ist this right in case of googlemail.com?
      smtpSocket = new Socket("smtp.googlemail.com", 25);  I would be very grateful if somebody can help me.

    jackofall
    Please don't post in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    I'm locking this thread now.
    db

  • Caller ID not working on calls with an extention

    Hi,
    If i have a contact (john) with a number 212-555-1212 and he calls, the phone displays John.  cool.  If i have 212-555-1212;1234 where the ; is a wait command and the 1234 is the work phone extention so i can press it and it will auto send.... and John calls. it does not display John. It simply displays 212-555-1212.  How can i change this? 
    M

    OK, I reread your question and I did not answer it precisely above.  You asked if John's extension is in your contacts list and a call comes in, it does not associate John's name with the incoming phone number.
    Sorry I misinterpreted in my last post.  I still do not believe it's possible.
    Maybe a workaround would be to list both telephone numbers (one with the extension and one without) as separate numbers under the contact's name.  One might be labelled "Work" and the second "Other".

  • J2me and java card, need help to communicate

    we are trying to put together a reader to read smartcards using j2me and we figure that it would be easiest if we could develop it to work with java cards rather than standard smart cards, the problem is we get garbage when we communicate to it, the chip sends us crap, any suggestions what might be wrong, any calls we might be missing, has anyone worked with j2me and java cards or smart cards, any help would be appreciated.
    einar

    .... reader app and the ME behind it .... smells like mobile ....
    First of all - if you want to have one mobile application running on this just make sure that whatever is written in ME can use drivers from the reader chip ....
    Workin on the PC is something completely different. There was one good example how to develop one host application in Java provided with the JCOP tools long ago ... I don't know if this is now in the new Eclipse tools.
    But - there was a small API provided that can give you good hints what to do - and - once you have it on the reader side - you can easily integrate ME methods with this ...

  • Image Processing in j2me

    Hi All,
    I want to do image processing in mobile application(j2me).
    But there are not enough java packages in mobile environment.
    How to do it please let me know if any body knows.
    Thanks.

    brightness: convert every RGB pixel to HSB -> increase luminance by constant value -> convert back to RGB
    contrast: convert every RGB pixel to HSB -> multiply luminance by constant value-> convert back to RGB
    You can also do both in one go.

  • UTF-8 encoding in J2ME

    Hello,
    I'm currently developing J2ME application for downloading bus schedules.
    The data that I download is in polish language (eg. bus directions, stop names etc). These are xml files generated by a php script encoded in UTF-8.
    The problem is that I don't know how to display that properly, so that all the polish characters are what they're supposed to be.
    Some of my code for downloading content:
    String getXML(String url)
            HttpConnection cn = null;
            InputStream str = null;
            //DataInputStream strd = null;
            StringBuffer sb = null;
            try
                int code;
                cn = (HttpConnection) Connector.open(url);
                code = cn.getResponseCode();
                if (code == HttpConnection.HTTP_OK)
                    str = cn.openInputStream();
                    // strd = new DataInputStream(str);
                    sb = new StringBuffer();
                    InputStreamReader r = new InputStreamReader(str, "UTF-8");
                    int total = 0;
                    int read = 0;
                    while ((read = r.read()) >= 0)
                        total++;
                        sb.append((char) read);
                    return sb.toString();
                else
                    throw new Exception("Nie uda&#322;o si&#281; po&#322;&#261;czy&#263; z serwerem");
            catch (Exception e)
                return null;
            finally
                try
                    if (str != null)
                        str.close();
                    if (cn != null)
                        cn.close();
                catch (Exception e)
        }And parsing it:
    InputStreamReader reader = null;
                    String xml = getScheduleXML(getSel_Line(), null, null);
                    ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());
                    reader = new InputStreamReader(stream, "UTF-8");
                    parser.setInput(reader);
                    while (parser.next() != KXmlParser.END_DOCUMENT)
                        if ((parser.getEventType() == KXmlParser.START_TAG) && (parser.getName().equalsIgnoreCase("direction")))
                                String d = (String) parser.getAttributeValue(0);
                                v.addElement(d);
                                String d2 = (String) parser.getAttributeValue(1);
                                v2.addElement(d2);
                    }What do I do wrong? What is missing?

    Problem solved. I had to add "UTF-8" parameter to getBytes method.

  • Edit next extent size of the Cluster table

    Hi Guys
    I need to change the next extent size of the a table.
    I ran se14 but i am not able to get into edit mode, because there is no button for edit mode.
    Reason: Cluster table
    Two questions:
    1. Why there is no Edit button? Is it because this table doesnot exixt at DB level.
    2. How can i change the next extent size for a Cluster table from sql prompt or from brtools if possible.
    Information:
    I am facing this issue only in DEV, QAS boxes, where as in Production its fine.
    Regards
    Ricky
    Edited by: Ricky kayshap on Dec 9, 2008 3:52 PM

    Hi,
    Cluster Tables doesn't exist in DB, Because of that you can't make changes to extents at DB level.
    if you experiencing some space issue. I woud suggest to check the underline Transparent tables and make changes to those.
    hope this helps.
    Kalyan.

  • How to send sms from gsm modem(AT commands) to j2me application(not inbox)

    hi
    i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox.
    is it related to udh settings if yes then how do i set port no in settings?if no what are the other ways.

    Hi Vignesh,
    Might be you can call ActiveX or DLL objects of the software installed for modem from LabVIEW, if it is unblocked.
    Have a  look on the link > http://zone.ni.com/devzone/cda/tut/p/id/2983
    CLA 2014
    CCVID 2014

  • My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    http://discussions.apple.com/thread/3418045?tstart=60

Maybe you are looking for