BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-28-2007, 11:26 AM   #1 (permalink)
New Member
 
Join Date: Apr 2006
Model: No
Carrier: Cingular
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default HelloWorld App

Please Login to Remove!

I am learning java and I found a webpage that walked you through a HelloWorld sample app. I am having problems getting this to run now

Here is the web link:
Build Your First BlackBerry Java App

When I build and run the app, I get the following error

Building HelloWorldProject
C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar codename=HelloWorldProject HelloWorldProject.rapc warnkey=0x52424200;0x52435200;0x52525400 "C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin\HelloWorld.java" "C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin\SalutationScreen.java"
I/O Error: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
Error while building project

Can someone please help me, I don't know what I am missing. I can email the workspace if need. Also are there any go sites that could help beginners like myself, also and books I could buy.

Thanks
Jim
Offline  
Old 07-28-2007, 05:47 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Seems like your java compiler isn't in your system path variable.
Offline  
Old 07-30-2007, 01:02 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Model: 8800
PIN: N/A
Carrier: GPRS
Posts: 68
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I download the test files (including HelloWorld.java and SalutationScreen.java),and create a jdw in JDE 4.2.1, add the two file to the project ,bulid and run the project very well!
There is no problem!
Offline  
Old 07-30-2007, 01:28 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi topper,

BlackBerry JDE 4.2.1 requires that you have installed Java 2 SDK, Standard Edition v1.5. Then you will need to add the bin directory in the j2se installation to your system PATH variable.

Now, try to build and run your project.

Cheers,
ARIF
Offline  
Old 07-30-2007, 02:09 PM   #5 (permalink)
New Member
 
Join Date: Apr 2006
Model: No
Carrier: Cingular
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

That worked,

thanks arifzaman
Offline  
Old 07-31-2007, 01:34 AM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Welcome topper!

Good to know that it is working for you.


ARIF
Offline  
Old 08-02-2007, 02:08 PM   #7 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I followed the tutorial, and had the helloworld application compiled and running in the simulator. But when I use JDE to generate .alx and install the application onto my Blackberry, my Blackberry totally crashes. Have to wipe the whole thing out.
Am I missing something?
Offline  
Closed Thread


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

OEM BULB with Housing for DELL 7700 FullHD Projector with 180 Day Warranty
$319.0
OEM BULB with Housing for DELL 7700 FullHD Projector with 180 Day Warranty picture21.5inch OEM Dell Inspiron 2205 WLED LCD Panel LTM215HT03 6JT5P
$139.0
21.5inch OEM Dell Inspiron 2205 WLED LCD Panel LTM215HT03 6JT5P picture21.5inch LCD Panel LTM215HT03 6JT5P OEM Dell Inspiron 2205 WLED
$139.2
21.5inch LCD Panel LTM215HT03 6JT5P OEM Dell Inspiron 2205 WLED picture1PCS LTM215HT03 6JT5P OEM Dell Inspiron 21.5inch LCD Panel 2205 WLED
$139.8
1PCS LTM215HT03 6JT5P OEM Dell Inspiron 21.5inch LCD Panel 2205 WLED picture1PCS 21.5inch LCD Panel LTM215HT03 6JT5P OEM Dell Inspiron 2205 WLED
$139.5
1PCS 21.5inch LCD Panel LTM215HT03 6JT5P OEM Dell Inspiron 2205 WLED picture






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