Building and Debugging MIDP applications.

Hi,
I have java files(MIDlet) for MIDP applications. I am unable to compile it in JBuilder7.0. Using J2ME -> KToolbar i am able to build the application/project, But i am unable to debug it. Can anybody tell me how can i successfully create/build/debug MIDP applications?
what are the necessary S/W required??
Thanks
Sunil.

go to
http://www.borland.com/products/downloads/download_jbuilder.html#
and download MobileSet and install it.
then:
1) install Wireless Toolkit if you dont have it already
2) start JBuilder
3) Tools menu -> Configure JDKs
4) click "New"
5) set the path to your WTK path (for example c:\wtk20)
6) click ok
7) select it as JDK for your project (or as default) using "Project properties" on the project menu
for JBuilder Personal Edition, there's a trick to make it work - you can replace the included J2SE JDK with MIDP 2.0 and get it working (personal edition doesn't normally have the ability to add new JDKs)
When you're going to run an application in your project, you'll get the Run window coming up. Do like this
1) click "New"
2) pick Type: MIDlet
3) browse to your main class (extends MIDlet)
4) optional: pick Build target: <None> if you don't want to run make on the project before each run
5) click "ok"
6) now you can run your midlet using the green play button

Similar Messages

  • Build and Debug Problem 10.2

    I just installed 10.2 and did a Build and Debug. I got an error that it couldn't run. It is saying that some property in the Oracle web determination has to be set in the application.properties file. I have no idea what the message is talking about. Any help is greatly appreciated.
    Thanks,
    Terry

    Thanks
    I changed the enable.debugger to true and saved the application.properties file
    Opened the project and did a build and debug. Got this message
    type Exception report
    message. Does the fact that this project isn't in the Projects directory matter?
    Thanks,
    Terry
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet WebDeterminationsServlet threw exception
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Unknown Source)
    root cause
    com.oracle.determinations.interview.engine.exceptions.RulebaseLoadingException: could not load rulebase: E-Verify
         com.oracle.determinations.interview.engine.local.LocalInterviewRulebase.getRulebase(LocalInterviewRulebase.java:163)
         com.oracle.determinations.interview.engine.local.FileRulebaseService.<init>(FileRulebaseService.java:86)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:91)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:34)
         com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:163)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.io.IOException: Caught exception class javax.xml.stream.XMLStreamException: Unexpected schema version in screens file: 5
         com.oracle.determinations.engine.local.ScreensLoader.loadScreens(ScreensLoader.java:260)
         com.oracle.determinations.engine.local.ScreensLoader.loadScreens(ScreensLoader.java:139)
         com.oracle.determinations.engine.local.CachingRulebaseLoader.loadRulebase(CachingRulebaseLoader.java:308)
         com.oracle.determinations.engine.local.LocalEngine.getRulebase(LocalEngine.java:192)
         com.oracle.determinations.interview.engine.local.LocalInterviewRulebase.getRulebase(LocalInterviewRulebase.java:151)
         com.oracle.determinations.interview.engine.local.FileRulebaseService.<init>(FileRulebaseService.java:86)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:91)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:34)
         com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:163)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.31 logs.
    Apache Tomcat/5.5.31

  • How can I build and Debug Tomcat 5.5 under Eclipse?

    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html
    I am doing some rearch on Tomcat and want to build and debug Tomcat5.5 under Eclipse. Originally tomcat is built with ANT, it downloads all components from different CVS and build them together.
    I'd like to import Tomcat Source code (only the core components, such as catalina and Coyota, Jasper) and build them with Eclipse Bilder, so I can debug it as a normal JAVA program under DEGUB-View.
    Who has such experience and help me? I havd built Jetty under Eclipse, but Tomcat is much more complex.

    Help

  • Error opening test scripts in Build and Debug with Screens

    Hello,
    I am testing scenarios in the Build and Debug with screens mode in OPM. I save each scenario as a test script by clicking the Export button and saving. Some test scripts are able to be opened again, yet when I try to open others, I get the error message shown at the link below and am unable to load the test script.
    http://imgur.com/uqh80
    This did not happen previously, it just started today. All of these test scripts were created today, and the attributes have not been changes since the test scripts were created. This is seriously hindering my scenario testing ability.
    Does anyone know how to rectify this problem?
    Thanks,
    Christine

    Hi Kristy,
    I am in OPM 10.2.
    To troubleshoot, I tried redoing the test scenarios that werent working from scratch (rather than building off a previous scenario), and this time it worked. I am not sure why it works now and didnt before, and I am also not sure if they will continue working.
    I will continue creating the scenarios and will be sure to update if it fails again. In the case it does fail, I will try your export recommendation.
    Christine

  • How to Build and Deploy Flex application in EP6

    Hi All,
    Can anyone tell how to build and deploy Flex application in EP6.
    I want to build a normal application in flex and present it through iviews. How do I configure my Iiview to have flex component running in Portal Environment.
    Thanks
    Deepak

    A good book to start with is Enterprise JavaBeans by Monson-Haefel (O'Reilly press). It covers deployment of EJBs on J2EE servers. Also check out sites specific to your server, sometimes they have specific requirements (like Weblogic).

  • Building and Deploying Java applications in different platform (OS)

    Hi all,
    We currently have a J2EE based web services application that is built (compiled) and deployed on Windows 2000 Advanced server. But in future, we will be using WIndows 2000 server for development only and HP-UX for production.
    So, we are planning on executing the build (compilation) of our application on Windows 2000 server and deploy the same binaries (WAR) on HP-UX also. So, I wanted to know anyone has faced issues in the past by deploying an application on a different platform than the one on which it was compiled. Is it recommended by SUN to compile and build Java applications on the same platform on which the application is deployed.
    Note that in my case, the JVM versions between Windows server and HP-UX would be the same. But the JVM for Windows server has been provided by Sun and the JVM for HP-UX has been provided by HP-UX.
    Your inputs are greatly appreciated.

    Well, it's all Java, right? So what's the problem? Since the JVM for HP-UX isn't made by Sun, so there could be compatibility problems, but I would expect that would be minimal if a problem at all. But you can't know unless you run it.
    I don't know about building on the different systems. Java's supposed to be write once, run anywhere.... The byte code should be compatible no matter what. I've never heard of Sun saying "compile it on each platform". If the HP JVM isn't going to like bytecode compiled on Windows or another OS, then something isn't kosher with someone's JVM or compiler.

  • Build and deploy iPhone application from terminal

    Hi,
    I'm new to the Mac world and was trying to build an application from the terminal without success although the documentation mentions its possible (but doesn't provide any documentation on the tools or any other details).
    So, anyone can give me a simple example of how to build an application from the terminal and deploy it to the simulator and/or sign and deploy to an iphone?
    Thanks

    Hello lancea,
    sorry for not specifying my Qs clearly.
    But now I got clear idea about asant command.
    Actualy my problem is How to package an ear for obove mentiioned files, which all are in package.
    When I tried to build .ear for particular session bean and accessed from remote client
    I am getting following exeption. It seems application is not able to refer classes in package.
    C:\j2ee\orcaclient>java -classpath ".;c:/sun/appserver\lib\orcaClient.jar;C:\j2
    ee\orcaclient\jp\or\med\orca\sdk\server\base\manager\orcaAppClient.jar;c:/sun/ap
    pserver\lib\j2ee.jar;c:/sun/appserver\lib\appserv-rt.jar" -Dorg.omg.CORBA.ORBIni
    tialHost=JAVADEV01 -Dorg.omg.CORBA.ORBInitialPort=3700 jp.or.med.orca.sdk.server
    .base.manager.Client
    Exception in thread "main" java.lang.NoClassDefFoundError: jp/or/med/orca/dbs/DB
    SIllegalStatusException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sun.corba.ee.impl.util.Utility.loadStub(Utility.java:912)
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
    emoteObject.java:285)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at jp.or.med.orca.sdk.server.base.manager._DBSAccessorSessionHome_Stub.c
    reate(Unknown Source)
    at jp.or.med.orca.sdk.server.base.manager.Client.main(Unknown Source)
    I hope you got my problem.
    Thanks in advance.
    Regards,
    Prashant-

  • CF Builder and debugging line by line

    Hi,
    I have been having difficutly getting CFB to do line by line debugging.
    I have a local server using WAMP 2.0 (Apache, CF9 Dev and MySQL)
    I have RDS setup properly and I can get the debugger started on a line. However, it never progress past the Aplication.cfc.
    I am using Coldbox and the debugger always seems to finish after running about 5 lines in the App.cfc.
    I used FusionDebug on another project and I didn't seem to have this problem. I just wanted to make sure I wasn't doing anything wrong or if anyone else has encountered this problem.
    I will be more than happy to give more details if needed.
    Thanks,
    Mal

    It may be very hard to debug this problem (pardon the pun) over a mailing list. Just way to many factors that could influence what's going wrong, but let's try.
    You say you have the debugger running, and you say "started" (did you mean "stopped"?) on a line. That's a great head start. Many can't even get to there due to config issues (getting the server-side config right, getting the RDS and Server properties in CFB right, getting the project properties to point to that, getting the debug configuration properties right, starting a debug session, etc.). So you're on the right track.
    So when you say it "5 lines in", do you mean you're doing step over or into on each? What is the last line where things work? And what happens?
    Could it be simply that the logic flow at that point is finished in the app.cfc? If so, then you'd need to have set a breakpoint in whatever next point you want to stop at. Does that help?
    /charlie

  • IOS/AIR Running and Debugging Issues with Flash Builder

    I'm having very frustrating intermittent issues running and debugging Flex applications on an iPad 3rd generation retina with Flash Builder 4.7.
    Until this morning, launching on device using both standard and fast packaging worked pretty well. Every now and again, I'd get a dialog saying the packaging had completed successfully, but it hadn't. A quick change of the USB cable to another port on my iMac and it started working again. I'd also randomly get a "Error occurred while installing the application: Invalid <device> specified" error, which quickly went away.
    This morning, with the same code base, the same certificate and provisioning profiles, Flash Builder has only managed to successfully package and run my application on my iPad twice and I must have attempted to launch fifty or so times. Standard packaging, fast packaging and with and without the useLegacyAOT.
    Does this sound like a Flash Builder issue? Is my iMac USB driver dodgy? Has anybody else experienced this?
    Any help greatly welcomed!
    Thanks,
    Simon

    Hi I have had this problem sometimes. With my Mac Book Pro.
    Try making a new flex application and see if you have the same result.
    When I had this problem I created a new Application and copied every thing from my other application.
    This my be a hard solution but I don't no any others.

  • Build and go on Device under Debug error

    When I try to build and go an application I made on my device (iPod Touch) I get the error
    Command usr/bin/codesign failed with exit code 1
    Help would be appreciated,
    Mr. Man

    Ok, here are some more easy questions for you before this starts getting hard:
    1) Have you ever successfully run one of your Xcode projects on your device? If so, was that prior to installing either iPhone OS 3.1.2 or Snow Leopard?
    2) Please confirm the version nos. of your OS X system, your iPhone SDK and Xcode.
    3) Open the Keychain Access Utility (navigate to /Applications/Utilities with Finder), select login from the top left Keychains panel, and _My Certificates_ from the lower left Category panel. You should now see iPhone Developer: <your company name> in the right-center list, and when you expand that entry, you should see your private key. Double click on each of those in turn, and look for any irregularities, such as expiration, wrong name, etc. When your certificate is selected, the info above the list should display a checkmark in a green circle to the left of the words "This certificate is valid".
    4) Return to Project Info (Project->Edit Project Settings), and take another look at Code Signing Identity. The left hand setting should probably say "Any iPhone OS Device". The right hand should probably say "iPhone Developer (currently matches <certificate> in <profile name>), where <certificate> is identical to the uppermost line above the green check mark in step 3, and <profile name> is the name of the provisioning profile shown in the Xcode Organizer window when your device is selected in the left panel (and in that left panel, the device selection should show a small green icon on the right side of the panel).
    Please be sure to let us know about any deviation from what I described in steps 3 and 4.
    If you still have no clues, please return to the Portal, and start from the beginning of the instructions for getting ready to test your projects on a device. Pay special attention to the How To tabs for Certificates, Devices, App IDs, and Provisioning. Also note there's a User Guide, and 4 videos available under Portal Resources in the upper right panel of the Portal home page.
    If you don't see what you missed after studying the above, start a new project from a clean template. The name for the new project should not contain any spaces, and the logs will be much easier to read if you save the project folder close to the root of your file system. Then repeat every instruction in the Portal for that project and try to install it on your device without making any other changes to it.
    If none of the above is helpful, search this forum on keywords such as codesign, signing, identity, 3.1.2, 10.6, snow and SL, along with some of the terms you found in the build log, such as "invalid existing signature". As you'll see, if this forum had a FAQ, codesign problems would be at the top of the list. If you don't get a clue from searching this forum, put the same keys into Google.
    The above is an overview of what questions need to be answered and where to look, starting with the easiest and progressing to the more difficult investigations. If you think you've found a clue, but don't know what to do with it, please let us know right away.
    \- Ray

  • Unable to build and run Javapetstore using  Sun SDK

    Hi,
    There is a problem I�ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    �Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar�
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.All attempts to run end up with:
    � BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK.
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples brings to same result.
    What can I do? I will post more information if needed.
    Thank you in advance for help.

    Multiply duplicated

  • Unable to build and run Javapetstore using  Sun SDK from Command Line

    Hi,
    Here is a problem I?ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    ?Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    ? BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK."
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples bring to same result.
    I will post more information if needed.
    Thank you in advance for help.

    If you are using Windows XP:
    1. Right click on my computer
    2. Select Properties from the popup dialog
    3. Click on the "Advanced" tab
    4. Click the button towards the bottom that says "Environment Variables"
    5. In the dialog that pops up, look in both the User variables and the System variables for a variable named CLASSPATH
    6. If its not there, you need to create it. If you want to make it available to all users of your computer, create it as a System variable. If you only want it to be available to the current user, add it as a User variable.
    7. If it is there, or if you just created it, it needs to contain the following values: the current directory (symbolically abbreviated as a period: "."), any class libraries you want to be available to the java compiler (javac) or the java interpreter (java). By default, jre/lib and jre/lib/ext are searched for classes, so you don't need to include anything located in one of these folders on the classpath.

  • OPM "build and run" error

    Hi
    I have a problem with OPM when I use "build and run".
    I only get a message "The system cannot find the file specified" and nothing more. It has worked, but it used to open Google Chrome browser. Since I did not want this behaviour I uninstalled Google Chrome. But then I got this error instead.
    I can run "build and debug" prefectly fine.
    The problem is not related to a specific project.
    I have also tried to reinstall OPM but the problem remains.
    What file is it the system cannot find? Is there a way of finding this in a log somewhere?
    How does the "build and run" command work? Is there a way of checking why it can not open the browser?
    kind regards,
    Michael

    Hi Andrew
    Just to add some more observations.
    It seems that OPM doesn't look directly to the default browser setting. If I change the default browser, OPM does not directly recognize the new setting. OPM opens the previous selected default browser anyway.
    I dont know if the setting is unique per project or if it is per OPM installation.
    OPM seems to pick up the default browser, but then OPM caches this somewhere. Which caused problem for me when I uninstalled Google Chrome. OPM insisted on trying to start Google Chrome anyway.
    When I now got Firefox working as default browser the problem solved it self. But when I selected IE as default browser, then when I ran OPM it still opened Firefox, and Firefox gave me the warning that it was not default browser.
    So OPM does not always look at the default browser setting.
    kind regards,
    Michael

  • Beginner Question:Unable to build and run Javapetstore using  Sun SDK.

    Hi, there is a problem I�ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    �Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar�
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    � BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK.
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples brings to same result.
    I will post more information if needed.
    Thank you in advance for help.

    Multiply duplicated

  • Regarding building (ant) and debugging Flex components (Flex Builder)

    I am fairly new to graniteds + flex. The example articles on graniteds and blazeds use two separate applications i.e., using mxml components and actionscripts in another project. Why is this done so?
    It was hard to build the swf files in a separate project as the antscript needed something more.
    <mxmlc....>
    <source-path path-element="${basedir}/src"/>
    </mxmlc ..>
    The source here is the actual java source code. Unless I had the two projects together, I could not build the swf files. However, once I convert this one application to a java project, as flex project does not recognize java source code, I can no longer debug my flex screens. Am I missing something here?
    Help
    Krishna

    No suggestions yet?
    Could someone tell me if I could integrate these in one place atleast, if so how do we configure the application to be able to debug Flex applications?
    Thanks
    Krishna

Maybe you are looking for