NetBean 4.1 mobile

Hello all!
this could be a stupid question but I have problem to use the crypto library (jar file) inside my j2me project (bouncycastle)
So I'ha tried to add it using "properties" -> libraries but still seems to unaffect the compilation's process (cannot find symbol)
any ideas?
best regards folks!
alex

in order to use bouncycastle library you have to add cldc_classes.zip or cldc_crypto.zip to your project using Project settings | Libraries and Resources | Add jar. The zip files are part of lcrypto-j2me-129.zip :
lcrypto-j2me-129/zips/cldc_classes.zip
lcrypto-j2me-129/zips/cldc_crypto.zip
Also make sure you have installed the latest updates of NetBeans Mobility Pack 4.1 from the update center - Tools | Update Center
-Martin

Similar Messages

  • Unable to install the Netbeans 4.1 Mobility Pack

    Hi,
    I have Netbeans 4.1 installed on my machine and I have just installed Java Studio Enterprise 8 so that I can compare them. I have been trying to install the Netbeans 4.1 Mobility Pack into the Java Studio Enterprise 8 IDE as described on the website but it will not install. Should I uninstall Netbeans 4.1 first?

    The installer included with JSE CD should work fine; also the current installer hosted on netbeans.org should work fine too.
    But there were some earlier installers that were specifically looking for 'nb41' directory (which exists in netbeans41 but not in jse).
    If the installer is looking for this directory, one workaround is to create an empty directory named 'nb41' in jse8 install directory ( parallel to ide5, platform5 etc). The installer merely checks for the existence of this directory and the contents do not matter; installation should proceed without issues if this dir exists.
    Ref: http://www.netbeans.org/issues/show_bug.cgi?id=60850

  • Images in NetBeans 5.0 Mobility

    Hi all,
    I am an experienced programmer but new to Java. I want to learn how to program MIDlet's for mobile phones. I have installed NetBeans 5.0 and the NetBeans Mobility Pack for supporting mobile applications.
    I have learned the basics like creating a MIDlet and a canvas. I can draw text to the canvas.
    But what I can't do is to load an image and display it on screen. My problem is to include the image to my project. I think I have to use the Image class' createImage() method, but what should be the path of the image?
    I also worked with KToolbar. There was a folder named res, where all the resource files where put into. But in the project of NetBeans, there is no res folder.
    So I would be pleased, if you can help me with including images to project and displaying them on screen.
    Thanks for help,
    Regards.

    Please post only Java language questions in these forums. They do not provide support for NetBeans (or other IDEs), you might try the NetBeans site mailing list.
    If the code was not compiled with debugging enabled, then it can't be debugged.

  • S60 3rd Edition MIDP + Netbeans 5.5 + Mobility CLDC !URGENT!

    My Environment       Device: Nokia E61
           SDK: S60 3.0 MIDP SDK (S60 3rd Ed MIDP)
           Java: javac 1.5.0_12
           OS: Microsoft Windows XP Professional [Version 5.1.2600]/ Service Pack 2
           Computer: AMD Athlon 64bit CPU 3200+ 2.1GHz, 1.00GB Mem
           NetBeans (5.5 dev build ):
              Number: 200704122300
              Date: ${buildday}
              Branding:
              Branch: release551
              Tag:
           Mobility: NetBeans Mobility Pack 5.5.1I am having problems building application with netbeans. The jar file is coming out excessively large and it fails to run on the emu, get -10504 error (already tried to lookup error code at http://newlc.com/Symbian-OS-Error-Codes.html and it is not listed there). I inspected the .jar file and did not see anything there that did not belong; only .class, .png, kxml library and manifest files were present (no Thumbs.db or other clutter).
    When I build the same application with CarbideJ the jar file size is significantly smaller and it executes on the Emulator. Are any of the CarbideJ tasks, namely <ndsj2mejavac> and/or <ndsj2mepackage>, doing something special to source, jar or images that maybe netbeans is skipping; running a different preverifier, different archiver, using it's on version of javac.exe or something?
    When I compile using Carbide.j this is what I get (NO obfuscated/NO debug info);
         AppXXX.jad (400 bytes)
         AppXXX.jar (728,538 bytes)however, when I compile with Netbeans, I get the following(obfuscated set to level 9/NO debug info);
         AppXXX.jad (471 bytes)
         AppXXX.jar (927,530 bytes)The jad files generated were different but only because one had more descriptor tags in it, nothing major about that. The problem is that the jar file generated by netbeans is significantly larger than the one generated by carbide. Also, I compiled the exact same program under the Sun Wireless toolkit v2.5.1 and got the exact same jar file sizes and runtime error on emu that netbeans generated; I installed s60 sdk for wtk and selected it before before creating package for application. Also I state before, the version created with Carbide.j runs in the Emu; however, the NB version does not.
    Already posted to Nokia forum and no help there
    I would be very appreciative if I can quickly get some help!
    Files:
    build.xml (output of netbeans build process is append to the end of the build file in an xml comment): http://home.comcast.net/~eramsey1535/JavaME/Nokia/build.xml
    CFG_DEV.properties: http://home.comcast.net/~eramsey1535/JavaME/Nokia/CFG_DEV.properties.txt
    project.properties: http://home.comcast.net/~eramsey1535/JavaME/Nokia/project.properties.txt
    image of error displayed on emu: http://home.comcast.net/~eramsey1535/JavaME/Nokia/error_displayed_on_emu.gif
    image of error in emu popup dialog: http://home.comcast.net/~eramsey1535/JavaME/Nokia/error_displayed_in_emu_popup_dialog.gif
    Thanks!

    Hi,
    I'm facing exactly the same problem, and was wondering whether you found the solution to this problem.
    Thanks in adance,
    Iwan

  • Adding a third level to netbeans sample simple mobile game ?

    The tutorial at
    http://wiki.netbeans.org/CreatingJav...edLayerToScene
    helped me make a simple game with 2 levels, The first level being the forest level and the second one being the Desert level. I managed to make both these level work. As soon as the sprite Karel moves to the bottom right edge of level 1, level 2 is displayed, which also works fine. But now Ive made a third scene which I want to start as soon as the sprite Karel reaches the bottom right of the level 2 (i.e desert scene)
    I know that this portion of the code make the level 2 load as soon as Karel reaches the bottom right.
    public void run() {
              Graphics g = getGraphics();
              while (!this.interrupted) {
                   //switch to 'Desert' scene once the main sprite moves
                   //to the bottom right corner of scene 'Forest'
                   if (this.spriteKarel.getX() >= 340 && this.spriteKarel.getY() >= 340) {
                        try {
                             this.ground = this.gameDesign.getSand();
                             this.colliders = new TiledLayer[] {};
                             //remove all current layers
                             while (this.lm.getSize() > 0) {
                                  Layer l = this.lm.getLayerAt(0);
                                  this.lm.remove(l);
                             //load the 'Desert' scene
                             this.gameDesign.updateLayerManagerForDesert(this.lm);
                        } catch (IOException e) {
                             e.printStackTrace();
                        //reset the viewport
                        this.viewPortX = 0;
                        this.viewPortY = 0;
                        this.lm.setViewWindow(this.viewPortX, this.viewPortY, this.getWidth(), this.getHeight());
                        this.lastDirection = -1;
                   }But how can I do the same for level 3 to load? I tried adding the following code in the run function but it ran level 3 instead of level 2
    if (this.spriteKarel.getX() >= 300 && this.spriteKarel.getY() >= 300) {
                        try {
                             this.ground = this.gameDesign.getSide();
                             this.colliders = new TiledLayer[] {};
                             //remove all current layers
                             while (this.lm.getSize() > 0) {
                                  Layer l = this.lm.getLayerAt(0);
                                  this.lm.remove(l);
                             //load the 'Wall' scene
                             this.gameDesign.updateLayerManagerForWall(this.lm);
                        } catch (IOException e) {
                             e.printStackTrace();
                        //reset the viewport
                        this.viewPortX = 0;
                        this.viewPortY = 0;
                        this.lm.setViewWindow(this.viewPortX, this.viewPortY, this.getWidth(), this.getHeight());
                        this.lastDirection = -1;
                   }

    I think that the problem is in your 'if' conditions where you check the current position of the Karel sprite. The second condition
    if (this.spriteKarel.getX() >= 300 && this.spriteKarel.getY() >= 300)is met before the first condition
    if (this.spriteKarel.getX() >= 340 && this.spriteKarel.getY() >= 340)That why you go straight into level 3.
    I suggest you declare another variable, for example 'level' where you will store the current level number and employ this in your conditions, e.g.
    if (this.spriteKarel.getX() >= 300 && this.spriteKarel.getY() >= 300 && level == 2)
    if (this.spriteKarel.getX() >= 300 && this.spriteKarel.getY() >= 300 && level == 1)That should do the trick......
    One important thing to add. When you move one level up do not forget to bump your level variable by one (level++).

  • 7610 Emulator for NetBeans 4.1 w/ mobility pack?

    Hi,
    Does anybody know where I can find a 7610 emulator that integrates with the NetBeans 4.1 mobility pack? The one I found on forum.nokia is not considered a valid emulator according to NetBeans.
    Thanks in advance,
    Iwan

    The S60 SDK is for S60 fp 2 or 3, the 7610 is S60 fp 1. I've talked to a Nokia rep at the Nokia support center and he recommended upgrading the firmware. Hopefully I get around doing so in the next week.
    Iwan

  • NetBeans Mobility Pack 4.1 Released

    The latest version of the NetBeans IDE and Mobility Pack are now available. This release features several key new features for MIDP development, including a Visual Mobile Designer for drag-and-drop authoring and a Wireless Connection Wizard for building end-to-end mobile applications. There's also lots of great new features in the base NetBeans IDE as well, including J2EE 1.4 and App Server 8.1 support. Please take a look and check it out: http://www.netbeans.org/kb/41/mobility.html

    every time i open the ide it generates an IO Exception and it dosen't recognise the midp classes.
    i created a new user account and ran the ide from there and it opened without generating the IOException and it showed me the classes and everything, it ran beautifully. now when i closed the program and later reopened it, it generated the IOException and dosen't recognise the classes anymore.

  • Java ME Emulator does not start in Netbeans 8

    Hello,
    I am new to Netbean and I am trying to run the Java ME 8 Emulator within Netbeans 8.
    My project (IMletDemo) runs properly if the emulator is executed outside Netbeans 8.
    I set ant in debug mode.
    the output file is the following :
    Property "platform.bootclasspath" has not been set
    Property "run.cmd.options" has not been set
    Property "platform.runcommandline" has not been set
    Property "dist.jad.url" has not been set
    Starting emulator in execution mode
    Finding class org.netbeans.modules.j2me.common.ant.EMapFormat
    Loaded from C:\My Program Files\NetBeans 8.0\mobility\modules\org-netbeans-modules-j2me-common-ant.jar org/netbeans/modules/j2me/common/ant/EMapFormat.class
    Class java.text.Format loaded from parent loader (parentFirst)
    Class org.netbeans.modules.j2me.common.ant.EMapFormat loaded from ant loader (parentFirst)
    Class java.lang.StringBuffer loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.taskdefs.Execute loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.types.Commandline loaded from parent loader (parentFirst)
    Finding class org.netbeans.modules.classfile.ClassFile
    Class java.net.URL loaded from parent loader (parentFirst)
    Executing command line: $
    Execute:Java13CommandLauncher: Executing '$'
    The ' characters around the executable and arguments are
    not part of the command.
    C:\Users\BAAL7505\Documents\NetBeansProjects\IMletDemo\nbproject\build-impl.xml:810:
    java.io.IOException: Cannot run program "$": CreateProcess error=2, Le fichier spécifié est introuvable
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
    at java.lang.Runtime.exec(Runtime.java:620)
    at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
    at org.netbeans.modules.j2me.common.ant.RunTask.doExecute(RunTask.java:396)
    at org.netbeans.modules.j2me.common.ant.RunTask.execute(RunTask.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
    Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
    at java.lang.ProcessImpl.start(ProcessImpl.java:137)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
    ... 21 more
    BUILD FAILED (total time: 3 seconds)
    I could not find how to set the properties platform.bootclasspath, run.cmd.options, platform.runcommandline, dist.jad.url.
    Can anyone help me with this issue, please ?
    Thanks in advance.
    Bruno

    Hi Sergey,
    I use :
    oracle-jmesdk-8-0-rr-win32-bin.exe
    jdk-8u5-nb-8-windows-x64.exe
    oracle-jmesdk-8-0-rr-nb-plugins.zip
    I downloaded them on may 27th. I assume they are the latest packages.
    Bruno

  • How the app is deployed in mobile,

    I am new to java mobile, and in javafx I worked on desktop and browser but no mobile yet, I just created a simple mobile application, now i want to know how to let it work inside mobile, is there a way through webstart using some kind of mobile browser?

    You can change your project settings in netbeans to make netbeans start the mobile emulator so that you can test your app. After compilation netbeans creats a new folder in your project called "dist". From there you could take the .jad and .jar file and transfer it to a JavaFX capable mobile phone and run it.
    But there is not much information around the net which phones are working atm. The HTC Diamond should do if you got one ;)

  • HOW TO EMBED J2ME INTO NETBEAN?

    I CANT USE J2ME WHEN IM IN NETBEANS .HOW DO I INSTALL J2ME INSIDE NETBEANS?

    U can set up netbeans mobility pack at this link
    http://www.netbeans.org/products/mobility/
    then U can found when U create new project at netbeans
    Mobile application
    yours
    Mohammed Thabet
    4th year-FCI-Helwan Univ -Cairo-Egypt

  • What about Mobility Pack?

    Hi,
    netBeans has its mobility pack, but does the Studio Ent. have one appropriate for using with them?
    Regards
    Krzysztof

    Mobility pack can be downloaded from netbeans.org and installed on studio ent 8. (Since jse 8 is based on nb41, you should download the installer for netbeans4.1).
    Ref: http://swforum.sun.com/jive/thread.jspa?forumID=122&threadID=59433
    http://www.netbeans.org/products/mobility/

  • Mobile research

    I am interesting in mobile mobile application development . So, can some one tell me what are available mobile research areas ?
    Thank you

    Well that would depend on a few things.
    1. Do you already know Java (J2SE, J2EE, etc.) or will the whole Java experience be new to you?
    2. Do you have a preferred IDE (i.e Eclipse or NetBeans)? Each has their own preferred plug-in with associated tutorials.
    If you do not know java already, you may want to find some simple Hello World examples in Java Standard Edition (J2SE) to get you familiar with the java language first.
    If you do, then you can either download Eclipse and install a J2ME Plugin (for example EclipseME located here: [http://eclipseme.org/|http://eclipseme.org/]
    or NetBeans with the Mobility Pack located here: [http://mobility.netbeans.org/|http://mobility.netbeans.org/]
    HTH.

  • Slow start-up of Emulator in Linux

    When I try and run the phone emulator, it takes a long time (>5 minutes) to start up. I've got the 2.2 toolkit which came with the NetBeans 4.0 mobility pack, running on SuSE Linux 8.2 on a Pentium III, 1GHz with 384mb of RAM. I have Java 1.4.2_05.
    This happens if I run the emulator from within Netbeans or from the command line. Taking the latter case, I'm starting it with
    bin/emulator -Xdescriptor /..../VariousGames.jadI then see this message:
    Running with storage root DefaultColorPhoneand the phone application starts immediately. However it is totally unresponsive. Some minutes later I see this:
    Warning: Failed to initialize WMA message routing supportand even later I see this:
    Warning: Failed to initialize Bluetooth (JSR 82) supportFinally, after 5 minutes or so, the application actually becomes responsive, and subsequently works OK. During this time, the CPU usage for the java process is very low (0% usually, with an occasional blip to 5-10%)
    It seems like it's waiting for something to happen (something on the network?) but I can't figure out what.
    Does anyone else see this?
    Peter

    I have resolved this problem by correcting the adress in the /etc/host to the one the dhcp server had currently assigned me.
    the router had rebooted and given me a different adress but my hosts file still mentioned the old one.
    I would suggest to check if the hosts file is up to date when encountering this problem.

  • How can i change backgroud color in Java ME Platform SDK 3?

    Hello.
    Yesterday i had donwloaded Java ME Platform SDK 3.0. It is IDE based on NetBeans core, but i didn't find any facility to change default colors. (NetBeans have option to change color theme). I am don't like working when background color is white, i prefer black. So, how change a background color? Can anybody help me to figure this problem out?
    p.s. sorry for my bad english (

    Hello,
    Unfortunately it is not possible. We will think about it for next release. Java ME SDK is not supposed to offer full IDE functionality (e.g. changing editor colors), that's why some features are missing. For full IDE support use NetBeans IDE with Mobility support.

  • How to launch many instances of Sun Java ME Platform SDK 3.0 emulator ?

    Hi all,
    I want to launch two instances of the emulator , how to achieve that ?
    Thank you very much indeed

    Hello,
    Unfortunately it is not possible. We will think about it for next release. Java ME SDK is not supposed to offer full IDE functionality (e.g. changing editor colors), that's why some features are missing. For full IDE support use NetBeans IDE with Mobility support.

Maybe you are looking for

  • PGI for STO movement type error Message no. L9005

    Hi Gurus, I have created an STO.Created delivery and confirmed TO. Now while doing PGI,single step only(647 movement type), system throws the following message, "" Error during search for WM movement type (641 1 L K  )    Message no. L9005 "". As per

  • Connection timed out message - Part 2

    ok so i have been having this same problem. but i dont believe i have norton on my laptop. I search for it to uninstall it but nothing comes up. PLEASE HELP! <Post Relocated and Edited by Moderator>

  • Mailadapter - creating scenario

    Hi all, I'm trying to get some more information about setting up a scenario in XI where i have to read in an e-mail with the following content : subject body (firstname + lastname; date of birth, street + nummber, zip code + city ; clinic ; zip code

  • Wierd icon issue

    hey, new to my macbook pro but by no means new to mac. never seen this issue in OS X. In my system pref window the "Universal" icon is wierd looking now. Its a light switch with the actual Universal icon appearing in the bottom corner of this weird b

  • Export/Import DC project

    Hi, I am trying to export my WebDynpro project from the NWDS so that I can move it to a different PC. It was created as a DC project. When I export to the file system and import it on the new PC, the DC metadata node does not exist in the new environ