Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Needs help in jdk

Hi guys: This is the configuration of my computer. Can any one please tell me how to i install jdk on it

http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html

i try to install it from that link but it gives error

Thanks.

jdk.JPG
Avatar of for_yan
for_yan
Flag of United States of America image

What kind of error does it give?

Do you have administrative privileges on the account from which
you try to install it?

It seems that you already have some jva isntalled there - which Java do you have?
Avatar of mustish1
mustish1

ASKER

it says some thing about 32 bit register not 64
i have eclipse on my computer.
But it looks you already have Java installed - why do you want to install it again?

It looks like you have 32bit machine. Are you itrying to install crresponding 32bit java?
This is the one i am trying to install from the list of that link

jdk-6u25-windows-x64.exe

my computer is 32 bit. is there any way i can download this on my computer. I dont have jdk installed.
So you are instlalling the wrong one - you see it says x64
You need to install the one which says x86 or -586- and should not have
x64
i check the oracle web site link they dont have any thing for 32 bit. How to i install jdk for my computer ?


If you go to that very page:
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html

You'll see at the bottom the link with i586-exe in the ending -
that's which you need:

http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-windows-i586.exe
It says for Windows x86
Not the one which says foe Windows x64
ok. it installed. Now if you please tell me how to i set the javac command as its not set in the path and i have to go into the java folder

c:\program files\java\jdk1.6.0_11\bin


when i use the java command on c: prompt it works but javac dont.
I think that's becuse you have JRE installed previously
and you use java from that one
I'll explein to you how to change your  path in the next post
You go to control Panel --> system --> advnced tab -->
environment varibles button in the lower part of the window

Then select PATH and edit it - make sure
you add the path to bin which you showed above in the vbeginning
of your PATH - you'll override your previous java with it
After you edit it and accept it -close the system control panel
then open a new cmd box
and type
java -version
you should see your new java version 1.6 update 25 or something like that.
then try javac - I hope it should work
If not, check the path, just typing
PATH
in cmd window

In the worst case you'll need to reboot after you edit PATh ion control panele

but using java -version and
PATH

you should be fully aware what is the
issue.
If you downloaded and installed not jre but jdk (that's waht was in that link)
then you should have both java and javac workking
.
I'll be away for some time, but let me know - I'll reply when I come back to my computer in 2-3 hours
I add it in the user environment variable but it still not working. i think i have to restart my computer.

env.jpg
No, this is not what you should do
You go to these environemnet variables, but don't add new one
You just go and edit your PATH varaibkle
and  add
c:\program files\java\jdk1.6.0_11\bin;
in front of waht you have now
2 kinds of variables system and user I add in the user. Now I'm going to delete that line
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thankyou very much