Creating a project with wireless toolkit

Hi everybody,
I'm trying to create a project with WTK 2.1 and I can't. I follow the tutorial steps but after building successfully the sources I run them and appears me the following lines:
Unable to create MIDlet BotonMid
java.lang.ClassNotFoundException: BotonMid
at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
at com.sun.midp.midlet.Selector.run(+22)
Execution completed.
Selecting new project in the wireless toolkit I type the following:
Project name botonoriginal
Midlet class name BotonMid
BotonMid is the name of a java file and is the name I have in the line
public class BotonMid extends MIDlet implements CommandListener
Why can't I create the project?
Thanks.

Thanks for the responses. But both solutions proposed doesn't work and I don't know why. First of all I try to compile the BotonMid.java file using javac and it appears me 29 errors. I'm confused because when I build the project is successful.
Maybe there is a J2ME compiler (j2mec for example) but I don't find in the web. I also try to type a public constructor but appears me the same error.
And my question is: how can I compile the java file without errors? I don't understand why appears me 29 errors if the file building is sucssesful.
Thanks.

Similar Messages

  • Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?

    Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?
    Thanks!
    -Adrian

    the old apps are on my computer but they have had upgrades since they were put on the ipod originally.  you think you would get a warning about this when you restored. I was not worried about losing the progress of the apps but i would have been worried about the app it self!!!!!

  • How to use assert with wireless toolkit?

    Hi,
    I am trying to find out how to use assert with wireless toolkit. I have found that I need to pass "-source 1.4" to the java compiler. But I can't find any documentation on how to do it.
    I'm using J2ME Wireless Toolkit 2.2.
    thanks
    Ludde

    Here's a quote from an article on Java World at http://www.javaworld.com/javaworld/jw-11-2001/jw-1109-assert.html
    "To support the new assertion facility in J2SE 1.4, the Java platform adds the keyword assert to the language, an AssertionError class, and a few additional methods to java.lang.ClassLoader."
    So I really think it's part of 1.4.

  • Null Pointer Exception and Illegal Arguement when ran with Wireless Toolkit

    The following code throws a null pointer exception after it tried to initialize the textBox. I am not sure if there is something I am not importing, or if it's just because I'm sick and my head is cloudy. :-}.
    I am using Wireless Toolkit 2.2 and Java 5.0
    Anyhelp would be appreicated. Thank You.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TacticalTestMain extends MIDlet implements CommandListener {
         private Display display;
         private Form formMain;
         private TextBox tbHelp;          //Text Box for help Command
         private Command cmExit;          //A button to exit midLet
         private Command cmBack;          //Go "back" to main form
         private Command cmHelp;          //Ask for help
         public TacticalTestMain()
              display = Display.getDisplay(this);
              formMain = new Form("Tactical Survey Program");
              cmExit = new Command("Exit", Command.SCREEN, 1);
              cmBack = new Command("Back", Command.BACK, 1);
              cmHelp = new Command("Help", Command.HELP, 1);
              formMain.addCommand(cmExit);
              formMain.addCommand(cmBack);
              formMain.addCommand(cmHelp);
              formMain.setCommandListener(this);
              System.out.println("Before Create Text Box");
              //Create the help textBox with a max of 25 charecters
              tbHelp = new TextBox("HeLp", "You can press the back button", 25, 0);
              tbHelp.addCommand(cmBack);
              tbHelp.setCommandListener(this);
              System.out.println("AfTER Create Text Box");               
         }//end constructor
         public void startApp()
              System.out.println("Inside StartApp()");
              display.setCurrent(formMain);
         }//end startApp()
         public void pauseApp()
         }//end pauseApp
         public void destroyApp(boolean unconditional)
              notifyDestroyed();
         }//end destroyApp()
         //Check to see if the exit button was selected
         public void commandAction(Command c, Displayable d)
              System.out.println("Inside commandAction()");
              String sLabel = c.getLabel();
              if(sLabel.equals("Exit"))
                   destroyApp(true);
    Errors from the KToolbar:
    Running with storage root DefaultColorPhone
    Before Create Text Box
    Unable to create MIDlet TacticalTestMain
    java.lang.IllegalArgumentException
         at javax.microedition.lcdui.TextField.setChars(+105)
         at javax.microedition.lcdui.TextField.setString(+27)
         at javax.microedition.lcdui.TextField.<init>(+134)
         at javax.microedition.lcdui.TextBox.<init>(+74)
         at TacticalTestMain.<init>(+134)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+19)
         at com.sun.midp.midlet.Selector.run(+22)
    Execution completed.
    743701 bytecodes executed
    23 thread switches
    741 classes in the system (including system classes)
    4071 dynamic objects allocated (120440 bytes)
    2 garbage collections (91412 bytes collected)

    Hi zoya,
    Here is the problem:
    tbHelp = new TextBox("HeLp", "You can press the back button", 25, 0);
    This line declares a maximum textbox size of 25 but in reality he is declaring a textbox of size 29.
    Thats why it is throwing the illegal argument.
    happy coding :)

  • Encore CS4 can't create a project with Snow Leopard

    After many crashes on a Windows XP 64Bit Dell workstation trying to render a project, I thought I would create the project from scratch on my MacBook Pro 17" with Snow Leopard installed. I get a strange string error message trying to create a new project. It goes back to the welcome screen and I try to open the project it just created. I get a second error message that the project was created with Windows and can't be opened with a Mac. Strange. Then I get a third message saying an input contract violation has occurred. I guess I'm in trouble somehow for this . I think I was successful at creating a service issue with this, but I only grabbed the first error message at that time.
    I'll attach the messages here....
    Rick

    Sorry to say, no I have not. I was able to complete the work on my Windows XP 64Bit system.
    The MacBook is my personal laptop, but I use it as backup to what I am doing on the workstation.
    I was sent some info on permissions and maybe starting in safe mode. I don't know that "safe mode" exists on a Mac, and I am the only owner/user on it. Permissions should not be an issue. No time right now to do an uninstall/reinstall, but that's what I was thinking of doing.
    It tells me I can't create the file, yet it appears in the folder. Then I try to open it and it says it was created with a Windows machine. Neat trick.
    I just tried again, no luck.

  • How to run projects on Wireless Toolkit on Solaris 10?

    Hi,
    I've installed Solaris 10 on x86.
    After that I've installed Wireless toolkit and Netbeans Mobility pack.
    I was able to install both of them but, Now, when I try to run any J2ME application I get an error "Cannot find /lib/ld-linux.so.2" and something about preverifying.
    This might bebecause there isn't any perfect version of WTK available for Solaris 10 and I need to use wtk for liunx.
    I think since, solaris and WTK both are product of SUN they should provide solaris compatible version of WTK.
    Please let me know how can I solve this problem or suggest any other tool that can allow me to create and deploy J2ME applications on Solaris 10(x86)
    I need this to be solved pretty quickly since it is very urgent
    Thank you all
    Edited by: parag.rughani on Sep 28, 2007 5:37 PM

    there is no WTK 2.x for solaris, but it is possible to use WTK 2.x and Solaris. You can find how to that here:
    http://wiki.netbeans.org/wiki/view/JavaMEDevelopmentWithSolarisX86?version=21
    Good Luck,
    K.

  • Creating a project with 5.1 audio channels

    Hi,
    My camera can record in 5.1 channels (I have a multi channel mic for that). If I record using it, I obviously want to create a project that can include this and that will eventually will get me to create a DVD with 5.1 channels, so I can benefit from it when watching them into my Home Theater.
    Does anyone knows if this is possible?
    I seem to see some 5.1 options when sharing as Quicktime movie and so on but not sure how to use them.
    Thanks in advance for any advice.
    AMPJ

    You need Final Cut Studio to burn 5.1 on mac. (DVD Studio Pro, to be specific)
    Yes, IMO Apple really sells Logic users short on 5.1. Sure you can author, but no delivery platform unless you pony up $$$ for FCS.

  • CREATING "MASTER" PROJECT WITH PREMIERE ELEMENTS (PRE)

    I am creating a new thread following up on earlier questions re Premiere Elements 8.0 (PRE).
    I have created (authored?) 14 projects with music using PRE and burned each on 1 DVD.  I did not save to a folder, but went to Share and Burn Disc.  They show well on TV from an ordinary DVD player.  Now I must combine these projects into 3 "master" projects on 3 DVDs and burn multiple copies to send to former members of my Boy Scout Troop.  See the chart below. I thought (silly me) that I could do that straightforwardly with PRE.  I am going to start following suggestions from Bill Hunt and Nealeh.  
    Titles of Existing “Premiere Elements 8.0” “Sub” Projects
    All Burned Individually to NTSC DVD Standard
    Each Project Now on Separate DVD
    No. of Slides
    Running Time
    Min:Sec
    Desired
    New Project for DVD Players
    Introduction & Dedication
    21
    5:30
    DVD NO. 1
    417 Slides
    69:46
    With Main Menu Marker for Each SubProject
    1974 Canoe Trip
    60
    9:12
    1975 Canoe Trip
    105
    16:41
    1976 Canoe Trip
    24
    5:12
    1977 Canoe Trip
    16
    3:00
    1978 Canoe Trip
    89
    14:02
    1979 Canoe Trip
    15
    2:15
    1982 Canoe Trip
    87
    13:54
    1973 Jamboree
    62
    10:42
    DVD NO. 2
    247 Slides
    34:32
    With Main Menu Marker for Each SubProject
    1981 Jamboree
    124
    15:11
    1985-2001 Jamboree
    61
    8:39
    Troop 184 Camping & Hiking
    190
    34:28
    DVD NO. 3
    443 Slides
    78:12
    With Main Menu Marker for Each SubProject
    Other Activities 1972--1985
    65
    10:19
    Troop 184 Family Camping  1974--2006
    188
    33:25
    Total Slides
    1,107
    182:30
    182:30

    Hey, those ain't "newbie" questions. The first one gets posted to the Forum Comments forum weekly. The second one, well I should have posted my normal detail, but got lazy - mea culpa, mea culpa.
    1.) This ARTICLE should step you through the processes with the e-mails. If you have any questions, let us know. There are several places, where e-mail notification can be turned ON and OFF. Some are global, and some are specific to threads.*
    2.) Ah, the ImgBurn site. The top 2/3 are all ads. Hey, it's great free software, so who can blame 'em? Scroll down to where the page has the various versions and what they addressed. There is a Download button there (well below those ads). That is what you want. Normally, I mention the scrolling way down page, but you caught me here.
    Good luck,
    Hunt
    * Going back a few months, while trying to help another user on the Forum Comments forum, I got hit with a global change in my e-mail settings. I got about 1,000/day, for every forum that I participate in - think 1,000 x PS, PrPRo, Encore, InDesign, Illustrator, Audition, PrE and all of their sub-fora! Fortunately, it only took about 3 days for Adobe to get that fixed.

  • Cannot create a project with netbeans 4.1

    hi. i am using jdk1.5 update 3 with netbeans 4.1. my operating system is ubuntu linux 5.04. when i want to create a new project with netbeans i get this error:
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    i open netbeans, click button "new project", select "General > Java Application", click "next" button.
    project name: JavaApplication1
    project location: /home/bsevindi
    project folder: /home/bsevindi/JavaApplication1
    when i click "finish" button, i get the error above. what should i do? BTW, i have compiled
    a sample project and it works fine. the problem is only about creating a new project.

    I suggest you post the question to a netbean users forum.
    This forum is better for question regarding programming rather than how to use an IDE.

  • Create New Project with existing Source

    Hi there,
    I'm new to JDeveloper (10.1.3) IDE. I want to create an Application with an existing Source. As my application cosists of different folders and each module code is present in their respective folders.
    In eclipse i will point to the main folder of the project.
    ie.
    folder1
    |-->folder2
    |-->folder3
    i will point out to folder1
    (NOTE: folder 2 and folder 3 consists of source code of respective modules)
    Pls help me in this regard so that i can make use benefits of Jdeveloper.
    Thanks,
    Vinay

    Create a new workspace and an empty project in it. Then go to project properties for that project and just add the directories you want under the "project content" node.

  • How can i create a project with my exisiting java code

    Hi All,
    I have a source code of one project and i want to execute this in jdeveloper 10.1.3.1.0 version.
    can u please suggest me how can i execute that project
    its using struts and ejb's
    i need clear steps of this.
    Thanks in Advance.
    Regards,
    588872

    Under file->new->Projects you'll find two options that are relevant to you:
    One is called project from WAR file - this will allow you to point to a project that has been packaged as a WAR and will create a JDeveloper project for it.
    The other option is called "Project from existing source" this will allow you to point to your existing code directory and will create the JDeveloper project for this.
    After you created the project, you might want to do a bit of tweaking under the project properties->content and sub categories for Web content, resources etc...
    And you might also need to add any missing JAR files you are depending on to the libraries node of your project properties.

  • Error runing MIDlet's with Wireless Toolkit

    Hi
    I'm having problems executing MIDlet's. I'm using WTK2.1 and j2sdk1.4.2_04. When I try to run the examples in the wireless toolkit I get the following error:
    Error running executable C:\WTK21\bin\zayit
    java.net.BindException: Cannot assign requested address: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
         at java.net.ServerSocket.bind(ServerSocket.java:318)
         at java.net.ServerSocket.<init>(ServerSocket.java:185)
         at java.net.ServerSocket.<init>(ServerSocket.java:97)
         at com.sun.kvem.Lime.runClient(Unknown Source)
         at com.sun.kvem.KVMBridge.runKVM(Unknown Source)
         at com.sun.kvem.KVMBridge.runKVM(Unknown Source)
         at com.sun.kvem.midp.MIDP$5.run(Unknown Source)
    Has anybody encountered this problem or know how to solve it? Any answers will be greately apreciated
    thanx
    christian

    I had the same problem. I simply allowed my firewall software to allow the C:\WTK21\bin\zayit application full access. Previously even when I disabled the firewall it still wouldnt work, until i did the above.
    Hope this helps

  • Create one project with two images- DUHHH

    Sorry I am struggling with the learning curve.
    I want to simply create a high quality print with two photos arranged using the Book's cool sample templates.
    I have arranged the images within a Book template.
    It only takes one page and Book must be an even number of pages. How can I export the one page- or what other element of Aperture should I be using?

    Hi,
    yes, I think to remember that there is support for a single style only. If you need another one too then you create a new project.
    Frank

  • RoboHelp 7 crashes when creating new project with files from VSS

    RoboHelp crashes when I create a new project and choose to get existing files from Visual Source Safe to load into the project.  Does anyone have a solution to this problem or a suggestion as to why this may be happening?  I'm attaching the errors associated with the crashing.
    Also, we have a very large Help system (985 topics) which compiles into a 46 MB chm file.  Is there a maximum suggested topic size (per topic) and a maximum suggested number of topics per project?  Could this be part of the reason RoboHelp is crashing?  We've always had a large Help system since we started using RoboHelp several years ago but the crashing is a more recent problem.
    Thanks,
    Carissa

    I had the same issue then I found out all you have to do is to set the default view to List before opening any previous or new project and it worked, credit goes to this user below who found the solution.
    ahmedMac25
    I was able to resolve by workaround:
    1. Closed all open applications
    2. relaunch Finder
    3. run  sudo find / -name ".DS_Store"  -exec rm {} \;
    4. this removes all  .DS_Store old files on the computer
    5. launch finder and set default view to "LIST VIEW" as shown here:http://macs.about.com/od/usingyourmac/ss/Setting-Finder-Views-For-Folders-And-Su b-Folders_2.htm
    5. rerun the offending application and file chooser works

  • Creating a project with *only* JSR168 support

    Hi,
    In the article, "Deploying Java Portlets with WebLogic Portal 8.1 SP3" (at http://dev2dev.bea.com/products/wlportal81/articles/deployJava81sp3.jsp) Alex states:
    "One consideration that may reduce deployment time is to use a scale down version of the Portal project. You can create your own project that only includes support for JSR 168 and no other services. Tags related to the portal content management services, Java pages flows, and other non-168 services could be removed."
    Does anyone have any guidance on how this might be done? The 'Create project' wizard in WebLogicWorkshop does not offer much guidance. This info seems to suggest that this would be done by deleting some stuff from a WebLogicWorkshop portal project. However, I've found it can be a tricky knowing which things are OK to delete, and which things are required (especially meta-info files).
    Any suggestions?
    Thanks,
    Stephen.

    You could theoritically delete all the netui related jars. Beware - i am not sure what the portaladmin web app uses.
    SO - basically if u skinny down your web-inf directory u should be ok - but don't skinny down the app-inf/lib without testing the portaladmin web app.
    Kunal Mittal

Maybe you are looking for

  • How can i only allow the activation of the JDialog on top?

    Hi to all, i have a problem with a mask swing Well, my problem is this: In a window, when i click on save button, it's open a customizing JDialog. But i would like how i can deny a click out of this JDialog, that is on top. In other words, in this si

  • Iterating performance: ArrayList, LinkedList, and Hashmap for N 1,000,000

    I have seen some websites discussing about the performance of ArrayLists, LinkedLists, and Hashmaps: http://forum.java.sun.com/thread.jspa?threadID=442985 http://java.sun.com/developer/JDCTechTips/2002/tt0910.html http://www.javaspecialists.co.za/arc

  • Automatic Payment F110, Using currency other than the currency of invoice.

    I want know if it is possible to make automatic payment by F110, paying through a currency other than the currency of the invoice? Using the f-53 transaction i know that is possible, but i must use the F110, because I generate a file to send to the B

  • Addition\modification of Module Template. Possible?

    Is it possible to add a link to a web form to a Module Template, specifically the Detail Layout of Customer Orders Layouts? I want to allow the customer to go to a Payment Details entry form from the Order detail. This is all done after login to the

  • Disk aint the

    I just got a new album today in the sho ps. I inserted it to my dvd-rw dri've to put it on to my zen touch. But the disk does not appear on the dri've. the light on the dri've is on and running but in the my computer folder it is not there. What coul