BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-07-2010, 05:08 PM   #1
Exclamat!on
New Member
 
Join Date: Jul 2010
Model: 8339
PIN: N/A
Carrier: Verizon Wireless
Posts: 3
Default Error During Build?

Please Login to Remove!

Hello, I am new to the BB JDE and to Java in general.

I am following a tutorial at the BlackBerryCool website (PM Me if you need a link; I don't have 10 posts yet :P)

However when I build (either F7 or Build>Build) I get the following output:

Code:
Building Lection_1
C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin\rapc.exe -quiet codename=Lection_1 Lection_1.rapc warnkey=0x52424200;0x52525400;0x52435200  import=..\lib\net_rim_api.jar "C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin\GreetingScreen.java" "C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin\HelloWorld.java"
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main" 
Error!: Error: java compiler failed: javac -source 1.3 -target 1.3 -g -O -d C:\DOCUME~1\ADMINI~1.HST\LOCALS~1\Temp\rapc_0685c451.dir -bo ...
Error while building project
How do I fix this?

Thanks an advance,
Exclamat!on
Offline  
Old 07-07-2010, 09:59 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

What do you get if you open a command window and run this command?

javac -version
Offline  
Old 07-08-2010, 01:58 AM   #3
pgoeol
Thumbs Must Hurt
 
Join Date: Sep 2009
Model: 8100
PIN: N/A
Carrier: Airtel
Posts: 75
Default

It is unable to find javac in the path, adding Java path must solve your issue.

--Pulkit
Offline  
Old 07-08-2010, 09:10 AM   #4
Exclamat!on
New Member
 
Join Date: Jul 2010
Model: 8339
PIN: N/A
Carrier: Verizon Wireless
Posts: 3
Default

So where does javac go?

Code:
com/sun/tools/
There?
__________________
"This must be Thursday. I never could get the hang of Thursdays." --Arthur Dent
Offline  
Old 07-10-2010, 10:10 AM   #5
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Have you installed the 1.6 JDK? THis is required. I beleive it winds up in c:\Program Files\Java\JDK_1_6_05\bin

(or something like that)
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog picture

Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog

$650.00



New PCI-MIO-16E-4 Data Acquisition Card With 16 Analog Input Channels for NI picture

New PCI-MIO-16E-4 Data Acquisition Card With 16 Analog Input Channels for NI

$311.00



HealthKit 4802 Computer Oscilloscope Heath Computer Systems picture

HealthKit 4802 Computer Oscilloscope Heath Computer Systems

$149.99



HealthKit 4802 Computer Oscilloscope Heath Computer Systems picture

HealthKit 4802 Computer Oscilloscope Heath Computer Systems

$120.00



1PC × PR ELECTRONIC 2211 ANALOG CALCULATOR PR2211EC2A2 Ser.No. 885175 picture

1PC × PR ELECTRONIC 2211 ANALOG CALCULATOR PR2211EC2A2 Ser.No. 885175

$85.00



Onset Computer Mx1104 Analog/Temp/Rh/Light Data Logger picture

Onset Computer Mx1104 Analog/Temp/Rh/Light Data Logger

$202.99







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