BlackBerry Forums Support Community               

Reply
 
LinkBack Thread Tools
Old 07-03-2008, 09:08 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Setup up Eclipse for BlackBerry development

Please Login to Remove!

This is yet another post describing how to setup Eclipse for BlackBerry development work. When I was getting started on my BlackBerry project, I must have read a dozen such posts and articles. None of them gave me all that I needed to get everything working. Hopefully this post will do just that.

I do ask that if you find an error, or something does not work, please post the problem, and hopefully the solution.

However first a caveat. Just 2 weeks ago, when I was downloading programs and setting things up, I was downloading the latest versions of the programs that were available at the time. Now, as I write this post, some of the programs have newer versions available. I will write these instructions using the versions I have installed. I hope there won’t be any significant differences with the newer versions.

1. Download and Install
1.1. JDK from http_://java.sun.com/javase/downloads/index.jsp. I have JDK 6 Update 6, which is the current (non-beta) version.

1.2. BlackBerry JDE from http_://na.blackberry.com/eng/developers/downloads/jde.jsp . I have version 4.3.0. As I write this, the latest is 4.5.0. (There is no 4.4.)

1.3. BlackBerry 8820 Simulator. The 4.3.0 JDE came with simulators for the BlackBerry 8120 and 8130. I had a problem with the cursor getting stuck in TextBox fields, in these simulators. So I got the 8820 simulator which does not have this problem. Go to http_://na.blackberry.com/eng/developers/downloads/simulators.jsp and click the link “Download a BlackBerry Device Simulator”. Then in the pull down, select “BlackBerry Device Simulators v4.2.2”.

1.4. Eclipse from http_://www.eclipse.org/downloads/ . I have version 3.3.2. As I write this, the latest is 3.4. Also note that I have the Eclipse Classic package.

1.5. bb-ant-tools from http_://sourceforge.net/project/showfiles.php?group_id=195339. I have version 0.7 which is still the latest version.
2. Other useful downloads
2.1. Mobile File Manager from http_://www.rovemobile.com/products/freeproducts/mfm/features/. This awesome program allows you to view and manage the file system on the BlackBerry, edit files and even setup an FTP from the BlackBerry to a server. I did not use the FTP feature.

2.2. BlackBerry Desktop Manager from https_://www.blackberry.com/Downloads/browseSoftware.do. Some variant of this program comes with the BlackBerry when you buy it. But if you don’t have one, you can get it here. You need this to install programs to a physical BlackBerry. I have a variant from Roxio that also allows me to transfer files between the BlackBerry and the PC.

2.3. Ant from http_://ant.apache.org/. This will let you test Ant scripts if you want to get into writing them. Eclipse also has a built-in Ant interpreter.
3. Eclipse Setup
3.1. Workspace Preferences
3.1.1. Install the JRE with Javadocs. Note that the following steps assume that in your Eclipse workspace, you will only be doing projects for the BlackBerry. Projects for J2SE or other environments will need to be put into a different Eclipse workspace.
3.1.1.1. Click Window > Preferences from the main menu in Eclipse
3.1.1.2. Click Java > Installed JREs
3.1.1.3. Click Add.
3.1.1.4. Fill the fields:
3.1.1.4.1. JRE type = Standard VM
3.1.1.4.2. JRE name = ‘RIM JRE’
3.1.1.4.3. JRE home = path to the JDK (eg. C:\jdk1.6.0_06)
3.1.1.4.4. Default VM Arguments leave blank
3.1.1.5. In the JRE system libraries box, select all of the entries and click Remove.
3.1.1.6. Click Add External JARs and navigate to the lib directory of the BlackBerry JDE (eg. C:\jde\lib).
3.1.1.7. Select the file net_rim_api.jar.
3.1.1.8. Back in the JRE system libraries box, select the new entry for net_rim_api.jar and click Javadoc Location
3.1.1.9. In the Javadoc window, use the Browse button to navigate to the BlackBerry JDE api directory (eg. C:\jde\docs\api). Click OK to close the Javadoc window.
3.1.1.10. Click OK to close the Add JRE window.
3.1.1.11. In the Installed JREs window, check the box next to the new RIM JRE entry.
3.1.1.12. Click on the prior entry in this list (for jre1.6.0_06) and click the Remove button.
3.1.1.13. Click OK to close the Preferences window.
3.1.1.14. I have seen the above settings not take the first time. So go back into Preferences and make sure they took. If not, do them again. I’ve never seen it not take the second time.
3.1.2. Set the JDK Compliance Level – Since the JRE we started with was version 6, the default compliance setting will be 6.0. But the BlackBerry JDE is not at that level.
3.1.2.1. Click Window > Preferences from the main menu in Eclipse
3.1.2.2. Click Java > Compiler
3.1.2.3. Change the ‘Compiler compliance level’ to 1.4.
3.1.2.4. Click OK to close the Preferences window.
3.1.3. Setup a Detail Formatter for the String class.
3.1.3.1. Click Window > Preferences from the main menu in Eclipse
3.1.3.2. Click Java > Debug > Detail Formatters
3.1.3.3. Click Add
3.1.3.4. Fill the fields:
3.1.3.4.1. Qualified type name = java.lang.String
3.1.3.4.2. Detail formatter code snippet = toString()
3.1.3.5. Click OK
3.1.3.6. In the Detail Formatters window, select the ‘In detail pane only’ radio button.
3.1.3.7. Click OK to close the Preferences window.
3.1.4. Setup the formatting styles you like
3.1.4.1. Click Window > Preferences from the main menu in Eclipse
3.1.4.2. Click Java > Code Style > Formatter
3.1.4.3. Click the New button and enter a name. Click OK
3.1.4.4. In the Profile window that pops up, go through the tabs and configure the styles you like.
3.1.4.5. Click OK to close the Profile window
3.1.4.6. Click OK to close the Preferences window.
3.1.5. Increase debugger timeouts
3.1.5.1. Click Window > Preferences from the main menu in Eclipse
3.1.5.2. Click Java > Debug
3.1.5.3. Increase the Lauch timout by a factor of 10 (eg. set to 200000)
3.1.5.4. Increase the Debugger timeout by a factor of 5 (eg. set to 15000)
3.1.5.5. Click OK to close the Preferences window.
3.1.6. Other settings
3.1.6.1. Click Window > Preferences from the main menu in Eclipse
3.1.6.2. Click General > Workspace
3.1.6.3. Uncheck ‘Build automatically’
3.1.6.4. Check ‘Refresh automatically’
3.1.6.5. Check ‘Save automatically before build’
3.1.6.6. Click OK to close the Preferences window
3.2. Project Setup. The default situation for Eclipse is to have the source code for a project located in the directory tree that you specified for the workspace. However I already had the source files located elsewhere. So I needed to setup the project differently.
3.2.1. If you are still looking at the Welcome window, click the Workbench button, located on the far right.
3.2.2. Click File > New > Project from the main menu in Eclipse
3.2.3. Give the project a name
3.2.4. Select ‘Create new project in workspace’. The source files are elsewhere, but the other project files can be in the workspace.
3.2.5. Select ‘Use default JRE (Currently ‘RIM JRE’)’
3.2.6. Select ‘Create separate folders for source and class files’
3.2.7. Click Next
3.2.8. Click ‘Link additional source’.
3.2.8.1. Use the browse button to locate the external source folder.
3.2.8.2. Give this source tree a name (in the Folder name field)
3.2.8.3. Click Next
3.2.8.4. If there are files in that tree that need to be excluded, then add Exclusion patterns. For example, I needed to exclude:
3.2.8.4.1. **/CVS/**
3.2.8.4.2. *.html
3.2.8.4.3. *.txt
3.2.8.5. Click Finish
3.2.9. If you have additional source trees for the project, then in the Java Settings window, click ‘Link additional source’, and repeat the source configuration for each such source tree.
3.2.10. In the New Java Project window select the ‘Order and Export’ tab.
3.2.11. Check the box next to ‘JRE System Library [RIM JRE]’
3.2.12. Click Finish
3.3. Add bb-ant-tools to the project. This library is needed to build your project’s code for the BlackBerry.
3.3.1. In the Eclipse Package viewer, right mouse click on the Project name, and click New > Folder.
3.3.2. Enter the new Folder name as lib. Verify that the parent folder is the project.
3.3.3. Click Finish
3.3.4. In the Package viewer, right mouse on the new lib folder and click Import.
3.3.5. In the Import window, click General > File System.
3.3.6. Click Next
3.3.7. Use the Browse button to locate the directory containing the bb-ant-tools.jar file that you downloaded earlier. Then in the right pane, check the box next to the bb-ant-tools.jar file. Verify that the “Into folder” field is the lib folder.
3.3.8. Click Finish
3.3.9. In the Package viewer expand the lib folder and right mouse on the bb ant tools.jar file. Click Build Path > Add to Build Path.
3.4. Add a build.xml file to the project. This file is the Ant script that will be used to build your project’s code for the BlackBerry.
3.4.1. In the Package viewer, right mouse and click New > File.
3.4.2. Enter the new file name as build.xml. Verify that the parent folder is the project.
3.4.3. Click Finish
3.4.4. Copy the following into the build.xml file.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<project name="AudioTests" default="buildRIM" basedir=".">
	<taskdef resource="bb-ant-defs.xml" classpath="lib/bb-ant-tools.jar" />
	
	<property name="jdehome" value="C:\jde" /> 
	<property name="javahome" value="C:\jdk1.6.0_06"/>
	<property name="simulator" value="${jdehome}\simulator" />
	<property name="bin" value="${jdehome}\bin" />
	
	<property name="output" value="ProjectName" />
	<property name="title" value="Project Title" />
	<property name="vendor" value="company name" />
	<property name="version" value="0.1" />
	<property name="description" value="my BlackBerry program" />
	
	<target name="buildRIM" description="Composes RIM" depends="clean">
		<rapc jdehome="${jdehome}" jdkhome="${javahome}" output="${output}" >
			<jdp title="${title}" vendor="${vendor}"
			 version="${version}" description="${description}"
			 runonstartup="false" type="cldc" />
			<src>
				<fileset dir="C:\srcPath1">
					<include name="**/*.java" />
					<include name="resources/**/*.*" />
				</fileset>
				<fileset dir="srcPath2">
					<include name="**/*.java" />
					<include name="resources/**/*.*" />
				</fileset>
			</src>
		</rapc>
		<copy todir="${simulator}" overwrite="true">
			<fileset dir=".">
				<include name="*.cod" />
				<include name="*.debug" />
				<include name="*.cso" />
			</fileset>
		</copy>
	</target>
	
	<target name="clean">
		<delete>
			<fileset dir="bin" includes="**/*.class"/>
			<fileset dir=".">
				<include name="*.cod"/>
				<include name="*.cso"/>
				<include name="*.debug"/>
				<include name="*.jad"/>
				<include name="*.jar"/>
				<include name="*.rapc"/>
			</fileset>
		</delete>
	</target>
	
</project>
3.4.5. Edit the property values at the top of this file, and also adjust the fileset directory paths in the BuildRIM target, for the source trees in your project.
3.4.6. Save and close the editor for the build.xml file.
3.5. Setup custom builders. These tell Eclipse to run the Ant script in build.xml when you build or clean the project.
3.5.1. In the Package viewer, right mouse on the project name and click Properties.
3.5.2. Click Builders
3.5.3. Click New
3.5.4. Click Ant Builder
3.5.5. Click OK
3.5.6. Change the name of the new builder to RIM_Builder.
3.5.7. On the Main tab, under the Buildfile text field, click the Browse Workspace button.
3.5.8. Select build.xml and click OK
3.5.9. On the Targets tab, click the ‘Set Targets’ button to the right of the ‘During a “Clean”’ field.
3.5.10. Uncheck the box next to the ‘buildRIM’ target and check the box next to the ‘clean’ target.
3.5.11. Click OK
3.5.12. Click OK again to close the new builder properties window.
3.5.13. In the Builders window, click on the new builder (RIM_Builder) and click the Up button, moving the new builder to the top of the list.
3.5.14. Click the OK button closing the Builders window.
3.6. Start and setup the JDWP debugger interface. Assuming you have a project with some source code that has successfully built, the next steps will get the project into the simulator and ready for debugging. One of the applications that was installed with the RIM JDE is JDWP.
3.6.1. Start JDWP
3.6.2. On the Simulator tab, Verify that the Profile selected matches the simulator to be used. If not, click the New button.
3.6.3. On the Advanced tab, use the Browse button to navigate to the simulator’s directory (the model number.bat file must be in this directory – eg. 8820.bat).
3.6.4. Click the Edit button and set the command line to

Code:
F:\Java\BlackBerryJDE\simulator\fledge.exe
/app-param=JvmAlxConfigFile:8820.xml
/pin=0x2100000A
/data-port=0x4d44
/data-port=0x4d4e
/app-param=DisableRegistration
/app=Jvm.dll
/keep-lcd-on=true
/handheld=8820
/session=8820
3.6.5. On the General tab, check ‘Launch simulator when debugger connects’.
3.6.6. Click the Launch Simulator button and wait for the simulator to start.
3.6.7. Exit from the simulator (File > Exit) but do not exit the JDWP debugger interface.
3.7. Setup an Eclipse debugger configuration.
3.7.1. In the Eclipse Package viewer, right mouse on the project and click Debug As > Open Debug Dialog.
3.7.2. Right mouse on Remote Java Application, and click New.
3.7.3. Give the configuration a name, such as BB_Debugger.
3.7.4. Click the Debug button.
3.7.5. Eclipse will build the project and will then connect to JDWP, which will start the simulator.
3.7.6. As the simulator starts, have the JDWP window raised to the top on your screen. This will let you see any pop ups from JDWP that say the simulator can not find a file. If such pop ups occur, it is typically safe to click the “Don’t ask this again” button. So long as JDWP is running, it will not ask about that file again.
3.7.7. Close the simulator
3.8. Starting the simulator/debugger. After the debugger configuration has been created, as described above, the debugger can be started as follows:
3.8.1. Locate the toolbar button whose tool tip is “Debug As…”.
3.8.2. Click the pull down arrow located on the right of that button.
3.8.3. At the top of the list will be the Debugger configuration created above (BB_Debugger). Click that item in the list to run that configuration.
That pretty much does it for setting up Eclipse for BlackBerry development. I do however have some other tips that I’ve learned.

BlackBerry Tips

1. Remove unwanted applications from the simulator. In the Simulator directory (eg. C:\jde\simulator) is a file called 8820.xml (assuming you are looking at the 8820 simulator). Remove from this file the lines that specify applications you don’t care to have loaded in the simulator. This will remove clutter from the simulator’s main menu. It may also speed up loading of the simulator, but not by much.

2. Remove your projects from the simulator. Both of the following steps must be done.
2.1. In the simulator directory (eg. C:\jde\simulator), there are 3 files for each of your projects. Delete all 3 of them. They are:
2.1.1. projectName.cod
2.1.2. projectName.cso
2.1.3. projectName.debug
2.2. Run the simulator
2.2.1. Select the Options icon
2.2.2. Select Advanced Options
2.2.3. Select Applications
2.2.4. Click the menu button (the Insert key on the PC keyboard)
2.2.5. Select Modules
2.2.6. Scroll through the list to find your project
2.2.7. Click the menu button (Insert key)
2.2.8. Select Delete
3. Prevent the simulator’s display from going black.
3.1. In the simulator window, select View > Keep LCD On. This will affect only the current simulator session
3.2. In the JDWP window, on the Simulator tab > View tab, check ‘Always keep LCD backlight on’.
4. Installing your project to a physical BlackBerry
4.1. Connect your BlackBerry to your PC with the USB cable.
4.1.1. I get a pop up on the BlackBerry when I connect it to the PC, asking if I want to enable Mass Storage Mode. No matter what I answer (yes or no) the connection to the PC gets broken. So I just don’t answer the pop up until after I’m finished with the connection. After removing the USB cable the pop up goes away on its own.
4.2. On your PC, locate the cod file for your project. It will be in the Eclipse project directory, which is typically under the Workspace directory.
4.3. Open a cmd window in that directory and run the following command. (javaloader comes with RIM’s JDE).
Code:
javaloader -usb load projectName.cod
5. Removing your project from a physical BlackBerry
5.1. Connect your BlackBerry to your PC with the USB cable.
5.2. Open a cmd window in that directory and run the following command. (javaloader comes with RIM’s JDE).
Code:
javaloader -usb erase -f projectName.cod
6. Edit files and navigate the file system on the BlackBerry (physical or simulator).
6.1. Install the Mobile File Manager program to the simulator and/or the physical BlackBerry. Use the BlackBerry Desktop Manager to install this program.
6.2. Programs installed with the BlackBerry Desktop Manager are also removed using the BlackBerry Desktop Manager.
7. In Eclipse, name your project with a letter less than ‘n’. When removing your project from the simulator, the modules list has tons of RIM modules that start with “net_rim”. You want your module before that long list of RIM modules.

8. Locate the PIN or IMEI numbers in a physical BlackBerry. Open Options > Status.

Eclipse Tips

1. Automatically add an import statement for an unknown type. Place cursor on the unknown type and hit Ctrl-Shift-m.
2. Organize the import statements – hit Ctrl-Shift-o
3. Have only one main() in your entire project; otherwise when you try to start the project in the simulator, it may not run the desired main(). The simulator will give no indication of why it seems that your program is not starting.

RIMs BlackBerry JDE Plug-In for Eclipse

I downloaded version 1.0.0.22 (the latest) of this plug-in. In a word, don't bother. According to RIM support, it only works with version 3.3.1 of Eclipse, so it would not work with the 3.3.2 version that I have. It also will not work on Windows 2000 (which I also use).

Improvements Needed to the above Instructions

• It would be really nice if only changed java files were recompiled. My project currently has over 200 files and will have over 300 when finished.
• It would be nice to have a way to specify the class containing the desired main() to be run.

Acknowledgements

My thanks to the many authors whose posts and articles and answers to my questions have helped me get this far. I'm sure you see your work in the above. Thank you.
Offline   Reply With Quote
Old 07-08-2008, 01:06 AM   #2 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great Job Paul!!
Thanks...
this will be a lot of help to most of us on the forum!
Offline   Reply With Quote
Old 07-08-2008, 01:23 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I dont understand what the benefits of using eclipse are? The IDE that blackberry distribute is excellent and provides everything you need? Why use eclipse?
Offline   Reply With Quote
Old 07-08-2008, 03:27 AM   #4 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by skynetchris View Post
I dont understand what the benefits of using eclipse are? The IDE that blackberry distribute is excellent and provides everything you need? Why use eclipse?
i really hope you are kidding.

@plevintampabay: most excellent post. vote for sticky!
__________________
java developer, Devinto, hamburg/germany
Offline   Reply With Quote
Old 07-08-2008, 07:20 AM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Skynetchris -- just in case you are not kidding -- Yes the JDE gives you everything you need, if your program is one or two files. Actually I did a test program with about 5 files (5 classes) and everything went well.

Using the debugger in the JDE is actually better (faster, more responsive and no strange things happening) than using the debugger from Eclipse. But my program has over 200 files right now. The JDE is totally unusable at that size.

You can't find all references to a variable, method, or class. You can't do effective searches. The JDE does have limited completion (pops up the methods in a class) but nothing like the features in the Eclipse. Try writing code in Eclipse for a while and you'll never go back to the JDE.

To be fair, I have not tried the latest JDE. Maybe it has tons of new features. I'll have to take a look at it, at some point. Of course Eclipse also has a newer version out too.
Offline   Reply With Quote
Old 07-08-2008, 07:34 AM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I agree with you. Eclipse is much better but I have a problem with Eclipse that never succeed to resolve. I cannot debug in Eclipse. I made everything that has been written up there. I launch the simulator through Eclipse using JDWP, the simulator is running but the application is not started. I need to go to start it by myself and then there are no debug variables, the breakpoints are not working. The only way I can "debug" (it is not debuging exactly) is to put message on the JDWP console (output) using System.out stream. Has anyone had this problem ?
Offline   Reply With Quote
Old 07-08-2008, 11:38 AM   #7 (permalink)
New Member
 
Join Date: Jul 2008
Model: 88000
PIN: N/A
Carrier: test
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

C:\EclipseBlackBerry\D2LBlackberryClient\build.xml :3: java.lang.UnsupportedClassVersionError: ca/slashdev/bb/RapcTask (Unsupported major.minor version 49.0).

Could somebody tell me how to fix it?
Offline   Reply With Quote
Old 07-08-2008, 05:52 PM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not kidding, and I still dont see any 'advantages' to using Eclipse. Yes its opensource, yes its pretty, yes its good at what its MEANT to do.

So here the positives of installing the BB IDE:
- One install, no setup required
- Runs debugger
- Runs multiple simulators
- Runs internal calsses (as reccomended by Sun and BB to increase performance, so why -have 200 files?) perfectly fine.
- Can atattch to a device and debug on the device
- Can break point an application at runtime wherever you chose dynamically, just like iphone.

Negatives:
Large projects? (I haven't encountered this and my application is quite large [1500+ lines, 4 threads]).

I did try using Eclipse and its nice, if your doing plain java or something thats not device specific. Anyway, lets keep this fairly factual.

Positives of Eclipse:
*your points here*

Negatives:
- requires a 5 page setup
- doesn't have the same level of debugging/choices
- Doesn't do on device debugging
Offline   Reply With Quote
Old 07-08-2008, 07:44 PM   #9 (permalink)
Retired BlackBerryForums.com Moderator
 
d_fisher's Avatar
 
Join Date: Oct 2005
Location: Columbus, OH
Model: 9700
OS: SID 6.7
Carrier: AT&T
Posts: 4,455
Post Thanks: 0
Thanked 2 Times in 1 Post
Default

Execellent post! Thread is now a sticky.
__________________
Doug

Remember, please try searching first!

Need a screenshot? ... Like JavaLoader?
Try using BBscreen .....Use JL_Cmder!
or BBScreenShooter!

[SIGPIC][/SIGPIC]
Offline   Reply With Quote
Old 07-11-2008, 02:35 AM   #10 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8300
PIN: N/A
Carrier: vodafone
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the great post, it helped were the eclipse plugin completely fails.
I have question with build.xml. I have a few library jar files that I use. I added them to the RAPC task using the <import> element <import location="/workspace/BlackBerry/MobileBlackBerry/lib/MathEvaluator.jar" />. Everything works fine until I run the application. I get the following exception "Entry point not found for Module MathEvaluator". Any idea what I need to do to get my app to rapc and run.
Offline   Reply With Quote
Old 07-12-2008, 12:32 PM   #11 (permalink)
New Member
 
MrCmonster's Avatar
 
Join Date: Jan 2008
Location: Southern Colorado, USA
Model: 8310
PIN: N/A
Carrier: AT&T
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for helping out with such an informative post!
__________________
--
When in doubt, pull the battery out.
Offline   Reply With Quote
Old 07-12-2008, 02:12 PM   #12 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a quick note to all of the people with questions of why your situation doesn't work -- I'm a realtive beginner here too, so I don't know the answers to your questions. Hopefully others might.
Offline   Reply With Quote
Old 07-17-2008, 01:38 AM   #13 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

@plevintampabay: Great post! Helped get me up and running with Eclipse in no time.

Finally, to the person wondering why use Eclipse, if you don't know, it is because you don't yet know enough to know you need it. =) And inner classes are great when used where they are indicated/required, but are not a substitute for proper OO design and coding. Just wait till 2 years from now you need to go back and modify your 1500+ line file with multiple sub-classes. Good luck with that! We'd never have a file that big in our shop, and we've written a couple 80,000+ line avionics projects! Knocking Eclipse because it requires a setup is like saying an abacus is better than a computer because you don't have to turn it on!

Last edited by pwaugh : 07-17-2008 at 01:48 AM.
Offline   Reply With Quote
Old 07-24-2008, 01:01 AM   #14 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by pwaugh View Post
@plevintampabay: Great post! Helped get me up and running with Eclipse in no time.

Finally, to the person wondering why use Eclipse, if you don't know, it is because you don't yet know enough to know you need it. =) And inner classes are great when used where they are indicated/required, but are not a substitute for proper OO design and coding. Just wait till 2 years from now you need to go back and modify your 1500+ line file with multiple sub-classes. Good luck with that! We'd never have a file that big in our shop, and we've written a couple 80,000+ line avionics projects! Knocking Eclipse because it requires a setup is like saying an abacus is better than a computer because you don't have to turn it on!
Lots of metaphors and no facts.

I do use eclipse, not for BB development.
Offline   Reply With Quote
Old 07-24-2008, 01:04 PM   #15 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Those who want even more detail, and a slightly different way of setting up Ganymede, register and login to our Wiki: Main Page - BerrysoftWiki

Over the next few days I'll be adding even more info on the setup, including how to really tweek your build.xml file. Might do an article on it on our Blog: Berrysoft Developer.
Offline   Reply With Quote
Old 09-06-2008, 01:14 PM   #16 (permalink)
Thumbs Must Hurt
 
nyte3k's Avatar
 
Join Date: May 2008
Model: 8320
PIN: N/A
Carrier: Tmobile
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got everything working, but i did notice that eclipse underlines references to classes in my project as an error, basically saying it cannot find that import class. Even thought it compiles and runs.

Anyone else have this issue? It's just ugly seeing a ton of errors in your project, especially when they don't exist.

I'm on Eclipse Ganymede btw
Offline   Reply With Quote
Old 09-26-2008, 10:31 PM   #17 (permalink)
New Member
 
Join Date: Sep 2008
Model: 8130
PIN: N/A
Carrier: Oi Brasil
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I´m new to the BlackBerry development , I have a question. I don´t see the package named "files" (there are images and music in it) in the jar file the ant creates before de .cod file. Thanks
Offline   Reply With Quote
Old 10-21-2008, 03:21 AM   #18 (permalink)
New Member
 
Join Date: Oct 2008
Model: 8100
PIN: N/A
Carrier: Vodacom
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi there.

Also new to BlackBerry development. Have the following error, anyone know what causes this or how to fix it?

Unable to start simulator. Check that the file exists.(java.io.IOException: Cannot run program "C:\RIM\BlackBerryJDE4.3.0\simulator\fledge.ex e/xxxxx" (in directory "C:\RIM\BlackBerryJDE4.3.0\simulator\"): CreateProcess error=3, The system cannot find the path specified)

Think it has something to do with the Command Line or Workign Directory setup.

Thanks
Offline   Reply With Quote
Old 11-25-2008, 10:29 AM   #19 (permalink)
New Member
 
shooirn's Avatar
 
Join Date: Dec 2006
Location: China
Model: 8100T
Carrier: CMCC
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for share !
Nice post!
__________________
One comes up must go down!
Offline   Reply With Quote
Old 11-25-2008, 04:19 PM   #20 (permalink)
New Member
 
Join Date: Nov 2008
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi All:

I am new in BB project with eclipse.

We are planing to keep our BlackBerry project in subversion [.classpath, .project and .jdp file] so that any developer can acquire the source and project
from subversion and then bring up the BB Eclipse and import the existing Blackberry project into eclipse. Our BB project have below structure:

BBPROJECT
-src [source have our all source code]
-test [ test have sample example program to test]


But looks like File->import -> Blackberry -> Black Berry JDE Project doesn't seems to be working what we want. When we import it is creating

BBPROJECT
-src [putting the test example sample here]
-src1[ putting the source here]

instead of src and test under BBPROJECT.

Anyone please have experience on this please let me know....


Thanks in advance!!
Pradip
Offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.