Launch application from midlet

Hi,
I would like to know if there is anyway to start/launch non java application from MIDlet, something similar to Runtimer.exec.
Have tried with platformRequest method. It can only launch the browser and make voice call.
Thanks in advance
Mamatha

No, there is no other way to do this.

Similar Messages

  • Launching applications from an applet

    How do you launch applications from an applet? For example,launch a notepad exceutable when you click on a button (an awt component)?

    Hi,
    you can launch an application from the applet using the Java RunTime environment.
    Runtime.getRuntime().exec(applicationName);
    But to do this the applet needs permissions.It should be a trusted applet.

  • How can i launch application from the terminal in 32-bit mode?

    how can i launch application from the terminal in 32-bit mode?
    everytime i have to check and uncheck the finder's info panel and it's really annoying, thanks!

    ''Courtesy of cor-el''
    https://support.mozilla.com/en-US/questions/823873
    Other users should note that Firefox has public release versions of 64bit only for Mac And Linux; not for Windows, yet.

  • Launching applications from java code

    I have found a solution to launch applications from java.I thought this will be useful for programmers who want to open a
    1. Browser
    2. Player
    3. Files etc.
    There are 2 solutions :
    I)To use a known application :
    eg: to open windows media player
    String[] cmd = new String[3];
    cmd[0] = "cmd.exe";
    cmd[1] = "/C";
    cmd[2] = "START MPLAYER2.exe "+mediaURL+" /PLAY /CLOSE /FULLSCREEN";
    //eg: mediaURL = "\"D:/project/songs/track1.mp3\""
    // /PLAY /CLOSE /FULLSCREEN this option can be used only for windows media player
    // for any other application use cmd[2] as START apl.exe //apl can be any windows application
    Process p = Runtime.getRuntime().exec(cmd);
    II) To use a default application:
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
    // url can be any url
    ref: [http://forums.sun.com/thread.jspa?threadID=5203313|http://forums.sun.com/thread.jspa?threadID=5203313]
    [http://www.ericphelps.com/batch/rundll/|http://www.ericphelps.com/batch/rundll/]
    Edited by: veda_sishta on ? ?????, ???? ??:?? ???????
    Edited by: veda_sishta on ? ?????, ???? ??:?? ???????

    To post code, use the code tags -- [code]Your Code[/code] will display asYour CodeOr use the code button above the editing area and paste your code between the {code}{code} tags it generates.
    And make up your mind what file type you're having a problem with. Maybe .asx doesn't have a file association on your computer.
    This works just fine for .m3u:import java.awt.Desktop;
    import java.io.File;
    import java.io.IOException;
    public class Playlist {
       public static void main(String[] args) {
          try {
             Desktop.getDesktop().
                   open(new File("E:/Music/Playlists/test.m3u"));
          } catch (IOException ex) {
             ex.printStackTrace();
    }db
    edit Did you try searching the net for the error you got? ("Invalid menu handle")
    Edited by: Darryl.Burke

  • Error running SendMail when launch application from JNI

    Hello,
    I am getting the following exception when I try to send email using JavaMail. This error began happening when we upgraded to Java 1.6. It does not happen with earlier versions of Java.
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2882193.1230049431911"
    I have browsed through the forums and read the many postings with a similar error. I have tried the variety of suggestions, but nothing seems to work. My understanding is the JAF is included in Java 1.6, so we should not need the activation.jar in our classpath anymore. Even so I have tried with and without the activation.jar in the classpath. I do not think it is a class loader issue because we do not build any of this into our application. It is all referenced in jar files on the classpath.
    The interesting thing is that I can launch the application with a normal JVM launch and it works just fine. The error only occurs when I launch the application from a C++ application using JNI. In both cases I am using the exact same classpath. The error occurs whether I include activation.jar in the classpath or not.
    I have tried to programmatically add the MIME types using the MailCommandMap class, but this had no effect.
    The most recent test I ran was to put the activation.jar and mail.jar files in my C:\Java\jre6\lib\endorsed directory. This actually cleared up the error. This is not a viable solution for us, but it leads me to believe the .mailcap file is not being loaded correctly for some reason. I just cannot figure out what the issue could be as it seems to be associated with JNI.
    Thank you for any help,
    Mary Kathryn

    Because JAF is now part of the JDK, the JAF classes are loaded by the system class loader
    instead of the application class loader. If the thread's context class loader is not set, JAF
    uses its class loader to load the mailcap files. Since JavaMail's mailcap file is in mail.jar,
    and mail.jar is still loaded by the application class loader, the system class loader can't
    find JavaMail's mailcap file.
    Normally, when starting the application using the "java" command, the thread's context
    class loader will be set to the application's class loader. This may not be happening
    automatically when starting the application with JNI.

  • Launching application from an applet

    Can someone please tell me what are the ways I can launch an application from an applet? Can you provide some examples, etc.
    Thanks,
    Syed

    If you want to run an application, all you have to do is call it's main() method.
    public class AppApplet extends JApplet {
        public void init() {
            JButton button = new JButton("Start App");
            this.getContentPane().add(button);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    String[] args = ...;
                    AppClass.main(args);
    public class AppClass {
        public static void main(String[] args) {
            //Do whatever
    }

  • Launching applications from within a Java program,

    Hi all,
    I wish to launch an application from a menubutton. I exactly wish to launch adobe acrobat reader and a specific file. Do I need to run a system command to do this, or more specifically, how is this done in Java?
    Thanks,
    JavaRob

    what if you have the entire exe as a byte array in
    memory, write that to a file on the system, and then
    run that file.
    would that work?Yes but you would still have to use the Runtime class to excecute the file after you write it out, so it would just be easier to use the already made exe file.

  • Launching application from consoleone alarm disposition.

    Hi!
    I can't get this to work. I enable launching application for a certain
    alarm but nothing happens. For example i've tried starting notepad when a
    system: nlm loaded alarm arrives. But nothing. And i can't find a way to
    debug this either....
    Forwarding snmp traps and sending smtp works btw.
    I run ConsoleOne locally on my machine and i enter the path to the
    application as: c:\progran\applicationdir\application.exe
    Thanks
    /Tobias

    [email protected] schrieb:
    > Hi!
    >
    > I can't get this to work. I enable launching application for a certain
    > alarm but nothing happens. For example i've tried starting notepad when a
    > system: nlm loaded alarm arrives. But nothing. And i can't find a way to
    > debug this either....
    > Forwarding snmp traps and sending smtp works btw.
    > I run ConsoleOne locally on my machine and i enter the path to the
    > application as: c:\progran\applicationdir\application.exe
    >
    > Thanks
    >
    > /Tobias
    Hi Tobias,
    The alarm action is done on the management server- so you have to
    configure Netware Server Actions.
    Please check the
    docu:http://www.novell.com/documentation/...a/acqbya8.html
    will give you:
    Launching an External Program
    As part of editing the disposition of an alarm, you can set options to
    automatically launch any program on the Novell ZENworks Server
    Management server when an alarm is received. For example, you might want
    an alarm to launch a program that sends a message to the system
    administrator's pager.
    Although ZENworks Server Management provides the capability to launch
    applications, the product does not provide any predefined programs.
    However, you can launch an NLM and run scripting routines or use
    third-party programs.

  • Unable to launch application from my machine:Bad MIME Type

    Hi,
    The following error message was printed when I tried to access the SwingSet2 demo from the Java Web Start site.
    An error occurred while launching/running the application.
    Title: SwingSet2
    Vendor: Sun Microsystems, Inc.
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http://java.sun.com/products/javawebstart/apps/SwingSet2.jnlp - text/html
    Can you please suggest what is to be done to rectufy this problem?
    Regards,
    Satish

    Bad MIME type returned from server when accessing
    resource:
    http://java.sun.com/products/javawebstart/apps/SwingSet
    .jnlp - text/htmlit should return application/x-java-jnlp-file.
    My guess is that you use proxy which messes up headers.
    Otherwise try to reinstall Web Start, then enable the console and log output in Web Start's advanced preferences to get more clues what's going on.
    Regards,
    Marc

  • Can't launch applications from Safari link

    When I try to open any external application through the Safari link, I'm redirected to the Safari "Favourites" tab and the app fails to launch.
    For instance, on clicking on a magnet link, the default torrent client(uTorrent in my case) should launch. Or when clicking on the "View in the Mac App Store" link for any application on the apple website, the app store launch. However, instead of launching the application, safari redirects me to the favourites page.
    I understand certain apps like Candy Crush were automatically redirecting users to the app store and apple resolved the issue in the updated OS, but is there a way to filter which apps safari can launch, maybe even if it asks for a password?

    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • Can't launch applications from the Adobe Application Manager

    I installed Adobe Application Manager on my mac (Version 10.6.8) and several programs but I can't get the applications to launch from the application manager.  I gan launch them directly from the applications folder.  Any suggestions as to why this is happening?

    Hi,
    The Adobe Application Manager is only used for update notification and installation. It is not intended to be an application launcher.
    regards,
    steve

  • Launching applications from bookmarks bar

    I know that Safari prefs can be set so that 'Address Book' appears in the Bookmarks Bar, and can be launched from there.
    I also know that if any URL is bookmarked, and its address changed to 'AddressBook:////' (no space in AddressBook) -- and its name changed as desired -- that the item which appears in the Bookmarks Bar will launch Address Book.
    And that if any URL is bookmarked, and its address changed to 'dict:////' -- and its name changed as desired -- that the item which appears will launch Dictionary.
    But I have not found other applications that respond in a similar manner.
    And I don't understand what ':////' is all about.
    How might one go about creating a Bookmarks Bar item that would launch, for example, TextEdit?
    TIA

    ahh, I see....
    you could save yr script as an application bundle, then modify the info.plist so it shows as handling particular url's - details here.
    editing the plist is easy enough, and I can get safari to be aware of say test:// url's, but experimenting with one of apples example scripts ( the Sherlock -search internet one ) doesn't work properly here - sure enough, safari reads the test:// & opens the script ( which is saved as an application bundle & had its info.plist modified as above...) & the application opens no problem, but then closes right away rather than doing what it should do, which is ask the user for something to search for.
    I bet if you post in the applescript or Developer forums, you'll get an answer as to why this doesn't work...
    ho ho try this: http://www.apple.com/applescript/linktrigger/index.html I just didn't know what to search for.

  • Javascript error on launching application from portal

    When we launch  BW reports from our portal (Netweaver 7.0) , it gives a javascript error  and the reports would not launch  for some users. The launch pad is using WEBDYNPRO-ABAP . The javascript error that we are getting  is - u2018Childnodes.lengthu2019  is Null or Not an Object .  This happens on all versions of Internet Explorer. Has any one encountered this issue ?

    Hi,
    When we launch BW reports from our portal (Netweaver 7.0) , it gives a javascript error and the reports would not launch for some users. The launch pad is using WEBDYNPRO-ABAP
    Check whether user who are facing problem are using FQDN in URL. ( FQDN of portal )
    FQDN --> http://<portalhost.<domian>.com:5nn00/irj/portal
    Thanks
    Anil

  • Updated to Firefox 10.0.2 can no longer launch applications from Citrix-based environment I need to telework -- disconnects wireless as soon as application icon clicked

    I use a Citrix-based environment provided by my employer for remote-access to our servers and applications.
    I updated Firefox last night, as instructed by the auto-updater and since then I have been able to log onto Citrix, but am unable to launch any applications. Clicking the icon dumps out my wireless connection and I'm stuck.
    Haven't yet checked my hard connection, because in my very old house, connecting via the phone jack and modem in the kitchen or master bedroom is not exactly ideal for teleworking.
    M

    Hi,
    I experienced similar behavior (neither Keychain Access nor Safari would start, Chrome cannot access https sites, etc.). It got fixed by following instructions in this article:
    http://www.macworld.com/article/163227/2011/10/fix_a_lion_file_opening_hang_in_m ac_os_x_10_7_2.html which I found in this thread: http://att.macrumors.com/showthread.php?p=13625027#post13625027
    Basically remove the ~/Library/Application Support/Ubiquity and restart. OSX will create a new one with the right permisions.
    /cheers

  • Cannot launch application from Workspace

    My Explorer upgraded to 10.0
    Since then I try to lanch application and a new window open and nothing.... it stays grey...
    EAS is connected.
    Thank you,

    Yes you can downgrade using
    Start/ Programs and Features / and select the version program you want to uninstall.
    I uninstall E10 so I am runnig E9 and it works.
    After I set up the windows upgrade manually.
    Thank you,

Maybe you are looking for