Question:
Java Path Problems?
Siva
2007-03-28 06:21:35 UTC
I had previously installed JDK 1.5,but now i want jdk1.4 for one software to run.So i installed the JDK1.4 and removed jdk1.5.But after that when i open command prompt and if i type java i am getting an error like this
Error: could not open `C:\Program Files\Java\jre1.5.0_10\lib\i386\jvm.cfg'

It seems to be taking the old path.Can you tell me how to solve this in detail?
Five answers:
PC
2007-03-29 03:23:20 UTC
Hi Siva,



Mhmd is right.

Right click on my computer,

select properties

in next window select advanced tab

Now click on Environment veriables.

there path and JAVA_HOME are set...

Change them as per your new instllation..

Good luck
white_lusciousness
2007-03-28 06:35:46 UTC
Try this (this may or may not work):



Goto the Control Panel and open your Java Control Panel.Click on the JAVA Tab and then click VIEW under JAVA APPLICATION RUNTIME SETTINGS. With the new window opened, check to see if the old JDK 1.5 is listed and remove it if it is. Also, make sure that JDK 1.4 has it's ENABLED box checked. Close out the Java Control Panel and restart your computer then try your command again. If this doesn't work, then you'll have to set the path for Java to point to the proper directory. Your environment variables should look similar to this (replace your version for the version shown here keeping in mind that every time you see a word that's CAPITALIZED, that indicates the beginning of a new line. The PATH=/h/jdk/bin:.: variable is broken up here and should be one continuous string):



Environment Variables:

JAVA_HOME=/h/jdk

PATH=/h/jdk/bin:.:/h/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/dist/local

/exe:/usr/dist/exe:/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/usr/bsd:/usr/etc:/etc:

/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/sbin:/h:/net/prt-web/prt/bin

USERNAME=user

LD_LIBRARY_PATH=/h/jdk1.5/jre/lib/i386/client:/h/jdk1.5/jre/lib/i386:/h/jdk1.5/

jre/../lib/i386:/h/bugs/NativeSEGV

SHELL=/bin/tcsh

DISPLAY=:0.0

HOSTTYPE=i386-linux

OSTYPE=linux

ARCH=Linux

MACHTYPE=i386



Hope this helps.
2016-10-20 07:05:33 UTC
the path issue might properly be rectified via storing the path of java compiler in os course. circulate to gadget homes -- > progressed homes --> ecosystem variables edit the path get admission to and ath the tip write down c:jdk1.5bin (assuming your java is put in in Ccontinual and the folder call is jdk1.5)
2007-03-28 07:10:12 UTC
the simplest one is

1. right click my computer

2. select properties

3. in advanced tab select environment variables

4. new window will pop-up

5. look path and click edit.

6. copy C:\Program Files\Java/bin

5. add value of step 6 to the list.



hope that helps you.

I don't use windows anymore, so if my instructions are not clear pls ignore them.
niere28
2007-03-28 06:29:06 UTC
try to reinstall jdk1.5.... maybe the files are also deleted when you uninstall the software. like mine... what i did is to reinstall it again and i fix it.... try this...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...