Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
sergiosandoval
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

Java not recognized

I'm having trouble loading an app to my PB because of this error.  I'm using Graphical Aid to build package and install.

 

 

Untitled-1.jpg

 

I think  its a java path problem but I can rememeber how to fix it.

 

Thanks in advanced.

 

Please use plain text.
Regular Contributor
BertKoor
Posts: 81
Registered: ‎03-09-2012
My Device: PlayBook & Bold 9780
My Carrier: n/a

Re: Java not recognized

1) locate where java.exe lives on your harddisk. There may be several versions, so pick the right one (good luck with that)
2) add that directory to your PATH system variable
Please use plain text.
Regular Contributor
BertKoor
Posts: 81
Registered: ‎03-09-2012
My Device: PlayBook & Bold 9780
My Carrier: n/a

Re: Java not recognized

To locate what Java runtimes you have installed, this is the fastest way (presuming you're using Windows and not Mac)

1) Open a command prompt (start menu - Run: cmd)
2) type "cd \" (without quotes, followed by the Enter key) to navigate to the root of folders.
3) type "attrib /s java.exe" to get a list of all occurrences of java.exe
Navigate to each folder and run "java.exe -version" to let it display its version info.

For the second part (to add the location of java.exe to your command search path) follow these directions:
http://www.lmgtfy.com/?q=windows+path

NB: it's advisable to make a system variable called JAVA_HOME containing the parent folder of the "bin" folder where java.exe lives, so that it can find the rest of its installation.

Instead of global system variables you could also change the .bat or .cmd files which are run by your "graphical aid" (never heard of it, sounds like a screen reader for the blind)
Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Java not recognized

my java.exe   path is C:\Program Files\Java\jdk1.6.0_41\jre\bin

 

 

Shall I add this directory to my PATH system variable

Please use plain text.
Developer
DirkLuys
Posts: 123
Registered: ‎02-13-2012
My Device: Z10 LE
My Carrier: Mobistar

Re: Java not recognized

 


srk2012 wrote:

my java.exe   path is C:\Program Files\Java\jdk1.6.0_41\jre\bin

 

 

Shall I add this directory to my PATH system variable


Yes, If that doesn't ssolve your problem, just try reinstalling JRE, it solved it for me.

Please click the like button if my post helped you! Thank you.
Please use plain text.