On Windows If we have already installed JDK (Java Development Kit0 or JRE (Java Run time Environment), it happened some times that Blackberry JDE shows the message of “javac not found” when we click on ‘Build All’ option.
To solve this issue do following steps,
1. Start > My Computer (right click) select Properties
2. Click on Advance tab and then Environment Variables
3. Under User Variables section check that ‘JAVA_HOME’ variable is assigned value to the right installed jre installed directory like
JAVA_HOME C:Program FilesJavajdk1.6.0_20
If the path is not fine, click on Edit to change the path. Make sure the Variable name should be same in uppercase.
4. ‘PATH’ variable should redirect to the bin folder of your jre installed directory like
PATH C:Program FilesJavajdk1.6.0_20bin
it may contains some other path followed by semicolon like
PATH C:Program FilesJavajdk1.6.0_20bin;C:AppServApache2.2bin;C:AppServphp5;C:AppServMySQLbin
If the path is not fine, click on Edit to change the path. Make sure the Variable name should be same in uppercase.
After settings paths click on Ok to save the changes and restart your JDE. It should work fine now.