NetBeans: Nemesis of BlackBerry

Hi guys,.

I am very new to the BlackBerry development and little involved by curiosity. Every single tutorial online either explains the use of RIM JDE or Eclipse with the support of BlackBerry as the IDE of choice, but found that these two are extremely limited in interface designs.

An investigation into the use of Netbeans and to my surprise found as many resources on this topic like finding a needle in a heystack. I answered a question similar hereand explained how I got BlackBerry JDE integrated into Netbeans 7.0, but my problem now is to get my building project.

I've implemented Ant scripts specific to make an old NET online, using BB Ant tools 1.2 and it work for me, but for some strange reason, I continue to run into the following error message:

C:\Users\Developer\Documents\NetBeansProjects\HelloBB\nbproject\build-impl.XML:428: exec returned:-1

I search "exec returned:-1" for Netbeans and basically found that the path of the initializer is either long or the resource file does not exist. The string the initializer is returned as:

Error: Import file not found: C:\JDE/MDS/samples/transcoder/uppercasehtml_transcoder.jar:C:\JDE/MDS/webserver/lib/tomcat-util.jar:C:\JDE/MDS/webserver/lib/servlet-api.jar:C:\JDE/MDS/webserver/lib/servlets-default.jar:C:\JDE/MDS/webserver/lib/naming-resources.jar:C:\JDE/MDS/webserver/lib/commons-modeler-2.0.jar:C:\JDE/MDS/webserver/lib/jasper-compiler.jar:C:\JDE/MDS/webserver/lib/jsp-api.jar:C:\JDE/MDS/webserver/lib/commons-el.jar:C:\JDE/MDS/webserver/lib/jasper-runtime.jar :C:\JDE/MDS/webserver/lib/tomcat-coyote.jar:C:\JDE/bin/rapc.jar:C:\JDE/MDS/webserver/lib/commons-logging.jar:C:\JDE/ESS/classpath/emailServerSim.jar:C:\JDE/MDS/webserver/lib/catalina-optional.jar:C:\JDE/bin/SignatureTool.jar:C:\JDE/MDS/webserver/lib/catalina.jar:C:\JDE/MDS/webserver/lib/tomcat-http.jar:C:\JDE/MDS/webserver/lib/commons-beanutils.jar:C:\JDE/ESS/classpath/mail.jar:C:\JDE/MDS/webserver/lib/jasper-compiler-jdt.jar:C:\JDE/MDS/webserver/lib/naming-factory.jar :C:\JDE/MDS/conf/mdsweb.jar:C:\JDE/samples/com/rim/samples/server/browsermultipartpushdemo/activation.jar:C:\JDE/ESS/classpath/activation.jar:C:\JDE/bin/IDE.jar:C:\JDE/bin/JDWP.jar:C:\JDE/samples/com/rim/samples/server/browsermultipartpushdemo/mail.jar:C:\JDE/lib/net_rim_api.jar

It is a great command to run, and I can understand that it may fail. Someone else had a similar problem or knows of a resolution for this, I'd be very happy.

Thank you

Eric

Yes. Had same problem.

There are a few difficulties.

1. reduce the size of command line, essentially to reduce the length of folder, Cup size, file name, etc..<- i="" had="" to="" do="" this="" at="" one="">

2 BB - Ant tools have an option to use a list of files of sources instead of command line (Cap)

3. allow Netbeans to create a jar file and use this pot for the compilation of the CAP.<-- my="" personal="" choice,="" it="" also="" allows="" you="" to="" use="" proguard="" built="" into="" netbeans="" to="" do="" a="" seamless="" heavy="" obfuscation="" in="" one="">

p. s.

I do not use the Blackberry plug in for Netbeans.  I've written some Ant Scripts customized to integrate with Netbeans J2ME plug.

Tags: BlackBerry Developers

Similar Questions

  • Location internals

    I struggled using Netbeans for my Blackberry platform project.  (I tried eclipse and JDE two - eclipse is filled with too many frustrations and JDE does not have the features that I'm used to).

    I've put together pieces of how to make this work, a plan of nd to post a 'how to' blog to relieve the pain of future users of Netbeans.  However, one thing that I have not been able to track down yet is how to manage the location/resource bundles.

    Examples of project location light not a lot - they seem to assume that you will develop in the JDE, which makes the transparent location behind the scenes.  From what I understand, CAP generates an interface file that contains definitions for all the resources of const.  It's behind the scenes - I can't find this file as output anywhere.

    I'm trying to know more precisely how to generate only the interface file to see availability under Netbeans - whether appropriate rapc.exe command line options (which I could include the netbeans ant script) or any other method.

    Has anyone had experience with this?

    I followed option 2 and wrote a tutorial for how I managed it.  I suspect there are a few things that I have to clean (detailed at the end of the tutorial), but this does not solve the problem.

    Tutorial here: http://marcparadise.com/articles/blackberry-and-netbeans-localization-tutorial.html

  • How to develop the GUI of Blackberry in Netbeans (RAD).

    Hello

    I want to develop Blackberry GUI quickly.  so I prefer Netbeans IDE 6.5 but I'm unable to find drag and drop features of rapid development of applications such as JME. So please help if you know how RAD blackberry 4.7 on netbeans 6.5

    Thanks in advance.

    -Jitu.

    If you want to do a moped for Blackberry then use Netbeans with the Visual Designer.

    But after all, do not forget to use the preverify.exe utility (located in the JDE/bin folder of the Java development environment).

    It is necessary to check the MIDlet jar bytecode to meet the requirements of the API of the RIM.

    In case you want to create the GUI with net.rim classes in Netbeans there is no way, using MDS Studio.

  • JeME is deployed on Blackberry (using NetBeans) fast/more easier than eclipse plugin-Jde

    wanted to know... If it is easier to develop and... apps look better when I develop Java application using J2ME and deploy it on Blackberry... or the way eclipse-JDE...

    My java application includes the web service call

    Thank you

    If you are developing from scratch, my personal suggestion is to go with the BlackBerry API, it gives native aspect and there are good developer docs and tutorials how-to, video... APRT of this wonderful form.

  • problem using the FileConnection API (JSR 75) in an application for Blackberry "BOLD" MIDLET

    Hello

    I developed a MIDLET which is to read files and store the contents of files in arrays. I could make using the FileConnection API in J2ME (Java ME) and it works very well in mobile emulators provided by Sun, Sun Kit tool 2.5.1 wireless and Sprint Wireless tool 3.3.2 Kit. I have been using netbeans IDE 6.8 for this.

    Now, here's the deal. Playback of the files does not work when in one of the Blackberry mobile emulators. I tried to install all versions of Blackberry JDE 4.2.1 to 5.0 and test the same thing, but none of them worked.  After reading that the Blackberry plugin for Eclipse is good, I used it to find that I am always faced with the problem.

    I desperately need help. Can someone help me do the reading work file in a Blackberry emulator? I insert the code that makes the file reading. It reads a file containing a single column of 60 entries, and stores it in an array of double type.

    Vector time = new Vector();
    
    try{
    
     FileConnection filecon = (FileConnection) Connector.open("file:///" +"SDCard/BlackBerry/documents/"+"timescale.dat");
    
     if(!filecon.exists()) {    Dialog.show("Note ! ", "File doesn't exists !", "okay","cancel"); }
    
         StringBuffer sb = new StringBuffer();      try      {       InputStream in = filecon.openInputStream();       int chars;
    
           while ((chars = in.read()) != -1)// read until EOF is reached       {          if(chars == '\n') // read all characters until the end of line is reached          {              time.addElement(sb.toString().trim()); // stores all the characters as a vector element when the end of line is reached
    
                  sb.delete(0,sb.length());// clear the stringbuffer for storing the next line of the file
    
              }
    
              else          {              sb.append((char)chars); // appends each character read          }
    
          }// end of while
    
        }    catch(IOException e)    {               }
    
        filecon.close();
    
    }// end of outer try
    
       int i =0;   Enumeration etime = time.elements();
    
       while(etime.hasMoreElements() && i < 60) // timescale.dat has 60 entries in one column   {       time_1d[i]=Double.parseDouble(etime.nextElement().toString());// convert to double       i++;   }
    

    Can you elaborate on what does not work?  Is an error or exception thrown?  If Yes, what is it and what line of code triggers it?

    You have configured the BlackBerry smartphone Simulator to simulate a micro SD card?

    Use a computer filesystem in the form of microSD card

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/use-a-computer-file-system-as-a-microS...

  • Emulator blackBerry problem

    Hello

    I installed the Netbeans 6.8.

    I installed the Blackberry JDE 4.7.0

    By using the following link

    http://http://Java-work.blogspot.com/2010/03/integrating-BlackBerry-emulator-with.html

    My problem here is that the Netbeans 6.8 had added the emulator of the Blackberry 9500

    I have download the LWUIT 1.4 and make use of the BlackberryTouchport.jar file in Netbeans 6.8

    When you run a particular program it does not launch this program rather that it showing the Blackberry 9500 emulator home page

    Hello

    I managed to install the plugins and emulator (9500 & 9000) Blackberry in Netbeans 6.8.

    Thank you for your help.

  • BlackBerry Curve 9300 JDE

    Hi, I would like to know what JDE should I download to write, test, and debug a program for a BlackBerry Curve 9300.  I already tried with 6 JDE, JDE 5 and JDE 4.7 and in none of them is 9300 device choose to debug or deploy.

    Thanks in advence

    I'm using NetBeans with a plugin for Blackberry development. What Im doing is to build my app inside n. b., then load the app from inside the Simulator and run there.  When I need to debug it, I open BB JDE, open the Simulator and attach the debugger on a simulator. Tricky, but works.  I use Eclipse at all, if I didn't install it.  Hope you manage to get this working.

    As for the other post in NB, you can set the target OS in the project properties, and you can change at will.

    Kind regards

  • Device = BlackBerry software? Blackberry JDE version?

    Hey there everyone, I'm rather new in java programming on blackberry, and I feel like there is a mistake of very basic communication between me and my program.

    I am writing a small program to my blackberry a short work for me, but I don't know if it'll work on my older curve blackberry.

    I use Netbeans 6.8 and added the Blackberry JDE 6.0.0 as a custom Java ME platform.  So my question is:

    How can I make sure that the classes and methods of the JDE 6.0.0 will work on my long-since-updated Blackberry 8330 m, which has a software system 4.5.0.186 (Platform 3.2.0.59).  Is there something in the classes and methods that would make me look out?  I should rather check all my imports and the method calls against http://www.blackberry.com/developers/docs/4.5.0api/index.html ?

    Indeed, how can ensure me that I can use with BB, which are even older?

    the JDE version must be equal to or lower than the version of the BB OS. If for example on a device running 4.5.0, you can use 4.5.0, JDE 4.3.0 4.2.1 etc., descendant of the version of the device

  • BlackBerry missing in Eclipse project type

    I ran the installation to get the site components for Blackberry dev. I had some options display for Blackberry, but now they are gone. The only thing I know that I did was to install the SVN client and simulators. If I look at the installed components it shows Blackberry being installed. I tried uninstalling and reinstalling, but it doesn't work. I'm obviously not an expert with Eclipse (really hate him and chose Netbeans for other Java worked in the past), but seems there must be something stupid miss me to do the things to see the upward. I tried to have a new clean folder for Eclipse and try it all again, but seems it must be some sort of registry entries or some common place looking for files as it says components Blackberry are already installed.

    Any advice would be appreciated.

    This is what I've done and things work. I removed the extract Eclipse, I had. I downloaded the complete installation of the RIM and had him install Eclipse as well. At least now I see the project types. When I shoot a project on google code I'm working, then I get another error, now to try to ensure that updates are done (list has nothing so I'll use the VM version to rebuild the list). Did I mention I didn't like Eclipse, the IDE should not be this difficult to work with, but what do you expect for free .

  • How to configure the application runs at startup under netbeans?

    Hello

    i've got app that extends the Application. I want to start after installation and after each reboot of the device. I know it can be done very easy-properties and setting "auto-run" under eclipse Drinking now, I started using netbeans-does anyone of you know how can I do this in netbeans? or maybe I should add proper line in the *.jad file?

    concerning

    It seems that it's not impossible. also, it is not possbile to generate the adequate *.cod file, can cause the netbeans for blackberry plugin is very simple and do not have a lot of options, it should have. It looks like this project has left behind a year or two he y a. and it seems that he has only jde or eclipse to choose.

    concerning

  • What is the best software development IDE for developing Blackberry apps?

    I've been using netbeans for my java code and have just started with eclipse. I'm new to this development environment and the IDE perfect for blackberry app development.

    Go to Eclipse Classic, then import all the plugin required to work on

  • Connection HTTP in J2ME (Blackberry)

    Hello

    A program on the J2ME Netbeans 6.8.

    now my program had to be connected to the internet and retrieve a file from the server

    and write in the memory of the emulator

    In the scenario above a while running the program when it is connected to an internet line is

    run the hang of the program. I don't know why?

    Please help me.

    Hello

    Thanks for the reply.

    Coding

    try {}
    String url = "http://www...";
    http = (HttpConnection), Connector.open (url);
    http.setRequestMethod (HttpConnection.GET);
                      
    http.setRequestProperty ("User-Agent", "' Profile / MIDP - 1.0 Configuration/CLDC - 1.0" ");
    }
    catch (System.Exception e)
    {
    e.printStackTrace ();
    System.out.println ("inside the file create and capture of writing");
    } Finally
    {
    try {}
    http. Close();
    } catch (IOException ex) {}
    ex.printStackTrace ();
    }
    }

    http.setRequestMethod (HttpConnection.GET);

    up to front line coding is performed.

    If the program achieved the following line above the stop of the emulator there.


    Y at - there no specific coding for connection of the emulator of the Blackberry?

    Please give the link or guide me.

  • Test a web application that uses the emulator of the Blackberry, is - it possible?

    Hello everyone,

    I have a small java web application running on Apache Tomcat on a local computer. It works fine on my PC, but it is meant for Blackberry devices. Before I put in our web server, I want to test it on a Blackberry 8300 and 8900 emulators. Is this possible? I developed this web application using spring on Netbeans IDE, i.e. no special tool Blackberry.

    I appreciate every tip and trick!

    Thank you.

    Mazen.

    Thanks again for your response,

    I did the Simulator works well, but in another installation of Tomcat and Eclipse-Tomcat-Blackberry Simulator running the port. ELL, it works unless I have some JavaScript problems, so :-)

    Thanks again

    Mazen

  • Need to compile in netbeans 4.6

    Hi, how can I make sure that code that does not work on 4,6 gets alerted to me?

    I have a netbeans which versions of the project a file of cod using the plugin of the rim. I tried to get my app (built using my storm for the test) working with the Simulator "BOLD", as it does with the camera of the storm and the Simulator.

    I said I need the pack of components or I think maybe the 4.6 jde to compile for the "BOLD". I can't find any official download for earlier versions of the jde or any mention of component packs. What I have to do to accomplish a generation for the 4.6 os?

    Concerning

    Brendan

    p.s. I have my application to open fine on the Simulator "BOLD", but there is problem of connection that do not exist on the storm.

    This link should answering your questions of compatibility.

    What is - an appropriate version of the BlackBerry JDE
    Article number: DB-00537

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/What_Is_-_Appr...

    You can download the BlackBerry JDE (and component packs) from here: http://na.blackberry.com/eng/developers/javaappdev/devtools.jsp

  • Features of NetBeans

    Hello.  I've recently been conversion of Eclipse stuff to files pure ant as well as using a preprocessor to compile under certain conditions of distributions with different operating system versions.  As indicated in a previous post, that I have this job most of the time, but it ruins support fancy and refactoring tools code completion in Eclipse.  The main thing is lack of project configurations.  I took a quick look at Netbeans, and it seems to support what I'm looking for.  Can someone check to see they all have the following work? I don't have the details, I just want to know if this path is worth going down, since I can see that eating a few days...

    1) supports BlackBerry os4.5 high.

    (2) a preprocessor that does not break syntax highlighting, refactoring, and other goodies.

    (3) allows to have project configurations that allow me to define preprocessor defines by project.

    (4) support for the project configurations to build in a different output directory.

    From what I've seen the answer is Yes but Eclipse appears to be the tool of choice here but if Netbeans supports all this I don't know why anyone would bother with Eclipse. It's what makes me ask.

    Thank you for all time.

    1. Yes, it can support 4.5 and more. Depending on the platform that you add. You must manually add a blackberry platform.

    2. it supports preprocessing that automatically comment out uneccsarry lines of code.

    3. you can define your own project but don't know if you can set your own preprocessor

    4. Yes, you can build in a different directory.

    You can make reference to it how the program installation of netbeans for Blackberry development.

    http://jonathanhfisher.co.UK/NewsItems/blackberrynetbeansdev/index.htm

Maybe you are looking for