I am unable to invoke the dbca, errors out as "could not locate java runtime".

I have installed the JRE and set the path in the .profile. when checked the metalink, asking me to delete the oraInst file and start a fresh install of all S/W.

Is there any work around?