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


GE-FANUC General Electric IC600LR616A Series Six 8K Memory New picture

GE-FANUC General Electric IC600LR616A Series Six 8K Memory New

$450.00



New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC picture

New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC

$286.59



WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card picture

WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card

$129.00



DSE7310 DEEP SEA Controller Generator Auto Start Load Share Control Module picture

DSE7310 DEEP SEA Controller Generator Auto Start Load Share Control Module

$209.99



MICRO DNC2 picture

MICRO DNC2

$189.00



2711-NM15 BRAND NEW AB Memory Card 2711 NM15  1PCS picture

2711-NM15 BRAND NEW AB Memory Card 2711 NM15 1PCS

$382.30







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