Installing java after installing 32 bit workstation c/c++

When I run a trial example of

pgcollect c1.exe

followed by

pgprof prprof.out -exe c1.exe

I get the follwing error:

pgprof - Error- Required tool java not found

Now I checked a few things and yes it appears that java is not installed.


is not a directory it is only a link

also the directory


does not exist.

Now how can I install jave after the workstation c/c++ for 32 bit in linux has been installed?

I would rather not do the complete install over again. It required many tweaks that I would like to avoid doing again.

Any help appreciated.