Making Palm System calls using J2ME

Hi is there anyway where I can use the old KJava API or even the J2ME to make system calls such as
DmFindDatabase(0,"Something")
SysAppLaunch(0,dbID,0,cmdPrintChars,theChars,&result);
axlrose82

[axlrose82],
At the moment, we are quite certain that the kVM for the PalmOS do not contain any API that allows a developer to make system calls to the PalmOS itself. The CLDC/MIDP specification does not specify any native system calls access any of the native apps. I can see from your code that you are trying to access the Palm database but I'm afraid you are out of luck with the current specs.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/

Similar Messages

  • Internal system call used by "ps" command

    Hi All,
    Can any one let me the internal system call used by "ps" command to retrieve the process information. I want to use the same system call in my program to get list of information about processes currently running in the system. I do not want to use the "ps" command in my code.

    Justin_Samuel wrote:
    Hi All,
    Can any one let me the internal system call used by "ps" command to retrieve the process information. I want to use the same system call in my program to get list of information about processes currently running in the system. I do not want to use the "ps" command in my code.You can access the /proc filesystem for getting information about
    processes, even more than is available via ps.
    Have a look at:
    man -s 4 proc

  • Telephony Calls using J2ME

    Hi,
    I am trying to make telephony calls using J2ME.Is there any standard API that I can use for telephony calls which is not Vendor-specific?
    At the moment, I am trying with platform calls like
    object.platform(tel:...............................);
    Is there any other alternative solution by using APIs?
    If so can u tell me which API can be used for this and can u explain me with sample code?Please help me with any online resources regardin this.
    Its Urgent.Waiting for reply...................

    Hi
    > At the moment, I am trying with platform calls like
    object.platform(tel:...............................);
    I think you wanted to say platformRequest instead of object.platform. This is the only way to make a call from the J2ME application as far as I know. Some OS may offer additional methods for doing this, but you would have to check the docs for this.
    Mihai

  • Can I source an environment before making a system call from the database

    I can execute system calls from the database like
    Process proc = Runtime.getRuntime().exec("env");
    but I am unable to source an environment before making the call.
    Our goal is to from within the database to execute tkprof on a
    raw trace file then load both files into clobs in a table. We can load
    the raw trace no problem, we just cannot figure out how to execute
    tkrprof on the raw trace then load its output.
    Anyone know if this is possible to hava java get a runtime and then call
    an environment file to source the environment so that path's and other environment variables are set prior to executing another system command.

    Thanks for that...but can I do multiple edits in my Stored Procedure Vaibhav and pass back something that I can then utilize in my SSIS? For example...
    One and Only one Member Span...so I'd be doing a SELECT COUNT(*) based on my match criteria or handle the count accordingly in my Stored Procedure and passing something back via the OLE DB Command and handling it appropriately in SSIS
    Are there "Diabetes" claims...again probably by analyzing a SELECT COUNT(*)
    Am I expecting too much from the SSIS...should I be doing all of this in a Stored Procedure? I was hoping to use the SSIS GUI for everything but maybe that's just not possible. Rather use the Stored Procedure to analyze my stged data, edit accordingly, do
    data stores accordingly...especially the data anomalies...and then use the SSIS to control navigation
    Your thoughts........
    Could you maybe clarify the difference between an OLE DB Command on the Data Flow and the Execute SQL Task on the Control Flow...
    You can get return values from oledb comand if you want to pipeline.
    see this link for more details
    http://josef-richberg.squarespace.com/journal/2011/6/30/ssis-oledb-command-and-procedure-output-params.html
    The procedure should have an output parameter defined for that
    I belive if you've flexibility of using stored procedure you may be better off doing this in execute sql task in control flow. Calling sp in data flow will cause it to execute sp once for each row in dataset whereas in controlflow it will go for set based
    processing
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Unix System Calls using Java

    Hi!
    Can anyone tell me how to do Unix System Calls in my Java program?
    If possible please give me the java code for it taking one unix system call as an example.
    Thanks in advance
    Raj

    do you mean firing off a shell command, or making actual kernel API calls or C library calls?
    for shell commands, have a look at Runtime.exec(). for kernel calls, use JNI. the JNI FAQ mentions something called "shared stubs" that may be of use:
    http://java.sun.com/products/jdk/faq/jnifaq.html
    cheers,
    p

  • Linux system call used in process creation from java?

    Does Runtime.getRuntime().exec("some command"); bottom out in vfork, fork or something else on Linux versions of the java 1.5 jdk?

    If the second, get the VM source and look. Or run a test case using the system call tracing utility "strace".

  • Making a phone call using jtapi

    hi
    I am trying to make a phone call using a java program. I downloaded javax.telephony class files
    J323 engine and installed it
    JMF studio as i read in a forum. Did anyone try to do this. I tried to compile the example chords but doesn't identify the javax.telephony package.
    Where should i put the .class files?
    How should i configure J323 engine.By the way i am using windows.
    Thank you in advance
    goodnews

    I don't know if that is possible, because the application may have to be closed if the system does not have enough capabilities and resources, so it depends on the phone. Read the API docs for the platformRequest method for more info about this.
    I would give it a try though and see what happens.
    Mihai

  • Making a system call

    When I make a system call of the sort
    Process theProcess = Runtime.getRuntime().exec(*my command here*);
    Does the thread wait for the command to be executed, or does it keep on executing subsequent lines of code?

    Does the thread wait for the command to be executed, or does it keep on executing subsequent lines of code? Write some simple test code and then report the results back here.

  • Making a SOAP call using PL/SQL in Oracle 8.1.7.4.1

    Hi
    Our environment is as follows:
    Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
    JServer Release 8.1.7.4.1 - Production
    Forms [32 Bit] Version 6.0.8.12.1 (Production)
    Oracle Toolkit Version 6.0.8.12.1 (Production)
    PL/SQL Version 8.0.6.0.0 (Production)
    Oracle Procedure Builder V6.0.8.12.1 Build #520 - Production
    Oracle Query Builder 6.0.7.0.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.36.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.5.35.0 (Production)
    Oracle Multimedia Version 6.0.5.34.0 (Production)
    Oracle Tools Integration Version 6.0.8.10.2 (Production)
    Oracle Tools Common Area Version 6.0.5.32.1
    Oracle CORE Version 4.0.6.0.0 - Production
    We have a Client/Server application.
    We need to make a SOAP call within PL/SQL.
    As far as I know Versions 9i and above have the necessary facilities built-in.
    We are using 8i (8.1.7.4.1) and short term upgrade is not planned.
    What are our options, could you please help?

    Hello,
    I'm trying to investigate the same thing.
    I want to make a soap-client with PL/SQL with 8i 8.1.6.0.0
    Did you succeed some additional information ??
    I tried to run the following example:
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
    but it only works with 9i.
    With 8i the errors encountered were : XMLTYPE undefined
    Perhaps if we find the definition of XMLTYPE and we process it to 8i we'll be able to run the example ??
    thank's

  • System calls using JSP

    Hi all,
    I have the following code in a class file:
    Process process = Runtime.getRuntime().exec("pscp <file> <destination>");
    process.waitFor();
    Now when this class is executed on command line, it executes fine, but when it is called in a class (executed via a jsp page), it does not execute at all.
    Anyone have this scenario happen to them before?

    Is the pscp command available in the executable path? Maybe your Servlet-Container changes the path during startup?
    Try to execute a basic command like "cmd.exe /c dir" (assuming you use windows) and capture the output to see if that works:
    <%!
      public String escape(char c) {
        switch(c) {
          case '<':
            return "<";
          case '>':
            return ">";
          default:
            return "" + c;
    %>
    <pre>
    <%
      Process p = Runtime.getRuntime().exec("cmd.exe /c dir");
      java.io.InputStream is = p.getInputStream();
      int i = 0;
      while((i = is.read()) != -1) {
        out.print(escape((char)i));
      p.waitFor();
    %>
    </pre>

  • Quotes in parameters to a system call

    Hello,
    From my program, which is a servlet, I'm making a system call using -
    (Runtime.getRuntime()).exec(cmd).waitFor();
    where cmd is a previously defined String giving the call to execute. The problem here is seen when the parameters to cmd (which happens to be a perl script in this case) include one or more where the values are strings which include spaces, and hence are in double quotes. For example, if I want to execute -
    /usr/local/bin/myScript.pl -t "Some text"
    When executed from a prompt this works fine and -t has the value -
    Some text
    However when called from my Java program as above, the script instead thinks that -t has the value -
    "Some
    I'm not sure how this is coming about, but it seems to be a feature of the way Java executes the command. Has anybody seen this before? How do I stop it happening? I have tried every combination of quotes of which I can think, but nothing seems to do what I want, and the command string when printed to screen, for example, looks exactly as it should.
    Thanks,
    Joe Partridge

    Or sat all separate parts in String[] like this:
    String[] cmds={"/usr/local/bin/myScript.pl","-t","Some text"}
    and call:
    (Runtime.getRuntime()).exec(cmds).waitFor();
    That also works and you don't have to remember to put quotes all the time
    Gil

  • Making an order payment using SecurePay and Paypal Standard gateway by API call-Order_PaymentProcess

    PART_1
    ==================================
    Hi,
    I'm working at third party system which by API communicate with BC and in short:
    1) create an order with specified products for specific customer) etc. at BC account ofcourse (works fine)
    2) Make the payment using one of the payment gateway (defined in BC Payment gateway section)
        a) SecurePay, or (works fine)
        b) Paypal Website Standard (problem)
    I found a litttle problem in API call to make the payment using paypal website standard (to be presice in case of Paypal option actually the user should be moved to the paypal website so the system should generate some link i think which will have some data which identify payment for specific order). I tried to use the Order_PaymentProcess (https://worldsecuresystems.com/catalystwebservice/catalystcrmwebservice.asmx?op=Order_Paym entProcess)
    call but it looks it can't be done?
    Please note the payment with this call using credit card details cause successfully use the SecurePay Payment gateway. Is here anyway who know the trick how to force (and what parameter should be used) to
    make the payment using Paypal Website Standard?
    And Yes I tried to obtain some additional documentation from BC support but without success (They said they are working at the new version of it... about 2 years ago they said they probably will prepare more detailed documentation ).
    ==================================
    PART_2
    In case if there is no possible to use the API call to force using the Paypal Website Standard is there any workaround of this?
    I mean is it possible to move the user to the paypal site but in post data set some value which can be handled directly by the BC after making the payment at paypal site, so the BC then could for specific order automatically register this operation after paypal send the successfull payment notification?
    ==================================
    PART_3
    The third part is the question how to force by API call BC to send the invoice to the customer after the order will be created (and before making the payment).
    The invoice is actually created only when the Order_PaymentProcess call will be finished with success (and the option "emailInvoiceToCustomer" will be set to true).
    Is there any way to do that?
    ==================================
    When You will answer please set note of what part is that answer.
    Thanks for advice!

    Dude, I don't know what you're saying. There's too much text and too much code, and the code is unformatted. When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
    However, based on the subject of your post, there's one thing I can say: If your key's state changes in a way that can affect the value of its hashcode, then you'll have to remove and re-add that key/value pair. Since the hashcode determines which subset the HashMap searches though to find your key, if your key doesn't have the same hashCode it has when you put it into the map, then the map will search the wrong bucket for your key.
    If that doesn't help, please try to provide more concise, formatted code and a more concise explanation of the problem.

  • Making system calls in java

    I want to join some split files into one. In command prompt I use COPY /B file.1+file.2 file to join the files. How can i do the same in my java application. Please show the code which I suppose will use getRuntime. Thanks in advance.

    Well if there is a problem with system calls then can
    you tell me if there is a class in java for
    concetanating files. Not directly.
    At present I am joing the files
    by reading each byte from the files and writing them
    to another file which takes hell lot of time. You should read the files in large chunks. Much much faster.
    Thanks
    in advance again. Also if you say about sequential
    file class then please expalin a bit bcs I couldn't
    implement it.Post the code you are having trouble with explaining what it should do and what it actually does.

  • How to get the size of physical memory by using system call ?

    how to get the size of physical memory by using system call ?What system call can be used for me to get the size of physical memor? thanks.

    %vmstat 3
    procs memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
    0 0 0 3025816 994456 4 19 6 0 0 0 0 8 0 0 0 459 253 139 1 1 99
    0 0 0 2864688 777408 0 2 0 0 0 0 0 3 0 0 0 428 134 175 0 1 99
    0 0 0 2864688 777408 0 0 0 0 0 0 0 7 0 0 0 448 112 166 0 0 100
    one interesting observation about vmstat I found out is (mostly on Solaris)
    the first line of information always off chart, so I usually do a few interval to get constant result.
    if you use linux
    just
    cat /proc/meminfo

  • Implementation of Shared Libraries on Palm Using J2ME

    Hi,
    I am currently working on the Palm Shared Libraries using C...Kind of drag....so I wonder is there any way to implement this on the Palm using J2ME...
    Thanks and Regards,
    Joseph

    From memory, I dont think that J2ME provides a an implementations at the moment that can access the Palm shared libraries, it's too specific for the generic implementation of MIDP, although I've heard of a PDA profile that SUN is working on, may or may not be true , but it's worth checking out : )
    Vance

Maybe you are looking for

  • Using Lightroom on multiple computers with the same images

    When using lightroom on my PC I download the images to an external hard drive.  When I am away from home can I use lightroom on my laptop and down load images to the same external hard drive and process them and have lightroom on the PC locate them w

  • How to create a TableView without Caption

    Hi forum, how can I create a TableView without Caption? Thanks in advanced Edited by: 899956 on 13-dic-2011 5.01

  • Trouble with arrays

    Hi! I have to write a program where you enter a name of a person and his points in a game using arrays. The program stops when you enter -99 Then the output should be like this Person 1 45 Person 2 89 Person 30 X We have just begun with arrays and i

  • Error in create model

    error in create model when I  Import Adaptive RFC Model ......step by step...... after click"finish"  and  rebuild project (automatism) error message show in tasks view com.test.models.z1.ZI001 cannot be resolved or is not a type com.test.models.z1.Z

  • IPhoto won't import videos from digital camera or s4

    Up until now, I had been able to import videos from both. Now iPhoto won't even ask me to import videos. It just imports the photos.